ActiveRecord::SchemaMigration Load (3.8ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'favorite_foods' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_clients' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_locations' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'restaurants' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (90.6ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 13:46:47.663227"], ["updated_at", "2016-11-10 13:46:47.663227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.769566"], ["updated_at", "2016-11-10 13:46:47.769566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:47.801113"], ["updated_at", "2016-11-10 13:46:47.801113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 371]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:47.813607"], ["updated_at", "2016-11-10 13:46:47.813607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.817420"], ["updated_at", "2016-11-10 13:46:47.817420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.819061"], ["updated_at", "2016-11-10 13:46:47.819061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:47.820960"], ["updated_at", "2016-11-10 13:46:47.820960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.823268"], ["updated_at", "2016-11-10 13:46:47.823268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:46:47.830284"], ["updated_at", "2016-11-10 13:46:47.830284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:47.831978"], ["updated_at", "2016-11-10 13:46:47.831978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.833528"], ["updated_at", "2016-11-10 13:46:47.833528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:46:47.834681"], ["updated_at", "2016-11-10 13:46:47.834681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:47.836176"], ["updated_at", "2016-11-10 13:46:47.836176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (1.1ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:47.873925"], ["updated_at", "2016-11-10 13:46:47.873925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.875448"], ["updated_at", "2016-11-10 13:46:47.875448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:47.879122"], ["updated_at", "2016-11-10 13:46:47.879122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.880843"], ["updated_at", "2016-11-10 13:46:47.880843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:46:47.883520"], ["updated_at", "2016-11-10 13:46:47.883520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 13:46:47.903421"], ["updated_at", "2016-11-10 13:46:47.903421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:47.905587"], ["updated_at", "2016-11-10 13:46:47.905587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 13:46:47.907569"], ["updated_at", "2016-11-10 13:46:47.907569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.912138"], ["updated_at", "2016-11-10 13:46:47.912138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 638]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.917043"], ["updated_at", "2016-11-10 13:46:47.917043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.918525"], ["updated_at", "2016-11-10 13:46:47.918525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.921371"], ["updated_at", "2016-11-10 13:46:47.921371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.922864"], ["updated_at", "2016-11-10 13:46:47.922864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:47.926080"], ["updated_at", "2016-11-10 13:46:47.926080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.927734"], ["updated_at", "2016-11-10 13:46:47.927734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:47.945150"], ["updated_at", "2016-11-10 13:46:47.945150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.13ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:47.956462"], ["updated_at", "2016-11-10 13:46:47.956462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.14ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:47.966064"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:47.967698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:47.970211"], ["id", 647]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:46:47.977114"], ["updated_at", "2016-11-10 13:46:47.977114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:47.978919"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 648]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:47.980907"], ["id", 648]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:46:47.984594"], ["updated_at", "2016-11-10 13:46:47.984594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:47.985962"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 649]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:47.988461"], ["id", 649]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:46:47.992543"], ["updated_at", "2016-11-10 13:46:47.992543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:46:47.993833"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 650]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.4ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:46:47.998371"], ["updated_at", "2016-11-10 13:46:47.998371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:46:47.999778"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 651]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:46:48.003122"], ["updated_at", "2016-11-10 13:46:48.003122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:46:48.004302"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 652]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:46:48.008482"], ["updated_at", "2016-11-10 13:46:48.008482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:46:48.009791"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 653]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:46:48.011689"], ["updated_at", "2016-11-10 13:46:48.011689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:48.013171"], ["updated_at", "2016-11-10 13:46:48.013171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 378]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 654]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:46:48.016087"], ["updated_at", "2016-11-10 13:46:48.016087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.017327"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 655]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.019131"], ["id", 655]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:46:48.023166"], ["updated_at", "2016-11-10 13:46:48.023166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.024718"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 656]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.026755"], ["id", 656]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:46:48.029586"], ["updated_at", "2016-11-10 13:46:48.029586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:48.031170"], ["updated_at", "2016-11-10 13:46:48.031170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 379]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 657]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.034298"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.034761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.036468"], ["id", 658]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.041172"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.041662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.043046"], ["id", 659]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.046003"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.046393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.047742"], ["id", 660]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.052607"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.053029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.054317"], ["id", 661]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.058055"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.058491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.059792"], ["id", 662]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.063367"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.063814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.065676"], ["id", 663]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:46:48.068287"], ["updated_at", "2016-11-10 13:46:48.068287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:48.069709"], ["updated_at", "2016-11-10 13:46:48.069709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 380]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 664]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.072948"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.073536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.075147"], ["id", 665]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.078823"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.079379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.081092"], ["id", 666]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.085753"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.086201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.087489"], ["id", 667]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.091591"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.092160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.093532"], ["id", 668]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:46:48.096556"], ["updated_at", "2016-11-10 13:46:48.096556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.097895"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.098382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.099651"], ["id", 670]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 669]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:48.104565"], ["updated_at", "2016-11-10 13:46:48.104565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.113248"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 671]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.115767"], ["id", 671]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 13:46:48.117538"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 13:46:48.117885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:46:48.121669"], ["updated_at", "2016-11-10 13:46:48.121669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.123059"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 673]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.124936"], ["id", 673]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:48.127978"], ["updated_at", "2016-11-10 13:46:48.127978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.129813"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 674]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.131744"], ["id", 674]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.135521"], ["updated_at", "2016-11-10 13:46:48.135521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.137523"], ["id", 675]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.139994"], ["id", 675]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 675]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.144181"], ["updated_at", "2016-11-10 13:46:48.144181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.146216"], ["id", 676]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.148258"], ["id", 676]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:46:48.151469"], ["updated_at", "2016-11-10 13:46:48.151469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:46:48.152763"], ["updated_at", "2016-11-10 13:46:48.152763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 381]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 677]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.156279"], ["updated_at", "2016-11-10 13:46:48.156279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.158273"], ["updated_at", "2016-11-10 13:46:48.158273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 678]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:46:48.163123"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:46:48.163643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (7.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:46:48.172733"], ["id", 680]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.9ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:46:48.183727"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:46:48.184635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:46:48.189003"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:46:48.189454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:46:48.194314"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:46:48.194768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:46:48.197112"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:46:48.197530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:46:48.201537"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:46:48.201982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:46:48.204693"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:46:48.205221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:46:48.208047"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:46:48.208517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:48.211664"], ["updated_at", "2016-11-10 13:46:48.211664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 13:46:48.213698"], ["id", 389]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 389]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:48.217430"], ["updated_at", "2016-11-10 13:46:48.217430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:46:48.219304"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 390]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:48.222902"], ["updated_at", "2016-11-10 13:46:48.222902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:46:48.224580"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 391]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:48.229638"], ["updated_at", "2016-11-10 13:46:48.229638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:46:48.231989"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 392]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:46:48.237105"], ["updated_at", "2016-11-10 13:46:48.237105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:46:48.238988"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 393]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 13:48:01.116278"], ["updated_at", "2016-11-10 13:48:01.116278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 13:48:01.128227"], ["updated_at", "2016-11-10 13:48:01.128227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.131169"], ["updated_at", "2016-11-10 13:48:01.131169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.134664"], ["updated_at", "2016-11-10 13:48:01.134664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.8ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 684]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.173461"], ["updated_at", "2016-11-10 13:48:01.173461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.175543"], ["updated_at", "2016-11-10 13:48:01.175543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.179665"], ["updated_at", "2016-11-10 13:48:01.179665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.181282"], ["updated_at", "2016-11-10 13:48:01.181282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.3ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.185500"], ["updated_at", "2016-11-10 13:48:01.185500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:48:01.187172"], ["updated_at", "2016-11-10 13:48:01.187172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 13:48:01.205833"], ["updated_at", "2016-11-10 13:48:01.205833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.208903"], ["updated_at", "2016-11-10 13:48:01.208903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.219517"], ["updated_at", "2016-11-10 13:48:01.219517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.221279"], ["updated_at", "2016-11-10 13:48:01.221279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:48:01.224164"], ["updated_at", "2016-11-10 13:48:01.224164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:48:01.245987"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:48:01.246543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:48:01.251103"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:48:01.251740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:48:01.255334"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:48:01.255789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:48:01.261643"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:48:01.262353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:48:01.265455"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:48:01.265956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:48:01.269226"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:48:01.269695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:48:01.272760"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:48:01.273334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.276642"], ["updated_at", "2016-11-10 13:48:01.276642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:48:01.278245"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 403]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.284032"], ["updated_at", "2016-11-10 13:48:01.284032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:48:01.285683"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 404]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.288872"], ["updated_at", "2016-11-10 13:48:01.288872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:48:01.290339"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 405]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.293616"], ["updated_at", "2016-11-10 13:48:01.293616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:48:01.295220"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 406]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:48:01.299700"], ["updated_at", "2016-11-10 13:48:01.299700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 13:48:01.301734"], ["id", 407]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 407]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.308040"], ["updated_at", "2016-11-10 13:48:01.308040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 408]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:48:01.311068"], ["updated_at", "2016-11-10 13:48:01.311068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.312654"], ["updated_at", "2016-11-10 13:48:01.312654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (8.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.363628"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.364814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.367183"], ["id", 695]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.374076"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.374657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.376852"], ["id", 696]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.382510"], ["updated_at", "2016-11-10 13:48:01.382510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.384597"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.385378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.388310"], ["id", 698]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 697]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.394720"], ["updated_at", "2016-11-10 13:48:01.394720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.398256"], ["updated_at", "2016-11-10 13:48:01.398256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 699]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.403640"], ["updated_at", "2016-11-10 13:48:01.403640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.406563"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 701]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.408855"], ["id", 701]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:48:01.413215"], ["updated_at", "2016-11-10 13:48:01.413215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.416005"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 702]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.418119"], ["id", 702]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.1ms) SAVEPOINT active_record_1 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/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 13:48:01.419863"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 13:48:01.420312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.423852"], ["updated_at", "2016-11-10 13:48:01.423852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.426408"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 704]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.429318"], ["id", 704]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.433691"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.434318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.436846"], ["id", 705]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.441216"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.441788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.443239"], ["id", 706]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.449694"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.450243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.451869"], ["id", 707]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.456959"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.457487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.459075"], ["id", 708]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.464292"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.465151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.466843"], ["id", 709]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.471054"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.471548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.473252"], ["id", 710]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.478650"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.479255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.480974"], ["id", 711]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.486443"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.487509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.489304"], ["id", 712]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.493300"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.493783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.496541"], ["id", 713]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.499802"], ["updated_at", "2016-11-10 13:48:01.499802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.501341"], ["updated_at", "2016-11-10 13:48:01.501341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 410]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 714]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.505892"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.506489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.508110"], ["id", 715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:48:01.512050"], ["updated_at", "2016-11-10 13:48:01.512050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.514825"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 716]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.517080"], ["id", 716]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:48:01.520931"], ["updated_at", "2016-11-10 13:48:01.520931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.522710"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 717]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.524821"], ["id", 717]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:48:01.528820"], ["updated_at", "2016-11-10 13:48:01.528820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.530414"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 718]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.532513"], ["id", 718]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.534833"], ["updated_at", "2016-11-10 13:48:01.534833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:48:01.536186"], ["updated_at", "2016-11-10 13:48:01.536186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 411]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 719]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:48:01.539377"], ["updated_at", "2016-11-10 13:48:01.539377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.541860"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 720]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.544301"], ["id", 720]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:48:01.549347"], ["updated_at", "2016-11-10 13:48:01.549347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:48:01.551263"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 721]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:48:01.555725"], ["updated_at", "2016-11-10 13:48:01.555725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:48:01.557630"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 722]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:48:01.560656"], ["updated_at", "2016-11-10 13:48:01.560656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.562381"], ["updated_at", "2016-11-10 13:48:01.562381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 412]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 723]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:48:01.565986"], ["updated_at", "2016-11-10 13:48:01.565986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:48:01.567488"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 724]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:48:01.571135"], ["updated_at", "2016-11-10 13:48:01.571135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:48:01.572396"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 725]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.576104"], ["updated_at", "2016-11-10 13:48:01.576104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.577921"], ["id", 726]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.580278"], ["id", 726]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 726]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:48:01.584708"], ["updated_at", "2016-11-10 13:48:01.584708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:48:01.586799"], ["id", 727]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:48:01.588897"], ["id", 727]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:48:01.592219"], ["updated_at", "2016-11-10 13:48:01.592219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:48:01.593462"], ["updated_at", "2016-11-10 13:48:01.593462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 413]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 728]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:48:01.597375"], ["updated_at", "2016-11-10 13:48:01.597375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.605004"], ["updated_at", "2016-11-10 13:48:01.605004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.624782"], ["updated_at", "2016-11-10 13:48:01.624782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:48:01.626529"], ["updated_at", "2016-11-10 13:48:01.626529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.627950"], ["updated_at", "2016-11-10 13:48:01.627950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.629719"], ["updated_at", "2016-11-10 13:48:01.629719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:48:01.631807"], ["updated_at", "2016-11-10 13:48:01.631807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.638929"], ["updated_at", "2016-11-10 13:48:01.638929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:48:01.640988"], ["updated_at", "2016-11-10 13:48:01.640988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:48:01.642342"], ["updated_at", "2016-11-10 13:48:01.642342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.643604"], ["updated_at", "2016-11-10 13:48:01.643604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:48:01.645591"], ["updated_at", "2016-11-10 13:48:01.645591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]] Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.624062"], ["updated_at", "2016-11-10 13:49:23.624062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.628456"], ["updated_at", "2016-11-10 13:49:23.628456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.632059"], ["updated_at", "2016-11-10 13:49:23.632059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.633190"], ["updated_at", "2016-11-10 13:49:23.633190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:23.639463"], ["updated_at", "2016-11-10 13:49:23.639463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.640769"], ["updated_at", "2016-11-10 13:49:23.640769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.643443"], ["updated_at", "2016-11-10 13:49:23.643443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 743]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 13:49:23.678220"], ["updated_at", "2016-11-10 13:49:23.678220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.679970"], ["updated_at", "2016-11-10 13:49:23.679970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:23.689923"], ["updated_at", "2016-11-10 13:49:23.689923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.691260"], ["updated_at", "2016-11-10 13:49:23.691260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.693417"], ["updated_at", "2016-11-10 13:49:23.693417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 13:49:23.703153"], ["updated_at", "2016-11-10 13:49:23.703153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 13:49:23.705062"], ["updated_at", "2016-11-10 13:49:23.705062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.706888"], ["updated_at", "2016-11-10 13:49:23.706888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.728163"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.729792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.733269"], ["id", 750]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.740444"], ["updated_at", "2016-11-10 13:49:23.740444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.742122"], ["updated_at", "2016-11-10 13:49:23.742122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 751]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.746456"], ["updated_at", "2016-11-10 13:49:23.746456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.748573"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 753]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.750909"], ["id", 753]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.754973"], ["updated_at", "2016-11-10 13:49:23.754973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.756977"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 754]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.759842"], ["id", 754]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.763820"], ["updated_at", "2016-11-10 13:49:23.763820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.765252"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 755]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.767324"], ["id", 755]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.772132"], ["updated_at", "2016-11-10 13:49:23.772132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:49:23.773875"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 756]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.777320"], ["updated_at", "2016-11-10 13:49:23.777320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:49:23.779494"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 757]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.783154"], ["updated_at", "2016-11-10 13:49:23.783154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:49:23.784338"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 758]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.787728"], ["updated_at", "2016-11-10 13:49:23.787728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:49:23.789565"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 759]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:23.791617"], ["updated_at", "2016-11-10 13:49:23.791617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.792808"], ["updated_at", "2016-11-10 13:49:23.792808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 420]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 760]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.796456"], ["updated_at", "2016-11-10 13:49:23.796456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.798430"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 761]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.800529"], ["id", 761]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:23.803110"], ["updated_at", "2016-11-10 13:49:23.803110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:23.804762"], ["updated_at", "2016-11-10 13:49:23.804762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 421]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 762]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.808716"], ["updated_at", "2016-11-10 13:49:23.808716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.810351"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 763]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.812321"], ["id", 763]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.816185"], ["updated_at", "2016-11-10 13:49:23.816185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.817709"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 764]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.819570"], ["id", 764]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 13:49:23.821579"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 13:49:23.822261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.825143"], ["updated_at", "2016-11-10 13:49:23.825143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.826311"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 766]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.828202"], ["id", 766]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:23.831364"], ["updated_at", "2016-11-10 13:49:23.831364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.832823"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.833342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.834900"], ["id", 768]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 767]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.840063"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.840592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.842283"], ["id", 769]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.846410"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.847704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.849372"], ["id", 770]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.853425"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.853904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.855480"], ["id", 771]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.0ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.858572"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.858971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.860209"], ["id", 772]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.863460"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.863850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.865080"], ["id", 773]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.868169"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.868574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.869782"], ["id", 774]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.872939"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.873340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.874574"], ["id", 775]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:23.876877"], ["updated_at", "2016-11-10 13:49:23.876877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:23.878910"], ["updated_at", "2016-11-10 13:49:23.878910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 422]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 776]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.882880"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.883439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.884963"], ["id", 777]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.889390"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.890118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.891650"], ["id", 778]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.895165"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.895598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.896921"], ["id", 779]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.900864"], ["updated_at", "2016-11-10 13:49:23.900864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.903136"], ["id", 780]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.907096"], ["id", 780]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 780]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.911141"], ["updated_at", "2016-11-10 13:49:23.911141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.914015"], ["id", 781]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.915992"], ["id", 781]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:23.918065"], ["updated_at", "2016-11-10 13:49:23.918065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.919399"], ["updated_at", "2016-11-10 13:49:23.919399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 423]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 782]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:23.924563"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:23.925050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:23.926384"], ["id", 783]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:23.946127"], ["updated_at", "2016-11-10 13:49:23.946127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 424]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:23.948963"], ["updated_at", "2016-11-10 13:49:23.948963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.950272"], ["updated_at", "2016-11-10 13:49:23.950272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:23.974791"], ["updated_at", "2016-11-10 13:49:23.974791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.38ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:23.989889"], ["updated_at", "2016-11-10 13:49:23.989889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.12ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:23.996602"], ["updated_at", "2016-11-10 13:49:23.996602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:23.998270"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 426]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:24.001265"], ["updated_at", "2016-11-10 13:49:24.001265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:24.002617"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 427]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:24.005523"], ["updated_at", "2016-11-10 13:49:24.005523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:24.006827"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 428]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:24.009801"], ["updated_at", "2016-11-10 13:49:24.009801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:24.010931"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 429]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:24.013627"], ["updated_at", "2016-11-10 13:49:24.013627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 13:49:24.015831"], ["id", 430]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 430]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:24.019274"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:24.019686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:24.022144"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:24.022522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:24.026094"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:24.026503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:24.028720"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:24.029161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:24.032222"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:24.032677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:24.035414"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:24.036015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:24.040733"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:24.041242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:24.066794"], ["updated_at", "2016-11-10 13:49:24.066794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:24.069112"], ["updated_at", "2016-11-10 13:49:24.069112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:24.070763"], ["updated_at", "2016-11-10 13:49:24.070763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:24.072381"], ["updated_at", "2016-11-10 13:49:24.072381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:24.073928"], ["updated_at", "2016-11-10 13:49:24.073928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:24.081195"], ["updated_at", "2016-11-10 13:49:24.081195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:24.082734"], ["updated_at", "2016-11-10 13:49:24.082734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:24.084145"], ["updated_at", "2016-11-10 13:49:24.084145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:24.085245"], ["updated_at", "2016-11-10 13:49:24.085245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:24.086557"], ["updated_at", "2016-11-10 13:49:24.086557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 13:49:51.400261"], ["updated_at", "2016-11-10 13:49:51.400261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.409548"], ["updated_at", "2016-11-10 13:49:51.409548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.421690"], ["updated_at", "2016-11-10 13:49:51.421690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 443]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.493216"], ["updated_at", "2016-11-10 13:49:51.493216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.496522"], ["id", 794]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.499213"], ["id", 794]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 794]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.503752"], ["updated_at", "2016-11-10 13:49:51.503752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.505538"], ["id", 795]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.507320"], ["id", 795]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.509604"], ["updated_at", "2016-11-10 13:49:51.509604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.510785"], ["updated_at", "2016-11-10 13:49:51.510785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 444]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 796]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.513637"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.514099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.515445"], ["id", 797]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.518585"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.519026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.520318"], ["id", 798]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.523921"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.524457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.525774"], ["id", 799]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.530558"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.531057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.532585"], ["id", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.536540"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.537121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.539168"], ["id", 801]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.541826"], ["updated_at", "2016-11-10 13:49:51.541826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.543345"], ["updated_at", "2016-11-10 13:49:51.543345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 445]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 802]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.546058"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.546448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.547659"], ["id", 803]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.0ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.550730"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.551126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.552418"], ["id", 804]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.555802"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.556201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.557481"], ["id", 805]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.560837"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.561227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.562408"], ["id", 806]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.565435"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.565838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.567073"], ["id", 807]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.570345"], ["updated_at", "2016-11-10 13:49:51.570345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.571548"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.571950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.573163"], ["id", 809]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 808]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.577684"], ["updated_at", "2016-11-10 13:49:51.577684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.578862"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 810]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.580999"], ["id", 810]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.584065"], ["updated_at", "2016-11-10 13:49:51.584065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.585482"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 811]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.587737"], ["id", 811]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.590716"], ["updated_at", "2016-11-10 13:49:51.590716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.592725"], ["updated_at", "2016-11-10 13:49:51.592725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 446]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 812]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.596185"], ["updated_at", "2016-11-10 13:49:51.596185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:49:51.597654"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 813]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.601356"], ["updated_at", "2016-11-10 13:49:51.601356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:49:51.603519"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 814]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.607178"], ["updated_at", "2016-11-10 13:49:51.607178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:49:51.608439"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 815]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.610624"], ["updated_at", "2016-11-10 13:49:51.610624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.611964"], ["updated_at", "2016-11-10 13:49:51.611964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 447]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 816]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.614888"], ["updated_at", "2016-11-10 13:49:51.614888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:49:51.616153"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 817]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.619304"], ["updated_at", "2016-11-10 13:49:51.619304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.620724"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 818]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.622668"], ["id", 818]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.625881"], ["updated_at", "2016-11-10 13:49:51.625881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.627063"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 819]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.628801"], ["id", 819]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.632115"], ["updated_at", "2016-11-10 13:49:51.632115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.633535"], ["updated_at", "2016-11-10 13:49:51.633535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 820]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.637804"], ["updated_at", "2016-11-10 13:49:51.637804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.639570"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 822]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.641796"], ["id", 822]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.645688"], ["updated_at", "2016-11-10 13:49:51.645688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.647213"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 823]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.649264"], ["id", 823]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.0ms) SAVEPOINT active_record_1 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/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 13:49:51.651175"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 13:49:51.651655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.655313"], ["updated_at", "2016-11-10 13:49:51.655313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.656810"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 825]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.658748"], ["id", 825]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.663057"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.663601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.665056"], ["id", 826]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:49:51.669449"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:49:51.669866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:49:51.671067"], ["id", 827]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.675390"], ["updated_at", "2016-11-10 13:49:51.675390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.683316"], ["updated_at", "2016-11-10 13:49:51.683316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.13ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.713432"], ["updated_at", "2016-11-10 13:49:51.713432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 13:49:51.715943"], ["id", 448]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 448]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:51.719008"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:51.719389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:51.722736"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:51.723614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:51.726861"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:51.727299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:51.729091"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:51.729405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:51.731652"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:51.732002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:51.734146"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:51.734476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:51.737002"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:49:51.737347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.739952"], ["updated_at", "2016-11-10 13:49:51.739952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:51.741149"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 456]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.743973"], ["updated_at", "2016-11-10 13:49:51.743973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:51.745098"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 457]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.747353"], ["updated_at", "2016-11-10 13:49:51.747353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:51.748435"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 458]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.751319"], ["updated_at", "2016-11-10 13:49:51.751319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:49:51.752906"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 459]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.756442"], ["updated_at", "2016-11-10 13:49:51.756442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.760645"], ["updated_at", "2016-11-10 13:49:51.760645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.762558"], ["updated_at", "2016-11-10 13:49:51.762558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.764050"], ["updated_at", "2016-11-10 13:49:51.764050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.765478"], ["updated_at", "2016-11-10 13:49:51.765478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.773103"], ["updated_at", "2016-11-10 13:49:51.773103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.774641"], ["updated_at", "2016-11-10 13:49:51.774641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.776660"], ["updated_at", "2016-11-10 13:49:51.776660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.777769"], ["updated_at", "2016-11-10 13:49:51.777769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.779025"], ["updated_at", "2016-11-10 13:49:51.779025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.791511"], ["updated_at", "2016-11-10 13:49:51.791511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 836]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 13:49:51.797609"], ["updated_at", "2016-11-10 13:49:51.797609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.800140"], ["updated_at", "2016-11-10 13:49:51.800140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 13:49:51.802747"], ["updated_at", "2016-11-10 13:49:51.802747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.805014"], ["updated_at", "2016-11-10 13:49:51.805014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.807424"], ["updated_at", "2016-11-10 13:49:51.807424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:49:51.811710"], ["updated_at", "2016-11-10 13:49:51.811710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.813156"], ["updated_at", "2016-11-10 13:49:51.813156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:49:51.815635"], ["updated_at", "2016-11-10 13:49:51.815635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.846300"], ["updated_at", "2016-11-10 13:49:51.846300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.847962"], ["updated_at", "2016-11-10 13:49:51.847962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.850413"], ["updated_at", "2016-11-10 13:49:51.850413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:49:51.851661"], ["updated_at", "2016-11-10 13:49:51.851661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.854020"], ["updated_at", "2016-11-10 13:49:51.854020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:49:51.855911"], ["updated_at", "2016-11-10 13:49:51.855911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.436898"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.440159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.444233"], ["id", 849]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.456183"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.456804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.459067"], ["id", 850]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.468091"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.468623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.471735"], ["id", 851]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.476536"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.477119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.478739"], ["id", 852]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.483415"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.483955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (12.0ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.497946"], ["id", 853]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.503428"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.503934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.505578"], ["id", 854]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.509364"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.509841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.511376"], ["id", 855]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.515004"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.515550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.517023"], ["id", 856]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.520834"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.521306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.522741"], ["id", 857]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 13:50:18.528646"], ["updated_at", "2016-11-10 13:50:18.528646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:50:18.530823"], ["updated_at", "2016-11-10 13:50:18.530823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 466]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 858]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.535336"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.535877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.537488"], ["id", 859]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:50:18.542184"], ["updated_at", "2016-11-10 13:50:18.542184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.544064"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.544819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.547266"], ["id", 861]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 860]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:50:18.553187"], ["updated_at", "2016-11-10 13:50:18.553187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.555613"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 862]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.558169"], ["id", 862]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:50:18.562333"], ["updated_at", "2016-11-10 13:50:18.562333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.564653"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 863]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.566840"], ["id", 863]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:50:18.570995"], ["updated_at", "2016-11-10 13:50:18.570995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:50:18.572325"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 864]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:50:18.575838"], ["updated_at", "2016-11-10 13:50:18.575838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:50:18.577817"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 865]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:50:18.583220"], ["updated_at", "2016-11-10 13:50:18.583220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:50:18.585151"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 866]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:50:18.588029"], ["updated_at", "2016-11-10 13:50:18.588029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:50:18.590355"], ["updated_at", "2016-11-10 13:50:18.590355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 467]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 867]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:50:18.594430"], ["updated_at", "2016-11-10 13:50:18.594430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 13:50:18.597290"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 868]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:50:18.602042"], ["updated_at", "2016-11-10 13:50:18.602042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.603894"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 869]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.606998"], ["id", 869]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:50:18.611973"], ["updated_at", "2016-11-10 13:50:18.611973"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.614989"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 870]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.618477"], ["id", 870]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:50:18.621830"], ["updated_at", "2016-11-10 13:50:18.621830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:50:18.623841"], ["updated_at", "2016-11-10 13:50:18.623841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 468]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 871]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.629093"], ["updated_at", "2016-11-10 13:50:18.629093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.632270"], ["id", 872]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.634720"], ["id", 872]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 872]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.639451"], ["updated_at", "2016-11-10 13:50:18.639451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.641997"], ["id", 873]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.644176"], ["id", 873]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:50:18.647435"], ["updated_at", "2016-11-10 13:50:18.647435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:50:18.649407"], ["updated_at", "2016-11-10 13:50:18.649407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 469]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 874]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:50:18.653593"], ["updated_at", "2016-11-10 13:50:18.653593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.657227"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 875]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.660063"], ["id", 875]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:50:18.664320"], ["updated_at", "2016-11-10 13:50:18.664320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.667048"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 876]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.669400"], ["id", 876]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.1ms) SAVEPOINT active_record_1 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/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 13:50:18.671366"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 13:50:18.671808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:50:18.675326"], ["updated_at", "2016-11-10 13:50:18.675326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.677005"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 878]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.680544"], ["id", 878]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.684815"], ["updated_at", "2016-11-10 13:50:18.684815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.687296"], ["updated_at", "2016-11-10 13:50:18.687296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 879]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.696076"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.696736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.698794"], ["id", 881]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 13:50:18.706562"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 13:50:18.707086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 13:50:18.708583"], ["id", 882]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:50:18.723584"], ["updated_at", "2016-11-10 13:50:18.723584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.18ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:50:18.736275"], ["updated_at", "2016-11-10 13:50:18.736275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.11ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:51:45.394984"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:51:45.395524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:51:45.399401"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:51:45.399972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:51:45.403289"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:51:45.403701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:51:45.416145"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:51:45.416747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:51:45.421128"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:51:45.421761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:51:45.425843"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:51:45.426258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:51:45.429001"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 13:51:45.429544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:51:45.433052"], ["updated_at", "2016-11-10 13:51:45.433052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 13:51:45.435193"], ["id", 477]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 477]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:51:45.438003"], ["updated_at", "2016-11-10 13:51:45.438003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:51:45.439118"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 478]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:51:45.441918"], ["updated_at", "2016-11-10 13:51:45.441918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:51:45.443044"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 479]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:51:45.445445"], ["updated_at", "2016-11-10 13:51:45.445445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:51:45.446990"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 480]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:51:45.450014"], ["updated_at", "2016-11-10 13:51:45.450014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 13:51:45.451414"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 481]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:51:45.489628"], ["updated_at", "2016-11-10 13:51:45.489628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 13:51:45.492299"], ["updated_at", "2016-11-10 13:51:45.492299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 13:51:45.495530"], ["updated_at", "2016-11-10 13:51:45.495530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.517601"], ["updated_at", "2016-11-10 13:51:45.517601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 888]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:51:45.524835"], ["updated_at", "2016-11-10 13:51:45.524835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.526323"], ["updated_at", "2016-11-10 13:51:45.526323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:51:45.535420"], ["updated_at", "2016-11-10 13:51:45.535420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.536777"], ["updated_at", "2016-11-10 13:51:45.536777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 13:51:45.540296"], ["updated_at", "2016-11-10 13:51:45.540296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:51:45.547329"], ["updated_at", "2016-11-10 13:51:45.547329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.549543"], ["updated_at", "2016-11-10 13:51:45.549543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.552281"], ["updated_at", "2016-11-10 13:51:45.552281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.553588"], ["updated_at", "2016-11-10 13:51:45.553588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.558122"], ["updated_at", "2016-11-10 13:51:45.558122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.559595"], ["updated_at", "2016-11-10 13:51:45.559595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:51:45.570069"], ["updated_at", "2016-11-10 13:51:45.570069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:51:45.572280"], ["updated_at", "2016-11-10 13:51:45.572280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.574464"], ["updated_at", "2016-11-10 13:51:45.574464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:51:45.575894"], ["updated_at", "2016-11-10 13:51:45.575894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.577611"], ["updated_at", "2016-11-10 13:51:45.577611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 13:51:45.584315"], ["updated_at", "2016-11-10 13:51:45.584315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.586846"], ["updated_at", "2016-11-10 13:51:45.586846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.588811"], ["updated_at", "2016-11-10 13:51:45.588811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:51:45.589977"], ["updated_at", "2016-11-10 13:51:45.589977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.591256"], ["updated_at", "2016-11-10 13:51:45.591256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.08ms) Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 13:51:45.602045"], ["updated_at", "2016-11-10 13:51:45.602045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 13:51:45.603842"], ["updated_at", "2016-11-10 13:51:45.603842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 13:51:45.608661"], ["updated_at", "2016-11-10 13:51:45.608661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 489]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.09ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", "2016-11-10 14:18:25.294645"], ["updated_at", "2016-11-10 14:18:25.294645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.8ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.29ms) Completed 200 OK in 12ms (Views: 4.9ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.316862"], ["updated_at", "2016-11-10 14:18:25.316862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.12ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.323837"], ["updated_at", "2016-11-10 14:18:25.323837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.325285"], ["updated_at", "2016-11-10 14:18:25.325285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.329744"], ["updated_at", "2016-11-10 14:18:25.329744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.331606"], ["updated_at", "2016-11-10 14:18:25.331606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.334387"], ["updated_at", "2016-11-10 14:18:25.334387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.335782"], ["updated_at", "2016-11-10 14:18:25.335782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:18:25.376465"], ["updated_at", "2016-11-10 14:18:25.376465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:25.378756"], ["updated_at", "2016-11-10 14:18:25.378756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:25.390868"], ["updated_at", "2016-11-10 14:18:25.390868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.393586"], ["updated_at", "2016-11-10 14:18:25.393586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.395062"], ["updated_at", "2016-11-10 14:18:25.395062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.402301"], ["updated_at", "2016-11-10 14:18:25.402301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 916]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 14:18:25.406116"], ["updated_at", "2016-11-10 14:18:25.406116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 14:18:25.408462"], ["updated_at", "2016-11-10 14:18:25.408462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.410813"], ["updated_at", "2016-11-10 14:18:25.410813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.414292"], ["updated_at", "2016-11-10 14:18:25.414292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.416118"], ["updated_at", "2016-11-10 14:18:25.416118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.417618"], ["updated_at", "2016-11-10 14:18:25.417618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.418937"], ["updated_at", "2016-11-10 14:18:25.418937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.420479"], ["updated_at", "2016-11-10 14:18:25.420479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.429450"], ["updated_at", "2016-11-10 14:18:25.429450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.431227"], ["updated_at", "2016-11-10 14:18:25.431227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.432581"], ["updated_at", "2016-11-10 14:18:25.432581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:25.433741"], ["updated_at", "2016-11-10 14:18:25.433741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.435160"], ["updated_at", "2016-11-10 14:18:25.435160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.454261"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.455766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.457740"], ["id", 926]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.466793"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.467375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.469662"], ["id", 927]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.476681"], ["updated_at", "2016-11-10 14:18:25.476681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.478935"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.480073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.481902"], ["id", 929]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 928]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.488302"], ["updated_at", "2016-11-10 14:18:25.488302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.490546"], ["id", 930]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.492856"], ["id", 930]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 930]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.498808"], ["updated_at", "2016-11-10 14:18:25.498808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.501560"], ["id", 931]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.504042"], ["id", 931]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:25.507646"], ["updated_at", "2016-11-10 14:18:25.507646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.509060"], ["updated_at", "2016-11-10 14:18:25.509060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 496]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 932]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.512428"], ["updated_at", "2016-11-10 14:18:25.512428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.514020"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 933]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.516374"], ["id", 933]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.522345"], ["updated_at", "2016-11-10 14:18:25.522345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.524388"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 934]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.526915"], ["id", 934]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.1ms) SAVEPOINT active_record_1 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/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 14:18:25.530074"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 14:18:25.530662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.534277"], ["updated_at", "2016-11-10 14:18:25.534277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.536612"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 936]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.540765"], ["id", 936]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.544712"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.545311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.547826"], ["id", 937]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.552491"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.553190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.555011"], ["id", 938]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.559225"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.559738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.561182"], ["id", 939]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.565240"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.565825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.567812"], ["id", 940]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.574956"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.575846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.577938"], ["id", 941]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.584427"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.585051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.587688"], ["id", 942]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.592005"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.592757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.594381"], ["id", 943]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.599768"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.600780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.603705"], ["id", 944]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:25.607169"], ["updated_at", "2016-11-10 14:18:25.607169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.608629"], ["updated_at", "2016-11-10 14:18:25.608629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 497]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 945]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.612833"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.613386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.614780"], ["id", 946]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.618204"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.618687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.620745"], ["id", 947]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:25.624447"], ["updated_at", "2016-11-10 14:18:25.624447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.625785"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 948]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.627993"], ["id", 948]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:25.632593"], ["updated_at", "2016-11-10 14:18:25.632593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.634881"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 949]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.637685"], ["id", 949]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:25.642278"], ["updated_at", "2016-11-10 14:18:25.642278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.644608"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 950]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.647816"], ["id", 950]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:25.652212"], ["updated_at", "2016-11-10 14:18:25.652212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:18:25.654204"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 951]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:25.659153"], ["updated_at", "2016-11-10 14:18:25.659153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:18:25.660568"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 952]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:25.664263"], ["updated_at", "2016-11-10 14:18:25.664263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:18:25.665896"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 953]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:25.677433"], ["updated_at", "2016-11-10 14:18:25.677433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:18:25.679021"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 954]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:25.681289"], ["updated_at", "2016-11-10 14:18:25.681289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.682684"], ["updated_at", "2016-11-10 14:18:25.682684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 498]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 955]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:25.685932"], ["updated_at", "2016-11-10 14:18:25.685932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:25.687579"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 956]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:25.689690"], ["id", 956]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:25.691863"], ["updated_at", "2016-11-10 14:18:25.691863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.693072"], ["updated_at", "2016-11-10 14:18:25.693072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 499]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 957]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.695865"], ["updated_at", "2016-11-10 14:18:25.695865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:25.697715"], ["updated_at", "2016-11-10 14:18:25.697715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 958]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:25.711011"], ["updated_at", "2016-11-10 14:18:25.711011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 500]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:25.715262"], ["updated_at", "2016-11-10 14:18:25.715262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:25.716459"], ["updated_at", "2016-11-10 14:18:25.716459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:25.719618"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:25.720071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:25.722626"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:25.722976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:25.725883"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:25.726252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:25.728470"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:25.728872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:25.730879"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:25.731216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:25.733402"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:25.733883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:25.736446"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:25.736795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:25.739155"], ["updated_at", "2016-11-10 14:18:25.739155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:25.740571"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 509]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:25.743007"], ["updated_at", "2016-11-10 14:18:25.743007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:25.744237"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 510]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:25.747266"], ["updated_at", "2016-11-10 14:18:25.747266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:25.748446"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 511]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:25.752063"], ["updated_at", "2016-11-10 14:18:25.752063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:25.753443"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 512]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:25.756806"], ["updated_at", "2016-11-10 14:18:25.756806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 14:18:25.758808"], ["id", 513]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 513]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.023828"], ["updated_at", "2016-11-10 14:18:52.023828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.033744"], ["id", 961]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.036608"], ["id", 961]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 961]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.041253"], ["updated_at", "2016-11-10 14:18:52.041253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.043083"], ["id", 962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.044854"], ["id", 962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:18:52.050266"], ["updated_at", "2016-11-10 14:18:52.050266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.052130"], ["updated_at", "2016-11-10 14:18:52.052130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 514]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 963]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.057645"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.058222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.060322"], ["id", 964]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.064682"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.065134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.066830"], ["id", 965]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.071262"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.071716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.072974"], ["id", 966]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.077580"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.078055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.079330"], ["id", 967]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:52.081469"], ["updated_at", "2016-11-10 14:18:52.081469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.082678"], ["updated_at", "2016-11-10 14:18:52.082678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 515]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 968]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.085712"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.086178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.087578"], ["id", 969]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.092371"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.092917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.094550"], ["id", 970]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.098517"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.099072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.101383"], ["id", 971]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.104991"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.105403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.106739"], ["id", 972]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.110469"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.110870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.112184"], ["id", 973]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.115432"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.115855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.117309"], ["id", 974]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.120807"], ["updated_at", "2016-11-10 14:18:52.120807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.122208"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 975]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.124222"], ["id", 975]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.127657"], ["updated_at", "2016-11-10 14:18:52.127657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.128894"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 976]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.131419"], ["id", 976]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.135565"], ["updated_at", "2016-11-10 14:18:52.135565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:18:52.136926"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 977]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.140563"], ["updated_at", "2016-11-10 14:18:52.140563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:18:52.142755"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 978]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.146328"], ["updated_at", "2016-11-10 14:18:52.146328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:18:52.147580"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 979]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.150804"], ["updated_at", "2016-11-10 14:18:52.150804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:18:52.151974"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 980]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:52.153823"], ["updated_at", "2016-11-10 14:18:52.153823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.154990"], ["updated_at", "2016-11-10 14:18:52.154990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 516]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 981]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.158756"], ["updated_at", "2016-11-10 14:18:52.158756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.160285"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 982]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.162579"], ["id", 982]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.166894"], ["updated_at", "2016-11-10 14:18:52.166894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.168480"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 983]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.170578"], ["id", 983]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.173814"], ["updated_at", "2016-11-10 14:18:52.173814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.175630"], ["updated_at", "2016-11-10 14:18:52.175630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 517]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 984]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.178437"], ["updated_at", "2016-11-10 14:18:52.178437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.179858"], ["updated_at", "2016-11-10 14:18:52.179858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 985]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.183979"], ["updated_at", "2016-11-10 14:18:52.183979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.194437"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 987]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.197129"], ["id", 987]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.201527"], ["updated_at", "2016-11-10 14:18:52.201527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.203056"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 988]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.204987"], ["id", 988]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.1ms) SAVEPOINT active_record_1 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/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 14:18:52.206596"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 14:18:52.207060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.211080"], ["updated_at", "2016-11-10 14:18:52.211080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.212576"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 990]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.214615"], ["id", 990]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.218891"], ["updated_at", "2016-11-10 14:18:52.218891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.220427"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.220857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.222117"], ["id", 992]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 991]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (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"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.227945"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.228383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.229629"], ["id", 993]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:18:52.235731"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:18:52.236134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:18:52.237419"], ["id", 994]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:52.243305"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:52.243726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:52.246824"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:52.247197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:52.249481"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:52.249870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:52.253866"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:52.254420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:52.257561"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:52.257985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:52.260619"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:52.261013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:52.264216"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:18:52.264676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.268209"], ["updated_at", "2016-11-10 14:18:52.268209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 14:18:52.270257"], ["id", 525]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 525]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.274396"], ["updated_at", "2016-11-10 14:18:52.274396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:52.276524"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 526]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:52.278993"], ["updated_at", "2016-11-10 14:18:52.278993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:52.280115"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 527]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:52.282835"], ["updated_at", "2016-11-10 14:18:52.282835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:52.284036"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 528]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:52.286796"], ["updated_at", "2016-11-10 14:18:52.286796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:18:52.287939"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 529]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.300422"], ["updated_at", "2016-11-10 14:18:52.300422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 530]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:52.303211"], ["updated_at", "2016-11-10 14:18:52.303211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.305446"], ["updated_at", "2016-11-10 14:18:52.305446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.349742"], ["updated_at", "2016-11-10 14:18:52.349742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 996]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.377004"], ["updated_at", "2016-11-10 14:18:52.377004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.378526"], ["updated_at", "2016-11-10 14:18:52.378526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.381653"], ["updated_at", "2016-11-10 14:18:52.381653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.383139"], ["updated_at", "2016-11-10 14:18:52.383139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.386839"], ["updated_at", "2016-11-10 14:18:52.386839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.388199"], ["updated_at", "2016-11-10 14:18:52.388199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:52.390559"], ["updated_at", "2016-11-10 14:18:52.390559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.392243"], ["updated_at", "2016-11-10 14:18:52.392243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:52.397379"], ["updated_at", "2016-11-10 14:18:52.397379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.398593"], ["updated_at", "2016-11-10 14:18:52.398593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:18:52.400887"], ["updated_at", "2016-11-10 14:18:52.400887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.407052"], ["updated_at", "2016-11-10 14:18:52.407052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 14:18:52.409092"], ["updated_at", "2016-11-10 14:18:52.409092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 14:18:52.410974"], ["updated_at", "2016-11-10 14:18:52.410974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.08ms) Completed 200 OK in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.429227"], ["updated_at", "2016-11-10 14:18:52.429227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.431096"], ["updated_at", "2016-11-10 14:18:52.431096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.433285"], ["updated_at", "2016-11-10 14:18:52.433285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:52.434431"], ["updated_at", "2016-11-10 14:18:52.434431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.435727"], ["updated_at", "2016-11-10 14:18:52.435727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:18:52.441655"], ["updated_at", "2016-11-10 14:18:52.441655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.443671"], ["updated_at", "2016-11-10 14:18:52.443671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.444923"], ["updated_at", "2016-11-10 14:18:52.444923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:18:52.445941"], ["updated_at", "2016-11-10 14:18:52.445941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:18:52.447150"], ["updated_at", "2016-11-10 14:18:52.447150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.463595"], ["updated_at", "2016-11-10 14:18:52.463595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.18ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:18:52.472231"], ["updated_at", "2016-11-10 14:18:52.472231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.13ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:19:28.196970"], ["updated_at", "2016-11-10 14:19:28.196970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.210962"], ["updated_at", "2016-11-10 14:19:28.210962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:19:28.213092"], ["updated_at", "2016-11-10 14:19:28.213092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.214465"], ["updated_at", "2016-11-10 14:19:28.214465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.216000"], ["updated_at", "2016-11-10 14:19:28.216000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.2ms) Completed 200 OK in 15ms (Views: 2.8ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.239958"], ["updated_at", "2016-11-10 14:19:28.239958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.241654"], ["updated_at", "2016-11-10 14:19:28.241654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.243102"], ["updated_at", "2016-11-10 14:19:28.243102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.245083"], ["updated_at", "2016-11-10 14:19:28.245083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:19:28.246767"], ["updated_at", "2016-11-10 14:19:28.246767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.260834"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.261449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.263295"], ["id", 1023]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.271926"], ["updated_at", "2016-11-10 14:19:28.271926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.273791"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1024]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.276961"], ["id", 1024]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.281927"], ["updated_at", "2016-11-10 14:19:28.281927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.283790"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1025]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.287055"], ["id", 1025]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:19:28.289549"], ["updated_at", "2016-11-10 14:19:28.289549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:19:28.290919"], ["updated_at", "2016-11-10 14:19:28.290919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 542]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1026]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.294519"], ["updated_at", "2016-11-10 14:19:28.294519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.296123"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1027]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.298175"], ["id", 1027]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.303071"], ["updated_at", "2016-11-10 14:19:28.303071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:19:28.304826"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1028]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.308468"], ["updated_at", "2016-11-10 14:19:28.308468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:19:28.309815"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1029]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:19:28.311893"], ["updated_at", "2016-11-10 14:19:28.311893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.313241"], ["updated_at", "2016-11-10 14:19:28.313241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 543]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1030]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.317112"], ["updated_at", "2016-11-10 14:19:28.317112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:19:28.318691"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1031]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.322571"], ["updated_at", "2016-11-10 14:19:28.322571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:19:28.324177"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1032]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.328667"], ["updated_at", "2016-11-10 14:19:28.328667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.330620"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1033]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.333010"], ["id", 1033]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.337355"], ["updated_at", "2016-11-10 14:19:28.337355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.340318"], ["id", 1034]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.342431"], ["id", 1034]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1034]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.346546"], ["updated_at", "2016-11-10 14:19:28.346546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.348930"], ["id", 1035]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.351461"], ["id", 1035]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:19:28.354825"], ["updated_at", "2016-11-10 14:19:28.354825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:19:28.356255"], ["updated_at", "2016-11-10 14:19:28.356255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 544]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1036]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.359418"], ["updated_at", "2016-11-10 14:19:28.359418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.361373"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1037]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.364104"], ["id", 1037]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.368757"], ["updated_at", "2016-11-10 14:19:28.368757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.370745"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1038]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.373660"], ["id", 1038]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 14:19:28.375343"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 14:19:28.375713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.378902"], ["updated_at", "2016-11-10 14:19:28.378902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.380619"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1040]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.383041"], ["id", 1040]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.389307"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.389987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.392251"], ["id", 1041]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.398732"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.399303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.401260"], ["id", 1042]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.407087"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.407651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.409193"], ["id", 1043]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.414054"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.414555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.415944"], ["id", 1044]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.420155"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.420816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.422382"], ["id", 1045]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.426050"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.426540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.427922"], ["id", 1046]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.431909"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.432412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.434118"], ["id", 1047]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.438544"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.439224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.441205"], ["id", 1048]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.444414"], ["updated_at", "2016-11-10 14:19:28.444414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.446065"], ["updated_at", "2016-11-10 14:19:28.446065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 545]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1049]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.450661"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.451255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.453450"], ["id", 1050]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.457684"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.458170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.459552"], ["id", 1051]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.463374"], ["updated_at", "2016-11-10 14:19:28.463374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.465021"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.465499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.467229"], ["id", 1053]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1052]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.473717"], ["updated_at", "2016-11-10 14:19:28.473717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.476248"], ["updated_at", "2016-11-10 14:19:28.476248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1054]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:19:28.481899"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:19:28.482499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:19:28.484390"], ["id", 1056]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.519476"], ["updated_at", "2016-11-10 14:19:28.519476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.521848"], ["updated_at", "2016-11-10 14:19:28.521848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.526539"], ["updated_at", "2016-11-10 14:19:28.526539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.531658"], ["updated_at", "2016-11-10 14:19:28.531658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.533450"], ["updated_at", "2016-11-10 14:19:28.533450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.539794"], ["updated_at", "2016-11-10 14:19:28.539794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.541957"], ["updated_at", "2016-11-10 14:19:28.541957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.545923"], ["updated_at", "2016-11-10 14:19:28.545923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:19:28.548723"], ["updated_at", "2016-11-10 14:19:28.548723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:19:28.554824"], ["updated_at", "2016-11-10 14:19:28.554824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.556133"], ["updated_at", "2016-11-10 14:19:28.556133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 14:19:28.567023"], ["updated_at", "2016-11-10 14:19:28.567023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 14:19:28.570056"], ["updated_at", "2016-11-10 14:19:28.570056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:19:28.573894"], ["updated_at", "2016-11-10 14:19:28.573894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.585737"], ["updated_at", "2016-11-10 14:19:28.585737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1069]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:19:28.610480"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:19:28.610968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:19:28.614533"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:19:28.615050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:19:28.617984"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:19:28.618589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:19:28.623275"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:19:28.623751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:19:28.626275"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:19:28.626645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:19:28.629101"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:19:28.629452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:19:28.631682"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:19:28.632021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:19:28.634564"], ["updated_at", "2016-11-10 14:19:28.634564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:19:28.635911"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 555]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:19:28.638610"], ["updated_at", "2016-11-10 14:19:28.638610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:19:28.639907"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 556]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:19:28.642945"], ["updated_at", "2016-11-10 14:19:28.642945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:19:28.644141"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 557]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:19:28.647042"], ["updated_at", "2016-11-10 14:19:28.647042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:19:28.648384"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 558]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.652425"], ["updated_at", "2016-11-10 14:19:28.652425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 14:19:28.655432"], ["id", 559]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 559]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.666666"], ["updated_at", "2016-11-10 14:19:28.666666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:19:28.668322"], ["updated_at", "2016-11-10 14:19:28.668322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.672901"], ["updated_at", "2016-11-10 14:19:28.672901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 561]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:28.678915"], ["updated_at", "2016-11-10 14:19:28.678915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.2ms) Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:19:41.722702"], ["updated_at", "2016-11-10 14:19:41.722702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.33ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:19:41.731734"], ["updated_at", "2016-11-10 14:19:41.731734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered G5Updatable::LocationSerializer with ActiveModelSerializers::Adapter::Attributes (0.11ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:21:29.596774"], ["updated_at", "2016-11-10 14:21:29.596774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:29.603897"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 562]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.609309"], ["updated_at", "2016-11-10 14:21:29.609309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:29.610810"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 563]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:29.614509"], ["updated_at", "2016-11-10 14:21:29.614509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:29.615762"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 564]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:29.618948"], ["updated_at", "2016-11-10 14:21:29.618948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:29.620256"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 565]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.624274"], ["updated_at", "2016-11-10 14:21:29.624274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 14:21:29.626944"], ["id", 566]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 566]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:29.631615"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:29.632141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:29.634572"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:29.634943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:29.639011"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:29.639413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:29.642632"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:29.643198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:29.646726"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:29.647287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:29.650384"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:29.650796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:29.654368"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:29.654836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.708485"], ["updated_at", "2016-11-10 14:21:29.708485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 574]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.713092"], ["updated_at", "2016-11-10 14:21:29.713092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:29.719233"], ["updated_at", "2016-11-10 14:21:29.719233"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.738107"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.738708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.740440"], ["id", 1075]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.749351"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.749947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.751705"], ["id", 1076]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.756374"], ["updated_at", "2016-11-10 14:21:29.756374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.758517"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1077]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.761529"], ["id", 1077]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.1ms) SAVEPOINT active_record_1 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/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 14:21:29.763693"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 14:21:29.764386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.767333"], ["updated_at", "2016-11-10 14:21:29.767333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.769734"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1079]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.772206"], ["id", 1079]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:29.775279"], ["updated_at", "2016-11-10 14:21:29.775279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.776541"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1080]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.778968"], ["id", 1080]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.783589"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.784330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.786002"], ["id", 1081]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.789908"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.790438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.792538"], ["id", 1082]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.796242"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.796789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.798673"], ["id", 1083]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.0ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.802651"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.803064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.804296"], ["id", 1084]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.807445"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.807848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.809082"], ["id", 1085]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.812266"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.812665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.813877"], ["id", 1086]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.816931"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.817344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.818511"], ["id", 1087]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:29.820868"], ["updated_at", "2016-11-10 14:21:29.820868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.822175"], ["updated_at", "2016-11-10 14:21:29.822175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 576]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1088]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.825283"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.825701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.827603"], ["id", 1089]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.831505"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.831929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.833467"], ["id", 1090]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.838089"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.838675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.840089"], ["id", 1091]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.843796"], ["updated_at", "2016-11-10 14:21:29.843796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.846026"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.846594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.848317"], ["id", 1093]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1092]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:29.853547"], ["updated_at", "2016-11-10 14:21:29.853547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.854845"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1094]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.856780"], ["id", 1094]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:29.860516"], ["updated_at", "2016-11-10 14:21:29.860516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.862135"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1095]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.864537"], ["id", 1095]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:29.866899"], ["updated_at", "2016-11-10 14:21:29.866899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:29.868309"], ["updated_at", "2016-11-10 14:21:29.868309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 577]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1096]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:29.872665"], ["updated_at", "2016-11-10 14:21:29.872665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:21:29.874629"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1097]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:29.879051"], ["updated_at", "2016-11-10 14:21:29.879051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:21:29.881104"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1098]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:29.885713"], ["updated_at", "2016-11-10 14:21:29.885713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:21:29.887323"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1099]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:29.889529"], ["updated_at", "2016-11-10 14:21:29.889529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:29.890803"], ["updated_at", "2016-11-10 14:21:29.890803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 578]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1100]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:29.894780"], ["updated_at", "2016-11-10 14:21:29.894780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:21:29.896314"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1101]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:29.899967"], ["updated_at", "2016-11-10 14:21:29.899967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.901305"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1102]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.903132"], ["id", 1102]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:29.906403"], ["updated_at", "2016-11-10 14:21:29.906403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.907719"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1103]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.909713"], ["id", 1103]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.913266"], ["updated_at", "2016-11-10 14:21:29.913266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.915411"], ["id", 1104]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.917425"], ["id", 1104]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1104]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.921180"], ["updated_at", "2016-11-10 14:21:29.921180"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:29.923491"], ["id", 1105]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:29.925889"], ["id", 1105]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:29.928529"], ["updated_at", "2016-11-10 14:21:29.928529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.929997"], ["updated_at", "2016-11-10 14:21:29.929997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 579]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1106]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.940807"], ["updated_at", "2016-11-10 14:21:29.940807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:29.942496"], ["updated_at", "2016-11-10 14:21:29.942496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1107]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:29.948752"], ["updated_at", "2016-11-10 14:21:29.948752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:29.952381"], ["updated_at", "2016-11-10 14:21:29.952381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:29.953849"], ["updated_at", "2016-11-10 14:21:29.953849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:29.955018"], ["updated_at", "2016-11-10 14:21:29.955018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:29.956431"], ["updated_at", "2016-11-10 14:21:29.956431"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:29.963447"], ["updated_at", "2016-11-10 14:21:29.963447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.965469"], ["updated_at", "2016-11-10 14:21:29.965469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.967394"], ["updated_at", "2016-11-10 14:21:29.967394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:29.968997"], ["updated_at", "2016-11-10 14:21:29.968997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:29.970889"], ["updated_at", "2016-11-10 14:21:29.970889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:29.979488"], ["updated_at", "2016-11-10 14:21:29.979488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:29.987165"], ["updated_at", "2016-11-10 14:21:29.987165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:29.993171"], ["updated_at", "2016-11-10 14:21:29.993171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:30.000150"], ["updated_at", "2016-11-10 14:21:30.000150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 14:21:30.002906"], ["updated_at", "2016-11-10 14:21:30.002906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 14:21:30.005336"], ["updated_at", "2016-11-10 14:21:30.005336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:30.007853"], ["updated_at", "2016-11-10 14:21:30.007853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:30.010013"], ["updated_at", "2016-11-10 14:21:30.010013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:30.014675"], ["updated_at", "2016-11-10 14:21:30.014675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:30.017102"], ["updated_at", "2016-11-10 14:21:30.017102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:30.018307"], ["updated_at", "2016-11-10 14:21:30.018307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:30.050738"], ["updated_at", "2016-11-10 14:21:30.050738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1124]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:30.053145"], ["updated_at", "2016-11-10 14:21:30.053145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:30.054295"], ["updated_at", "2016-11-10 14:21:30.054295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:30.056817"], ["updated_at", "2016-11-10 14:21:30.056817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:30.058555"], ["updated_at", "2016-11-10 14:21:30.058555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:30.061767"], ["updated_at", "2016-11-10 14:21:30.061767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:30.063662"], ["updated_at", "2016-11-10 14:21:30.063662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:21:47.317890"], ["updated_at", "2016-11-10 14:21:47.317890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.330414"], ["updated_at", "2016-11-10 14:21:47.330414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.332764"], ["updated_at", "2016-11-10 14:21:47.332764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.334447"], ["updated_at", "2016-11-10 14:21:47.334447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.336193"], ["updated_at", "2016-11-10 14:21:47.336193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.07ms) Completed 200 OK in 15ms (Views: 0.4ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:21:47.358880"], ["updated_at", "2016-11-10 14:21:47.358880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.361474"], ["updated_at", "2016-11-10 14:21:47.361474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:47.362884"], ["updated_at", "2016-11-10 14:21:47.362884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.364114"], ["updated_at", "2016-11-10 14:21:47.364114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.365468"], ["updated_at", "2016-11-10 14:21:47.365468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.375068"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.375683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.377424"], ["id", 1137]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.383637"], ["updated_at", "2016-11-10 14:21:47.383637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.386276"], ["id", 1138]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.388318"], ["id", 1138]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1138]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.392472"], ["updated_at", "2016-11-10 14:21:47.392472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.394764"], ["id", 1139]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.397234"], ["id", 1139]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.399963"], ["updated_at", "2016-11-10 14:21:47.399963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.401542"], ["updated_at", "2016-11-10 14:21:47.401542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 590]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1140]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.406184"], ["updated_at", "2016-11-10 14:21:47.406184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.408005"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.408558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.410203"], ["id", 1142]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1141]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.415444"], ["updated_at", "2016-11-10 14:21:47.415444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.416914"], ["updated_at", "2016-11-10 14:21:47.416914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1143]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.421203"], ["updated_at", "2016-11-10 14:21:47.421203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.422653"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1145]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.424868"], ["id", 1145]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.430060"], ["updated_at", "2016-11-10 14:21:47.430060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.432052"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1146]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.434840"], ["id", 1146]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.1ms) SAVEPOINT active_record_1 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/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 14:21:47.437167"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 14:21:47.437687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.441661"], ["updated_at", "2016-11-10 14:21:47.441661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.443531"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1148]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.446571"], ["id", 1148]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.450324"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.450830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.452540"], ["id", 1149]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.457061"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.457542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.459101"], ["id", 1150]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.462893"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.463402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.464878"], ["id", 1151]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.469408"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.469928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.471464"], ["id", 1152]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.475444"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.475963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.477491"], ["id", 1153]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.481678"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.482253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.484367"], ["id", 1154]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.488591"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.489131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.490786"], ["id", 1155]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.495857"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.496563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.498380"], ["id", 1156]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.503769"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.504338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.505854"], ["id", 1157]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.510616"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.511167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.512753"], ["id", 1158]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:47.514983"], ["updated_at", "2016-11-10 14:21:47.514983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:47.516294"], ["updated_at", "2016-11-10 14:21:47.516294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 591]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1159]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.519263"], ["updated_at", "2016-11-10 14:21:47.519263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.520718"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1160]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.522859"], ["id", 1160]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.526614"], ["updated_at", "2016-11-10 14:21:47.526614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.528150"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1161]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.530574"], ["id", 1161]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.536052"], ["updated_at", "2016-11-10 14:21:47.536052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.538199"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1162]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.540492"], ["id", 1162]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.545467"], ["updated_at", "2016-11-10 14:21:47.545467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.546991"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1163]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.549473"], ["id", 1163]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:21:47.552313"], ["updated_at", "2016-11-10 14:21:47.552313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.554891"], ["updated_at", "2016-11-10 14:21:47.554891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 592]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1164]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.558494"], ["updated_at", "2016-11-10 14:21:47.558494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:21:47.560142"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1165]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.565151"], ["updated_at", "2016-11-10 14:21:47.565151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:21:47.566640"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1166]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.571781"], ["updated_at", "2016-11-10 14:21:47.571781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:21:47.573552"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1167]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.578718"], ["updated_at", "2016-11-10 14:21:47.578718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:21:47.580445"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1168]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.583305"], ["updated_at", "2016-11-10 14:21:47.583305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.584995"], ["updated_at", "2016-11-10 14:21:47.584995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 593]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1169]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:21:47.589791"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:21:47.590412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:21:47.592126"], ["id", 1170]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.603616"], ["updated_at", "2016-11-10 14:21:47.603616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:47.605868"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 594]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.610026"], ["updated_at", "2016-11-10 14:21:47.610026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:47.611674"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 595]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.614995"], ["updated_at", "2016-11-10 14:21:47.614995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:47.616982"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 596]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:21:47.622112"], ["updated_at", "2016-11-10 14:21:47.622112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:47.623711"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 597]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.629034"], ["updated_at", "2016-11-10 14:21:47.629034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 14:21:47.631278"], ["id", 598]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 598]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:47.635803"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:47.636299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:47.638928"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:47.639335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:47.643404"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:47.643907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:47.646692"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:47.647072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:47.649302"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:47.649706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:47.652293"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:47.652698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:21:47.655581"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:21:47.656098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.699734"], ["updated_at", "2016-11-10 14:21:47.699734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1171]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 14:21:47.706298"], ["updated_at", "2016-11-10 14:21:47.706298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.708996"], ["updated_at", "2016-11-10 14:21:47.708996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 14:21:47.712604"], ["updated_at", "2016-11-10 14:21:47.712604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.715085"], ["updated_at", "2016-11-10 14:21:47.715085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.716628"], ["updated_at", "2016-11-10 14:21:47.716628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.720405"], ["updated_at", "2016-11-10 14:21:47.720405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.723952"], ["updated_at", "2016-11-10 14:21:47.723952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.726096"], ["updated_at", "2016-11-10 14:21:47.726096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.736279"], ["updated_at", "2016-11-10 14:21:47.736279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:47.737905"], ["updated_at", "2016-11-10 14:21:47.737905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:47.740496"], ["updated_at", "2016-11-10 14:21:47.740496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.742037"], ["updated_at", "2016-11-10 14:21:47.742037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:47.745578"], ["updated_at", "2016-11-10 14:21:47.745578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:21:47.746995"], ["updated_at", "2016-11-10 14:21:47.746995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.770915"], ["updated_at", "2016-11-10 14:21:47.770915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:21:47.779817"], ["updated_at", "2016-11-10 14:21:47.779817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.789629"], ["updated_at", "2016-11-10 14:21:47.789629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.804668"], ["updated_at", "2016-11-10 14:21:47.804668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.806256"], ["updated_at", "2016-11-10 14:21:47.806256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:21:47.811184"], ["updated_at", "2016-11-10 14:21:47.811184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 609]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2016-11-10 14:22:33.601948"], ["updated_at", "2016-11-10 14:22:33.601948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 610]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:22:33.611926"], ["updated_at", "2016-11-10 14:22:33.611926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:33.617183"], ["updated_at", "2016-11-10 14:22:33.617183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:22:33.651838"], ["updated_at", "2016-11-10 14:22:33.651838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:33.665088"], ["updated_at", "2016-11-10 14:22:33.665088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.666713"], ["updated_at", "2016-11-10 14:22:33.666713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:22:33.667837"], ["updated_at", "2016-11-10 14:22:33.667837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.669161"], ["updated_at", "2016-11-10 14:22:33.669161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:22:33.675721"], ["updated_at", "2016-11-10 14:22:33.675721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.677701"], ["updated_at", "2016-11-10 14:22:33.677701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.679447"], ["updated_at", "2016-11-10 14:22:33.679447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:22:33.680970"], ["updated_at", "2016-11-10 14:22:33.680970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.682609"], ["updated_at", "2016-11-10 14:22:33.682609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.701127"], ["updated_at", "2016-11-10 14:22:33.701127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1195]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 14:22:33.704871"], ["updated_at", "2016-11-10 14:22:33.704871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 14:22:33.707070"], ["updated_at", "2016-11-10 14:22:33.707070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.709360"], ["updated_at", "2016-11-10 14:22:33.709360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:22:33.711721"], ["updated_at", "2016-11-10 14:22:33.711721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.713074"], ["updated_at", "2016-11-10 14:22:33.713074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:33.715700"], ["updated_at", "2016-11-10 14:22:33.715700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:22:33.717759"], ["updated_at", "2016-11-10 14:22:33.717759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.719046"], ["updated_at", "2016-11-10 14:22:33.719046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:33.724322"], ["updated_at", "2016-11-10 14:22:33.724322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.726348"], ["updated_at", "2016-11-10 14:22:33.726348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:33.728698"], ["updated_at", "2016-11-10 14:22:33.728698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.730369"], ["updated_at", "2016-11-10 14:22:33.730369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:33.733519"], ["updated_at", "2016-11-10 14:22:33.733519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:33.735270"], ["updated_at", "2016-11-10 14:22:33.735270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:33.760473"], ["updated_at", "2016-11-10 14:22:33.760473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Class (0.09ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:56.571283"], ["updated_at", "2016-11-10 14:22:56.571283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Class (0.06ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:56.581355"], ["updated_at", "2016-11-10 14:22:56.581355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Class (0.04ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:56.589879"], ["updated_at", "2016-11-10 14:22:56.589879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 14:22:56.592954"], ["id", 618]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 618]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:22:56.600442"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:22:56.600968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:22:56.604458"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:22:56.604981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:22:56.608748"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:22:56.609220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:22:56.611914"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:22:56.612358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:22:56.616723"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:22:56.617366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:22:56.620124"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:22:56.620544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:22:56.623187"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:22:56.623791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:22:56.627184"], ["updated_at", "2016-11-10 14:22:56.627184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:22:56.628820"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 626]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:22:56.631791"], ["updated_at", "2016-11-10 14:22:56.631791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:22:56.633813"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 627]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:22:56.638181"], ["updated_at", "2016-11-10 14:22:56.638181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:22:56.639665"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 628]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:56.643073"], ["updated_at", "2016-11-10 14:22:56.643073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:22:56.644448"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 629]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.673626"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.674282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.676480"], ["id", 1211]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.685271"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.685910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.688782"], ["id", 1212]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:56.695901"], ["updated_at", "2016-11-10 14:22:56.695901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (1.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.699519"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1213]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.702191"], ["id", 1213]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:56.706875"], ["updated_at", "2016-11-10 14:22:56.706875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.708457"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1214]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.710521"], ["id", 1214]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.1ms) SAVEPOINT active_record_1 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/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 14:22:56.712576"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 14:22:56.713093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:56.717577"], ["updated_at", "2016-11-10 14:22:56.717577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.719414"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1216]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.722234"], ["id", 1216]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.726728"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.727288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.728969"], ["id", 1217]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.734965"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.735578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.737644"], ["id", 1218]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.741501"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.741986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.743820"], ["id", 1219]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.747859"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.748366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.749800"], ["id", 1220]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.754044"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.754720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.756646"], ["id", 1221]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.761333"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.762000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.764019"], ["id", 1222]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.768428"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.769009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.771179"], ["id", 1223]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.776322"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.776889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.779313"], ["id", 1224]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.783793"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.784546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.786540"], ["id", 1225]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:56.789897"], ["updated_at", "2016-11-10 14:22:56.789897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:56.791737"], ["updated_at", "2016-11-10 14:22:56.791737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 630]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1226]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.795506"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.796142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.798006"], ["id", 1227]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.803481"], ["updated_at", "2016-11-10 14:22:56.803481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.806244"], ["id", 1228]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.808460"], ["id", 1228]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1228]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.812839"], ["updated_at", "2016-11-10 14:22:56.812839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.815382"], ["id", 1229]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.818082"], ["id", 1229]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:56.821241"], ["updated_at", "2016-11-10 14:22:56.821241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:56.823046"], ["updated_at", "2016-11-10 14:22:56.823046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 631]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1230]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.827538"], ["updated_at", "2016-11-10 14:22:56.827538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.830183"], ["updated_at", "2016-11-10 14:22:56.830183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1231]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:56.836153"], ["updated_at", "2016-11-10 14:22:56.836153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.838912"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:22:56.839545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.841232"], ["id", 1234]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1233]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:56.854363"], ["updated_at", "2016-11-10 14:22:56.854363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.856726"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1235]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.859989"], ["id", 1235]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:56.865490"], ["updated_at", "2016-11-10 14:22:56.865490"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.867982"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1236]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.870744"], ["id", 1236]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:56.874780"], ["updated_at", "2016-11-10 14:22:56.874780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.876342"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1237]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.879065"], ["id", 1237]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:56.882272"], ["updated_at", "2016-11-10 14:22:56.882272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:22:56.883762"], ["updated_at", "2016-11-10 14:22:56.883762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 632]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1238]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:56.887937"], ["updated_at", "2016-11-10 14:22:56.887937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:22:56.889720"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1239]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:56.894814"], ["updated_at", "2016-11-10 14:22:56.894814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:22:56.896791"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1240]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:56.901207"], ["updated_at", "2016-11-10 14:22:56.901207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:22:56.903371"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1241]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:22:56.906871"], ["updated_at", "2016-11-10 14:22:56.906871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:22:56.908326"], ["updated_at", "2016-11-10 14:22:56.908326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 633]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1242]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:56.912002"], ["updated_at", "2016-11-10 14:22:56.912002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:22:56.914257"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1243]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:22:56.919126"], ["updated_at", "2016-11-10 14:22:56.919126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:22:56.921334"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1244]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:22:56.924139"], ["id", 1244]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2016-11-10 14:23:00.328941"], ["updated_at", "2016-11-10 14:23:00.328941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 634]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:23:00.344062"], ["updated_at", "2016-11-10 14:23:00.344062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.351711"], ["updated_at", "2016-11-10 14:23:00.351711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.416686"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.417297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.418825"], ["id", 1246]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:00.424933"], ["updated_at", "2016-11-10 14:23:00.424933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.427489"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1247]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.429753"], ["id", 1247]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:00.433637"], ["updated_at", "2016-11-10 14:23:00.433637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.435267"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1248]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.437234"], ["id", 1248]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 14:23:00.438934"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 14:23:00.439327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:00.442941"], ["updated_at", "2016-11-10 14:23:00.442941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.444659"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.446940"], ["id", 1250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.451841"], ["updated_at", "2016-11-10 14:23:00.451841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.453876"], ["id", 1251]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.455729"], ["id", 1251]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1251]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.459531"], ["updated_at", "2016-11-10 14:23:00.459531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.461535"], ["id", 1252]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.463320"], ["id", 1252]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.465884"], ["updated_at", "2016-11-10 14:23:00.465884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.467393"], ["updated_at", "2016-11-10 14:23:00.467393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 636]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1253]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.470317"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.470786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.472054"], ["id", 1254]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.475268"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.475644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.476839"], ["id", 1255]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.479904"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.480306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.481511"], ["id", 1256]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.486270"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.486762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.488488"], ["id", 1257]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.492411"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.492980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.494973"], ["id", 1258]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.498869"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.499355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.500896"], ["id", 1259]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.505276"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.505777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.507141"], ["id", 1260]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:00.509471"], ["updated_at", "2016-11-10 14:23:00.509471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.511102"], ["updated_at", "2016-11-10 14:23:00.511102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 637]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1261]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.514401"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.514924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.516935"], ["id", 1262]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.521127"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.521633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.522937"], ["id", 1263]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.526596"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.527517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.529152"], ["id", 1264]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:00.533132"], ["updated_at", "2016-11-10 14:23:00.533132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.534452"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1265]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.536332"], ["id", 1265]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:00.539951"], ["updated_at", "2016-11-10 14:23:00.539951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.541274"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1266]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.543383"], ["id", 1266]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:00.548014"], ["updated_at", "2016-11-10 14:23:00.548014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.549540"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1267]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.551485"], ["id", 1267]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.4ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:00.554331"], ["updated_at", "2016-11-10 14:23:00.554331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.556115"], ["updated_at", "2016-11-10 14:23:00.556115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 638]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1268]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:00.559003"], ["updated_at", "2016-11-10 14:23:00.559003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.560274"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1269]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.562190"], ["id", 1269]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:00.566165"], ["updated_at", "2016-11-10 14:23:00.566165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:23:00.567569"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1270]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:00.570718"], ["updated_at", "2016-11-10 14:23:00.570718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:23:00.571846"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1271]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.573678"], ["updated_at", "2016-11-10 14:23:00.573678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.574886"], ["updated_at", "2016-11-10 14:23:00.574886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 639]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1272]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:00.577840"], ["updated_at", "2016-11-10 14:23:00.577840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:23:00.579309"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1273]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:00.582552"], ["updated_at", "2016-11-10 14:23:00.582552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:23:00.583687"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1274]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:00.586736"], ["updated_at", "2016-11-10 14:23:00.586736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.588017"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.588463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.589700"], ["id", 1276]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1275]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.594589"], ["updated_at", "2016-11-10 14:23:00.594589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.596287"], ["updated_at", "2016-11-10 14:23:00.596287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1277]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:00.600726"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:00.601211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:00.602498"], ["id", 1279]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:00.609312"], ["updated_at", "2016-11-10 14:23:00.609312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1280]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 14:23:00.637058"], ["updated_at", "2016-11-10 14:23:00.637058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 14:23:00.639977"], ["updated_at", "2016-11-10 14:23:00.639977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.641918"], ["updated_at", "2016-11-10 14:23:00.641918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.659140"], ["updated_at", "2016-11-10 14:23:00.659140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.660595"], ["updated_at", "2016-11-10 14:23:00.660595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:00.667851"], ["updated_at", "2016-11-10 14:23:00.667851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.670324"], ["updated_at", "2016-11-10 14:23:00.670324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.671651"], ["updated_at", "2016-11-10 14:23:00.671651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.675143"], ["updated_at", "2016-11-10 14:23:00.675143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.676559"], ["updated_at", "2016-11-10 14:23:00.676559"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.679814"], ["updated_at", "2016-11-10 14:23:00.679814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.681047"], ["updated_at", "2016-11-10 14:23:00.681047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.684055"], ["updated_at", "2016-11-10 14:23:00.684055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.685354"], ["updated_at", "2016-11-10 14:23:00.685354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:00.692226"], ["updated_at", "2016-11-10 14:23:00.692226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:00.694322"], ["updated_at", "2016-11-10 14:23:00.694322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.696251"], ["updated_at", "2016-11-10 14:23:00.696251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.697622"], ["updated_at", "2016-11-10 14:23:00.697622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.699040"], ["updated_at", "2016-11-10 14:23:00.699040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.706457"], ["updated_at", "2016-11-10 14:23:00.706457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.707986"], ["updated_at", "2016-11-10 14:23:00.707986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.709269"], ["updated_at", "2016-11-10 14:23:00.709269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.710640"], ["updated_at", "2016-11-10 14:23:00.710640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.712040"], ["updated_at", "2016-11-10 14:23:00.712040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} 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"]]  (0.2ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.722326"], ["updated_at", "2016-11-10 14:23:00.722326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 14:23:00.724227"], ["id", 646]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 646]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:00.727165"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:00.727597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:00.730056"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:00.730521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:00.733925"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:00.734311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:00.736238"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:00.736577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:00.738797"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:00.739117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:00.741570"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:00.742038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:00.745948"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:00.746374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.749447"], ["updated_at", "2016-11-10 14:23:00.749447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:00.750898"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 654]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.754674"], ["updated_at", "2016-11-10 14:23:00.754674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:00.756167"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 655]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.759139"], ["updated_at", "2016-11-10 14:23:00.759139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:00.760412"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 656]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:00.763861"], ["updated_at", "2016-11-10 14:23:00.763861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:00.765398"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 657]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:00.774164"], ["updated_at", "2016-11-10 14:23:00.774164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:45.873754"], ["updated_at", "2016-11-10 14:23:45.873754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:45.883951"], ["updated_at", "2016-11-10 14:23:45.883951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:50.358487"], ["updated_at", "2016-11-10 14:23:50.358487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 14:23:50.369434"], ["id", 658]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 658]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.373455"], ["updated_at", "2016-11-10 14:23:50.373455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:50.374644"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 659]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.377327"], ["updated_at", "2016-11-10 14:23:50.377327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:50.378500"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 660]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.381275"], ["updated_at", "2016-11-10 14:23:50.381275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:50.382489"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 661]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.386139"], ["updated_at", "2016-11-10 14:23:50.386139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:50.387338"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 662]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:50.390123"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:50.390486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:50.395141"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:50.395560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:50.398258"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:50.398692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:50.400832"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:50.401247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:50.404828"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:50.405411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:50.408147"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:50.408581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:23:50.410900"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:23:50.411226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.425703"], ["updated_at", "2016-11-10 14:23:50.425703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.429226"], ["id", 1302]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.431207"], ["id", 1302]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1302]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.437133"], ["updated_at", "2016-11-10 14:23:50.437133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.439170"], ["id", 1303]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.440988"], ["id", 1303]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:50.443851"], ["updated_at", "2016-11-10 14:23:50.443851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.445490"], ["updated_at", "2016-11-10 14:23:50.445490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 670]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1304]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:50.449184"], ["updated_at", "2016-11-10 14:23:50.449184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.450879"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.451329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.452746"], ["id", 1306]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1305]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:50.466829"], ["updated_at", "2016-11-10 14:23:50.466829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.468323"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1307]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.470519"], ["id", 1307]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:50.474314"], ["updated_at", "2016-11-10 14:23:50.474314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.476157"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1308]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.478320"], ["id", 1308]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 14:23:50.479974"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 14:23:50.480383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:50.483814"], ["updated_at", "2016-11-10 14:23:50.483814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.485558"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1310]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.488095"], ["id", 1310]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.491277"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.491692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.493042"], ["id", 1311]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.497324"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.497766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.499799"], ["id", 1312]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.503986"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.504767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.506490"], ["id", 1313]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.511350"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.511922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.513500"], ["id", 1314]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.519314"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.519857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.521255"], ["id", 1315]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.523580"], ["updated_at", "2016-11-10 14:23:50.523580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.525007"], ["updated_at", "2016-11-10 14:23:50.525007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 671]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1316]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.528785"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.529293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.530721"], ["id", 1317]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.535197"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.535792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.537622"], ["id", 1318]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.541413"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.541865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.543258"], ["id", 1319]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.547660"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.548461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.550224"], ["id", 1320]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.553792"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.554183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.555476"], ["id", 1321]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:50.559190"], ["updated_at", "2016-11-10 14:23:50.559190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.560550"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1322]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.562445"], ["id", 1322]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:50.566918"], ["updated_at", "2016-11-10 14:23:50.566918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.568612"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1323]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.570689"], ["id", 1323]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:50.574360"], ["updated_at", "2016-11-10 14:23:50.574360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.576571"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1324]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.578527"], ["id", 1324]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:50.582058"], ["updated_at", "2016-11-10 14:23:50.582058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.583670"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1325]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.585732"], ["id", 1325]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.0ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.587747"], ["updated_at", "2016-11-10 14:23:50.587747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.589015"], ["updated_at", "2016-11-10 14:23:50.589015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 672]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1326]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:50.591902"], ["updated_at", "2016-11-10 14:23:50.591902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:23:50.593139"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1327]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:50.596298"], ["updated_at", "2016-11-10 14:23:50.596298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:23:50.597454"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1328]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:50.600458"], ["updated_at", "2016-11-10 14:23:50.600458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:23:50.601602"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1329]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.603432"], ["updated_at", "2016-11-10 14:23:50.603432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.604579"], ["updated_at", "2016-11-10 14:23:50.604579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 673]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1330]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:50.607624"], ["updated_at", "2016-11-10 14:23:50.607624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:23:50.608961"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1331]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.612465"], ["updated_at", "2016-11-10 14:23:50.612465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.614175"], ["updated_at", "2016-11-10 14:23:50.614175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1332]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.619945"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.620594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.622167"], ["id", 1334]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:23:50.628963"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:23:50.629529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:23:50.631037"], ["id", 1335]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:50.670799"], ["updated_at", "2016-11-10 14:23:50.670799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.672248"], ["updated_at", "2016-11-10 14:23:50.672248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:50.679281"], ["updated_at", "2016-11-10 14:23:50.679281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.681353"], ["updated_at", "2016-11-10 14:23:50.681353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.682564"], ["updated_at", "2016-11-10 14:23:50.682564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.690495"], ["updated_at", "2016-11-10 14:23:50.690495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1339]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.692835"], ["updated_at", "2016-11-10 14:23:50.692835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 14:23:50.694963"], ["updated_at", "2016-11-10 14:23:50.694963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 14:23:50.697353"], ["updated_at", "2016-11-10 14:23:50.697353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:50.706110"], ["updated_at", "2016-11-10 14:23:50.706110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.707889"], ["updated_at", "2016-11-10 14:23:50.707889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.710427"], ["updated_at", "2016-11-10 14:23:50.710427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.711707"], ["updated_at", "2016-11-10 14:23:50.711707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:50.715526"], ["updated_at", "2016-11-10 14:23:50.715526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.717511"], ["updated_at", "2016-11-10 14:23:50.717511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.721484"], ["updated_at", "2016-11-10 14:23:50.721484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:50.723040"], ["updated_at", "2016-11-10 14:23:50.723040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.724503"], ["updated_at", "2016-11-10 14:23:50.724503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.725636"], ["updated_at", "2016-11-10 14:23:50.725636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.726991"], ["updated_at", "2016-11-10 14:23:50.726991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.08ms) Completed 200 OK in 8ms (Views: 2.3ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.742294"], ["updated_at", "2016-11-10 14:23:50.742294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.744094"], ["updated_at", "2016-11-10 14:23:50.744094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.745510"], ["updated_at", "2016-11-10 14:23:50.745510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:23:50.746720"], ["updated_at", "2016-11-10 14:23:50.746720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:50.748220"], ["updated_at", "2016-11-10 14:23:50.748220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:50.755493"], ["updated_at", "2016-11-10 14:23:50.755493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.34ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:23:55.153788"], ["updated_at", "2016-11-10 14:23:55.153788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.37ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:55.165235"], ["updated_at", "2016-11-10 14:23:55.165235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.48ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (10.0ms) 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", "2016-11-10 14:23:55.197764"], ["updated_at", "2016-11-10 14:23:55.197764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:23:55.211026"], ["updated_at", "2016-11-10 14:23:55.211026"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:23:55.220547"], ["updated_at", "2016-11-10 14:23:55.220547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 681]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:24:03.480686"], ["updated_at", "2016-11-10 14:24:03.480686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.494541"], ["updated_at", "2016-11-10 14:24:03.494541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:24:03.497741"], ["updated_at", "2016-11-10 14:24:03.497741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:24:03.499785"], ["updated_at", "2016-11-10 14:24:03.499785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:24:03.501531"], ["updated_at", "2016-11-10 14:24:03.501531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 19ms (Views: 2.0ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.528920"], ["updated_at", "2016-11-10 14:24:03.528920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.530766"], ["updated_at", "2016-11-10 14:24:03.530766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.532334"], ["updated_at", "2016-11-10 14:24:03.532334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.533650"], ["updated_at", "2016-11-10 14:24:03.533650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.535099"], ["updated_at", "2016-11-10 14:24:03.535099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:24:03.554616"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:24:03.555192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:24:03.558902"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:24:03.559352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:24:03.562449"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:24:03.562875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:24:03.566075"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:24:03.566491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:24:03.569190"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:24:03.569602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:24:03.573761"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:24:03.574427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:24:03.578304"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-11-10 14:24:03.578798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.581856"], ["updated_at", "2016-11-10 14:24:03.581856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:24:03.584028"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 693]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.589698"], ["updated_at", "2016-11-10 14:24:03.589698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:24:03.591598"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 694]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.594832"], ["updated_at", "2016-11-10 14:24:03.594832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:24:03.597162"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 695]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-11-10 14:24:03.601740"], ["updated_at", "2016-11-10 14:24:03.601740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["updated_at", "2016-11-10 14:24:03.604241"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 696]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.608932"], ["updated_at", "2016-11-10 14:24:03.608932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-11-10 14:24:03.611094"], ["id", 697]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 697]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.632620"], ["updated_at", "2016-11-10 14:24:03.632620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.33ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.641664"], ["updated_at", "2016-11-10 14:24:03.641664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.31ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2016-11-10 14:24:03.655575"], ["updated_at", "2016-11-10 14:24:03.655575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 698]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.677352"], ["updated_at", "2016-11-10 14:24:03.677352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.679088"], ["updated_at", "2016-11-10 14:24:03.679088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.703179"], ["updated_at", "2016-11-10 14:24:03.703179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:24:03.704903"], ["updated_at", "2016-11-10 14:24:03.704903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.708956"], ["updated_at", "2016-11-10 14:24:03.708956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.710911"], ["updated_at", "2016-11-10 14:24:03.710911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.715918"], ["updated_at", "2016-11-10 14:24:03.715918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.717811"], ["updated_at", "2016-11-10 14:24:03.717811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.730343"], ["updated_at", "2016-11-10 14:24:03.730343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1374]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-11-10 14:24:03.760432"], ["updated_at", "2016-11-10 14:24:03.760432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.763263"], ["updated_at", "2016-11-10 14:24:03.763263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-11-10 14:24:03.765822"], ["updated_at", "2016-11-10 14:24:03.765822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.768533"], ["updated_at", "2016-11-10 14:24:03.768533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.770797"], ["updated_at", "2016-11-10 14:24:03.770797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:24:03.773864"], ["updated_at", "2016-11-10 14:24:03.773864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-11-10 14:24:03.775194"], ["updated_at", "2016-11-10 14:24:03.775194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.778137"], ["updated_at", "2016-11-10 14:24:03.778137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.782592"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.783141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.784835"], ["id", 1381]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.792050"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.792578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.794508"], ["id", 1382]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.800006"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.800554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.802246"], ["id", 1383]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.806621"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.807520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.809458"], ["id", 1384]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.815346"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.815948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.817559"], ["id", 1385]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.822930"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.823723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.825337"], ["id", 1386]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.829609"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.830427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.832624"], ["id", 1387]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.836634"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.837232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.838955"], ["id", 1388]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.843830"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.844392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.845932"], ["id", 1389]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.850334"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.850805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.852081"], ["id", 1390]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:24:03.854183"], ["updated_at", "2016-11-10 14:24:03.854183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.855424"], ["updated_at", "2016-11-10 14:24:03.855424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 702]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1391]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.858439"], ["updated_at", "2016-11-10 14:24:03.858439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.860066"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.860616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.861968"], ["id", 1393]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1392]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.867364"], ["updated_at", "2016-11-10 14:24:03.867364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.868960"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1394]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.870958"], ["id", 1394]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.874311"], ["updated_at", "2016-11-10 14:24:03.874311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.876262"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1395]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.878523"], ["id", 1395]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/new-loc-urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/new-loc-urn"], ["urn", "new-loc-urn"], ["name", "Geflavity"], ["client_uid", "client_uid"], ["updated_at", "2016-11-10 14:24:03.880322"], ["properties", "{\"uid\":\"http://example.com/new-loc-urn\",\"urn\":\"new-loc-urn\",\"client_uid\":\"client_uid\",\"name\":\"Geflavity\"}"], ["created_at", "2016-11-10 14:24:03.880733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn', 'new-loc-urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.884323"], ["updated_at", "2016-11-10 14:24:03.884323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.886581"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1397]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.889696"], ["id", 1397]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.893500"], ["updated_at", "2016-11-10 14:24:03.893500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.896686"], ["id", 1398]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.898767"], ["id", 1398]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1398]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.902747"], ["updated_at", "2016-11-10 14:24:03.902747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "latitude" = $1, "longitude" = $2, "updated_at" = $3 WHERE "g5_updatable_locations"."id" = $4 [["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.905243"], ["id", 1399]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.907665"], ["id", 1399]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:24:03.911120"], ["updated_at", "2016-11-10 14:24:03.911120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.913274"], ["updated_at", "2016-11-10 14:24:03.913274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 703]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1400]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.918079"], ["updated_at", "2016-11-10 14:24:03.918079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.920242"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1401]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.922757"], ["id", 1401]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.926273"], ["updated_at", "2016-11-10 14:24:03.926273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.927816"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1402]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.930393"], ["id", 1402]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.934264"], ["updated_at", "2016-11-10 14:24:03.934264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.935733"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1403]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.937766"], ["id", 1403]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.941834"], ["updated_at", "2016-11-10 14:24:03.941834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:24:03.943171"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1404]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.947760"], ["updated_at", "2016-11-10 14:24:03.947760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:24:03.949530"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1405]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:24:03.952042"], ["updated_at", "2016-11-10 14:24:03.952042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.954117"], ["updated_at", "2016-11-10 14:24:03.954117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 704]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1406]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.958036"], ["updated_at", "2016-11-10 14:24:03.958036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:24:03.959655"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1407]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.964559"], ["updated_at", "2016-11-10 14:24:03.964559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_locations"."id" = $5 [["urn", "urn"], ["name", "Location Name"], ["updated_at", "2016-11-10 14:24:03.966114"], ["properties", "{\"urn\":\"urn\",\"uid\":\"http://example.com/uid\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1408]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-11-10 14:24:03.969658"], ["updated_at", "2016-11-10 14:24:03.969658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "latitude" = $3, "longitude" = $4, "updated_at" = $5, "properties" = $6 WHERE "g5_updatable_locations"."id" = $7 [["urn", "urn"], ["name", "Location Name"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.971809"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["id", 1409]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.973927"], ["id", 1409]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-11-10 14:24:03.976082"], ["updated_at", "2016-11-10 14:24:03.976082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-11-10 14:24:03.977698"], ["updated_at", "2016-11-10 14:24:03.977698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 705]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1410]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.981736"], ["updated_at", "2016-11-10 14:24:03.981736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.983732"], ["updated_at", "2016-11-10 14:24:03.983732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1411]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.990282"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:03.990870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:03.992353"], ["id", 1413]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["latitude", 1.0], ["longitude", 1.0], ["updated_at", "2016-11-10 14:24:03.999522"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\",\"latitude\":1.0,\"longitude\":1.0}"], ["created_at", "2016-11-10 14:24:04.000062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-11-10 14:24:04.001539"], ["id", 1414]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('urn', 'urn')) AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (6.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (26.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddAmenities (20161122070749)  (0.1ms) BEGIN  (123.3ms) CREATE TABLE "g5_updatable_hub_amenities" ("id" serial primary key, "external_id" integer, "name" character varying, "icon" character varying, "external_updated_at" timestamp, "external_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE UNIQUE INDEX "index_g5_updatable_hub_amenities_on_external_id" ON "g5_updatable_hub_amenities" ("external_id")  (7.7ms) CREATE TABLE "g5_updatable_hub_amenities_locations" ("id" serial primary key, "g5_updatable_hub_amenity_id" integer, "g5_updatable_location_id" integer)   (6.0ms) CREATE INDEX "updatable_amenities_loc_amen_id" ON "g5_updatable_hub_amenities_locations" ("g5_updatable_hub_amenity_id")  (6.7ms) CREATE INDEX "updatable_amenities_loc_loc_id" ON "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id")  (1.5ms) ALTER TABLE "g5_updatable_locations" ADD "flat_amenity_names" character varying SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161122070749"]]  (0.8ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'favorite_foods' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_clients' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_hub_amenities' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_hub_amenities_locations' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_locations' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'restaurants' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.09ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (20.6ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2016-12-08 17:55:28.118875"], ["updated_at", "2016-12-08 17:55:28.118875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 706]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-08 17:55:28.153109"], ["updated_at", "2016-12-08 17:55:28.153109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (22.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", "2016-12-08 17:55:28.154687"], ["updated_at", "2016-12-08 17:55:28.154687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-08 17:55:28.204624"], ["updated_at", "2016-12-08 17:55:28.204624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.206076"], ["updated_at", "2016-12-08 17:55:28.206076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.208984"], ["updated_at", "2016-12-08 17:55:28.208984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.212952"], ["updated_at", "2016-12-08 17:55:28.212952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.216408"], ["updated_at", "2016-12-08 17:55:28.216408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.217646"], ["updated_at", "2016-12-08 17:55:28.217646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.219809"], ["updated_at", "2016-12-08 17:55:28.219809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.221130"], ["updated_at", "2016-12-08 17:55:28.221130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (15.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.224072"], ["updated_at", "2016-12-08 17:55:28.224072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-08 17:55:28.241077"], ["updated_at", "2016-12-08 17:55:28.241077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.243478"], ["updated_at", "2016-12-08 17:55:28.243478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.245118"], ["updated_at", "2016-12-08 17:55:28.245118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (7.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.256508"], ["updated_at", "2016-12-08 17:55:28.256508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.257924"], ["updated_at", "2016-12-08 17:55:28.257924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.260057"], ["updated_at", "2016-12-08 17:55:28.260057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.261348"], ["updated_at", "2016-12-08 17:55:28.261348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.270633"], ["updated_at", "2016-12-08 17:55:28.270633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.271937"], ["updated_at", "2016-12-08 17:55:28.271937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.274030"], ["updated_at", "2016-12-08 17:55:28.274030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.275281"], ["updated_at", "2016-12-08 17:55:28.275281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.278142"], ["updated_at", "2016-12-08 17:55:28.278142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.279359"], ["updated_at", "2016-12-08 17:55:28.279359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.281485"], ["updated_at", "2016-12-08 17:55:28.281485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.283088"], ["updated_at", "2016-12-08 17:55:28.283088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.286126"], ["updated_at", "2016-12-08 17:55:28.286126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.287472"], ["updated_at", "2016-12-08 17:55:28.287472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.289628"], ["updated_at", "2016-12-08 17:55:28.289628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.290825"], ["updated_at", "2016-12-08 17:55:28.290825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.294046"], ["updated_at", "2016-12-08 17:55:28.294046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.295278"], ["updated_at", "2016-12-08 17:55:28.295278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.297209"], ["updated_at", "2016-12-08 17:55:28.297209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.298410"], ["updated_at", "2016-12-08 17:55:28.298410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.301330"], ["updated_at", "2016-12-08 17:55:28.301330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-08 17:55:28.302510"], ["updated_at", "2016-12-08 17:55:28.302510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.305018"], ["updated_at", "2016-12-08 17:55:28.305018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.306308"], ["updated_at", "2016-12-08 17:55:28.306308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.308486"], ["updated_at", "2016-12-08 17:55:28.308486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.309707"], ["updated_at", "2016-12-08 17:55:28.309707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.311648"], ["updated_at", "2016-12-08 17:55:28.311648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.312864"], ["updated_at", "2016-12-08 17:55:28.312864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.315050"], ["updated_at", "2016-12-08 17:55:28.315050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.316447"], ["updated_at", "2016-12-08 17:55:28.316447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.318394"], ["updated_at", "2016-12-08 17:55:28.318394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.319611"], ["updated_at", "2016-12-08 17:55:28.319611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["created_at", "2016-12-08 17:55:28.321507"], ["updated_at", "2016-12-08 17:55:28.321507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.323307"], ["updated_at", "2016-12-08 17:55:28.323307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.324488"], ["updated_at", "2016-12-08 17:55:28.324488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.326552"], ["updated_at", "2016-12-08 17:55:28.326552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.327804"], ["updated_at", "2016-12-08 17:55:28.327804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.333395"], ["updated_at", "2016-12-08 17:55:28.333395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.334746"], ["updated_at", "2016-12-08 17:55:28.334746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.336951"], ["updated_at", "2016-12-08 17:55:28.336951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-08 17:55:28.338416"], ["updated_at", "2016-12-08 17:55:28.338416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-12-08 17:55:28.342284"], ["updated_at", "2016-12-08 17:55:28.342284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.344087"], ["updated_at", "2016-12-08 17:55:28.344087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-12-08 17:55:28.345788"], ["updated_at", "2016-12-08 17:55:28.345788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.351315"], ["updated_at", "2016-12-08 17:55:28.351315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1446]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.353832"], ["updated_at", "2016-12-08 17:55:28.353832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-08 17:55:28.358830"], ["updated_at", "2016-12-08 17:55:28.358830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-08 17:55:28.360164"], ["updated_at", "2016-12-08 17:55:28.360164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1447], ["g5_updatable_hub_amenity_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1447], ["g5_updatable_hub_amenity_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1447]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-08 17:55:28.375649"], ["id", 1447]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1447]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1447]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.379736"], ["updated_at", "2016-12-08 17:55:28.379736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-08 17:55:28.381032"], ["updated_at", "2016-12-08 17:55:28.381032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-08 17:55:28.382210"], ["updated_at", "2016-12-08 17:55:28.382210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1448], ["g5_updatable_hub_amenity_id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1448], ["g5_updatable_hub_amenity_id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1448]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-08 17:55:28.386634"], ["id", 1448]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1448]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1448]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1448]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1448]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1448]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-08 17:55:28.395716"], ["updated_at", "2016-12-08 17:55:28.395716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.397401"], ["updated_at", "2016-12-08 17:55:28.397401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.400289"], ["updated_at", "2016-12-08 17:55:28.400289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.401643"], ["updated_at", "2016-12-08 17:55:28.401643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-08 17:55:28.404099"], ["updated_at", "2016-12-08 17:55:28.404099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["created_at", "2016-12-08 17:55:28.412629"], ["updated_at", "2016-12-08 17:55:28.412629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["created_at", "2016-12-08 17:55:28.414060"], ["updated_at", "2016-12-08 17:55:28.414060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.8ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["created_at", "2016-12-08 17:55:28.418211"], ["updated_at", "2016-12-08 17:55:28.418211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["created_at", "2016-12-08 17:55:28.419597"], ["updated_at", "2016-12-08 17:55:28.419597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["created_at", "2016-12-08 17:55:28.422622"], ["updated_at", "2016-12-08 17:55:28.422622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["created_at", "2016-12-08 17:55:28.424018"], ["updated_at", "2016-12-08 17:55:28.424018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["created_at", "2016-12-08 17:55:28.426538"], ["updated_at", "2016-12-08 17:55:28.426538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["created_at", "2016-12-08 17:55:28.427792"], ["updated_at", "2016-12-08 17:55:28.427792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["created_at", "2016-12-08 17:55:28.431216"], ["updated_at", "2016-12-08 17:55:28.431216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["created_at", "2016-12-08 17:55:28.432926"], ["updated_at", "2016-12-08 17:55:28.432926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-08 17:55:28.445519"], ["updated_at", "2016-12-08 17:55:28.445519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.448029"], ["updated_at", "2016-12-08 17:55:28.448029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.450631"], ["updated_at", "2016-12-08 17:55:28.450631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.453042"], ["updated_at", "2016-12-08 17:55:28.453042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.455329"], ["updated_at", "2016-12-08 17:55:28.455329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.465154"], ["updated_at", "2016-12-08 17:55:28.465154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-08 17:55:28.467201"], ["updated_at", "2016-12-08 17:55:28.467201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.468685"], ["updated_at", "2016-12-08 17:55:28.468685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.469805"], ["updated_at", "2016-12-08 17:55:28.469805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.471104"], ["updated_at", "2016-12-08 17:55:28.471104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.476679"], ["updated_at", "2016-12-08 17:55:28.476679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.478181"], ["updated_at", "2016-12-08 17:55:28.478181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.479545"], ["updated_at", "2016-12-08 17:55:28.479545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-08 17:55:28.480823"], ["updated_at", "2016-12-08 17:55:28.480823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.482361"], ["updated_at", "2016-12-08 17:55:28.482361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.523944"], ["updated_at", "2016-12-08 17:55:28.523944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["created_at", "2016-12-08 17:55:28.525422"], ["updated_at", "2016-12-08 17:55:28.525422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-08 17:55:28.526711"], ["updated_at", "2016-12-08 17:55:28.526711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-08 17:55:28.527695"], ["updated_at", "2016-12-08 17:55:28.527695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-08 17:55:28.528637"], ["updated_at", "2016-12-08 17:55:28.528637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1468], ["g5_updatable_hub_amenity_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1468], ["g5_updatable_hub_amenity_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (1.1ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-08 17:55:28.536704"], ["updated_at", "2016-12-08 17:55:28.536704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["created_at", "2016-12-08 17:55:28.538161"], ["updated_at", "2016-12-08 17:55:28.538161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-08 17:55:28.539360"], ["updated_at", "2016-12-08 17:55:28.539360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-08 17:55:28.540326"], ["updated_at", "2016-12-08 17:55:28.540326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-08 17:55:28.541364"], ["updated_at", "2016-12-08 17:55:28.541364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1469], ["g5_updatable_hub_amenity_id", 8]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1469], ["g5_updatable_hub_amenity_id", 9]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.547725"], ["updated_at", "2016-12-08 17:55:28.547725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.34ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-08 17:55:28.554695"], ["updated_at", "2016-12-08 17:55:28.554695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.3ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (6.7ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (6.5ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (6.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:35:07.090276"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:35:07.093755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:35:07.128815"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:35:07.129869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:35:07.136495"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:35:07.137585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:35:29.265408"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:35:29.267897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:35:29.296423"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:35:29.297614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:35:29.308992"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:35:29.310026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:36:12.112863"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:36:12.115522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (4.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:36:12.126074"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.129441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1472]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1472]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:36:12.169761"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.171676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1473]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1473]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.177794"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.179415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1474]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:36:12.185873"], ["updated_at", "2016-12-09 18:36:12.185873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:36:12.188016"], ["id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (6.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1474], ["g5_updatable_hub_amenity_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:36:12.202056"], ["updated_at", "2016-12-09 18:36:12.202056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:36:12.203339"], ["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1474], ["g5_updatable_hub_amenity_id", 12]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1474]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:36:12.207681"], ["id", 1474]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.210580"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.212364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1475]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1475], ["g5_updatable_hub_amenity_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1475], ["g5_updatable_hub_amenity_id", 12]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1475]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:36:12.220846"], ["id", 1475]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:36:12.225357"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.227269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1476]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1476]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqj16z-mockup-design-1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqj16z-mockup-design-1"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1"], ["name", "Mockup Design 1"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.233467"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:47:40.529-08:00\",\"updated_at\":\"2016-10-05T21:14:50.621-07:00\",\"client_id\":22,\"name\":\"Mockup Design 1\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-design-1\",\"corporate\":false,\"urn\":\"g5-cl-i2xqj16z-mockup-design-1\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-1.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-1.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-1.com\",\"secure_domain\":false,\"phone_number\":\"541-123-4567\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.235341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1477]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1477]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i62u551y-twd-ii"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i62u551y-twd-ii"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii"], ["name", "TWD II"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 36.6739605], ["longitude", -121.6581225], ["updated_at", "2016-12-09 18:36:12.241395"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2015-02-12T16:26:48.064-08:00\",\"updated_at\":\"2016-10-05T21:14:50.655-07:00\",\"client_id\":22,\"name\":\"TWD II\",\"internal_branded_name\":null,\"custom_slug\":\"twd-ii\",\"corporate\":false,\"urn\":\"g5-cl-i62u551y-twd-ii\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo5.com\",\"street_address_1\":\"456 Howard St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Salinas\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90121\",\"website_page_prefix\":\"http://www.g5salesdemo5.com/apartments/ca/salinas\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo5.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":36.6739605,\"longitude\":-121.6581225,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.243074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1478]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1478]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i26ltnpp-awc-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i26ltnpp-awc-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments"], ["name", "AWC Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0858992], ["longitude", -121.3227489], ["updated_at", "2016-12-09 18:36:12.249116"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-06T13:06:11.818-08:00\",\"updated_at\":\"2016-10-05T21:14:50.689-07:00\",\"client_id\":22,\"name\":\"AWC Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"awc-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i26ltnpp-awc-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.awcapartments.com\",\"street_address_1\":\"555 NW Bungalo Ln.\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.awcapartments.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"test@getg5.com\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.awcapartments.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"North\",\"floor_plans\":\"1, 2 \\u0026 3 Bedrooms\",\"nearby_schools\":\"Central Oregon Community College, OSU Cascades\",\"nearby_employers\":\"G5\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"University\",\"landmark_1_name\":\"OSU Cascades\",\"landmark_2_type\":\"Lake\",\"landmark_2_name\":\"Elk Lake\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Swimming Pool\",\"apartment_amenity_2\":\"Sauna\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0858992,\"longitude\":-121.3227489,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.250998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1479]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1479]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i62u104t-twd-annex"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i62u104t-twd-annex"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u104t-twd-annex"], ["name", "TWD Annex"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 33.7452011], ["longitude", -117.8633236], ["updated_at", "2016-12-09 18:36:12.257515"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u104t-twd-annex\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2015-02-12T16:23:35.491-08:00\",\"updated_at\":\"2016-05-16T21:20:56.535-07:00\",\"client_id\":22,\"name\":\"TWD Annex\",\"internal_branded_name\":null,\"custom_slug\":\"twd-annex\",\"corporate\":false,\"urn\":\"g5-cl-i62u104t-twd-annex\",\"status\":\"Pending\",\"home_page_url\":null,\"street_address_1\":\"123 Maple Street\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Santa Anna\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90210\",\"website_page_prefix\":\"/apartments/ca/santa-anna\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":null,\"secure_domain\":false,\"phone_number\":\"541-541-1234\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":33.7452011,\"longitude\":-117.8633236,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.259210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1480]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1480]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560bevwxm-ivy-lifestyle"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560bevwxm-ivy-lifestyle"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560bevwxm-ivy-lifestyle"], ["name", "Ivy Lifestyle"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.265399"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560bevwxm-ivy-lifestyle\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:41:05.793-08:00\",\"updated_at\":\"2016-10-05T21:14:50.739-07:00\",\"client_id\":22,\"name\":\"Ivy Lifestyle\",\"internal_branded_name\":\"Tier 1 Multifamily Ive Lifestyle\",\"custom_slug\":\"20\",\"corporate\":false,\"urn\":\"g5-cl-560bevwxm-ivy-lifestyle\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-ivy-lifestyle.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-ivy-lifestyle.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"getg5\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-ivy-lifestyle.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-996703-G\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.267701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1481]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1481]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560beezd3-corp"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560beezd3-corp"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beezd3-corp"], ["name", "Corp"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.274584"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beezd3-corp\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:39:46.176-08:00\",\"updated_at\":\"2016-10-05T21:14:50.768-07:00\",\"client_id\":22,\"name\":\"Corp\",\"internal_branded_name\":\"Tier 1 Corporate Multifamily\",\"custom_slug\":\"17\",\"corporate\":true,\"urn\":\"g5-cl-560beezd3-corp\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"getg5\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-352899-Y\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.276402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1482]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1482]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560beqk15-broadway"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560beqk15-broadway"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beqk15-broadway"], ["name", "Broadway"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.282927"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beqk15-broadway\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:40.082-08:00\",\"updated_at\":\"2016-10-05T21:14:50.796-07:00\",\"client_id\":22,\"name\":\"Broadway\",\"internal_branded_name\":\"Tier 1 Multifamily Broadway\",\"custom_slug\":\"19\",\"corporate\":false,\"urn\":\"g5-cl-560beqk15-broadway\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-broadway.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-broadway.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"getg5\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-broadway.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-135131-X\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.285012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1483]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1483]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1sojajeo-3-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1sojajeo-3-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1sojajeo-3-apartments"], ["name", "3 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.3011992], ["longitude", -120.8471269], ["updated_at", "2016-12-09 18:36:12.291967"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1sojajeo-3-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:37:01.895-07:00\",\"updated_at\":\"2016-03-24T13:17:13.007-07:00\",\"client_id\":22,\"name\":\"3 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"3-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1sojajeo-3-apartments\",\"status\":\"Pending\",\"home_page_url\":null,\"street_address_1\":\"3 Main St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Prineville\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97754\",\"website_page_prefix\":\"/apartments/or/prineville\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":null,\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1 \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Orion Pizza\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"University\",\"landmark_1_name\":\"COCC\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"Furnished\",\"property_feature_2\":\"Affordable\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Central Air Conditioning\",\"apartment_amenity_2\":\"Private Balcony\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Cab Rides\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.3011992,\"longitude\":-120.8471269,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.293769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1484]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1484]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i26mfkam-twd-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i26mfkam-twd-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26mfkam-twd-apartments"], ["name", "TWD Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.2909491], ["longitude", -121.5492118], ["updated_at", "2016-12-09 18:36:12.300427"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26mfkam-twd-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-06T13:23:13.367-08:00\",\"updated_at\":\"2016-03-24T13:17:13.274-07:00\",\"client_id\":22,\"name\":\"TWD Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"twd-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i26mfkam-twd-apartments\",\"status\":\"Pending\",\"home_page_url\":null,\"street_address_1\":\"6161 SE Hullaballo Dr.\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Sisters\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97759\",\"website_page_prefix\":\"/apartments/or/sisters\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"ourpartmentsname@test.com\",\"office_hours\":\"Monday-Friday 9-5\\r\\nClosed Sunday\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":null,\"secure_domain\":false,\"phone_number\":\"218-359-6458\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"1, 2 \\u0026 3 Bedrooms\",\"nearby_schools\":\"OSU Cascades\",\"nearby_employers\":\"Nike\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Recreation Area\",\"landmark_1_name\":\"Zipper Water Park\",\"landmark_2_type\":\"Employer\",\"landmark_2_name\":\"Nike\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.2909491,\"longitude\":-121.5492118,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.302353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1485]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1485]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1spcif5s-1212-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1spcif5s-1212-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1spcif5s-1212-apartments"], ["name", "1212 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 33.7172269], ["longitude", -118.2731695], ["updated_at", "2016-12-09 18:36:12.309215"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1spcif5s-1212-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-19T09:56:27.160-07:00\",\"updated_at\":\"2016-10-05T21:14:50.907-07:00\",\"client_id\":22,\"name\":\"1212 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"1212-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1spcif5s-1212-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo13.com\",\"street_address_1\":\"1212 Apartment Lane\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Los Angeles\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90003\",\"website_page_prefix\":\"http://www.g5salesdemo13.com/apartments/ca/los-angeles\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo13.com\",\"secure_domain\":false,\"phone_number\":\"333-555-1212\",\"local_phone_number\":null,\"neighborhood\":\"West\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"USC\",\"nearby_employers\":\"Staples Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Water Lake\",\"landmark_2_type\":\"University\",\"landmark_2_name\":\"University of California\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Gated\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Private Entrance\",\"apartment_amenity_2\":\"Furnished Units\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Sauna\",\"timezone\":\"America/Los_Angeles\",\"latitude\":33.7172269,\"longitude\":-118.2731695,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.311192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1486]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1486]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2f1w7c3-wb-orion"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2f1w7c3-wb-orion"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2f1w7c3-wb-orion"], ["name", "WB Orion"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0309447], ["longitude", -121.2694072], ["updated_at", "2016-12-09 18:36:12.318510"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2f1w7c3-wb-orion\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-12T10:58:13.609-08:00\",\"updated_at\":\"2016-10-05T21:14:50.961-07:00\",\"client_id\":22,\"name\":\"WB Orion\",\"internal_branded_name\":null,\"custom_slug\":\"wb-orion\",\"corporate\":false,\"urn\":\"g5-cl-i2f1w7c3-wb-orion\",\"status\":\"Pending\",\"home_page_url\":\"http://www.wboriontraining.com\",\"street_address_1\":\"123 Orion St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.wboriontraining.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.wboriontraining.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0309447,\"longitude\":-121.2694072,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.320570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1487]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1487]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj8m6w-501-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj8m6w-501-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj8m6w-501-apartments"], ["name", "501 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 33.9412127], ["longitude", -84.2135309], ["updated_at", "2016-12-09 18:36:12.331437"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj8m6w-501-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:22:04.240-07:00\",\"updated_at\":\"2016-10-05T21:14:50.994-07:00\",\"client_id\":22,\"name\":\"501 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"501-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj8m6w-501-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo1.com\",\"street_address_1\":\"501 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Norcross\",\"state\":\"GA\",\"state_name\":\"Georgia\",\"postal_code\":\"30003\",\"website_page_prefix\":\"http://www.g5salesdemo1.com/apartments/ga/norcross\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo1.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1 \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"G5\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Recreation Area\",\"landmark_1_name\":\"Drake Park\",\"landmark_2_type\":\"University\",\"landmark_2_name\":\"COCC\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Affordable\",\"property_feature_3\":\"Furnished\",\"apartment_amenity_1\":\"Hot Tub\",\"apartment_amenity_2\":\"Utilities Included\",\"community_amenity_1\":\"Bend Beer on Tap\",\"community_amenity_2\":\"Swimming Pool\",\"timezone\":\"America/New_York\",\"latitude\":33.9412127,\"longitude\":-84.2135309,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.333136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1488]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1488]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i1tr38rn-luxe-theme"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i1tr38rn-luxe-theme"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i1tr38rn-luxe-theme"], ["name", "Luxe Theme"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:36:12.339637"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i1tr38rn-luxe-theme\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-10-28T14:12:36.663-07:00\",\"updated_at\":\"2016-10-05T21:14:51.028-07:00\",\"client_id\":22,\"name\":\"Luxe Theme\",\"internal_branded_name\":null,\"custom_slug\":\"luxe-theme\",\"corporate\":false,\"urn\":\"g5-cl-i1tr38rn-luxe-theme\",\"status\":\"Pending\",\"home_page_url\":\"http://www.luxegreyscale.com\",\"street_address_1\":\"550 NW Franklin\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.luxegreyscale.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.luxegreyscale.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.341248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1489]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1489]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xtistq-mockup-corp"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xtistq-mockup-corp"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xtistq-mockup-corp"], ["name", "Mockup Corp"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.346947"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xtistq-mockup-corp\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T14:11:28.135-08:00\",\"updated_at\":\"2016-10-05T21:14:51.064-07:00\",\"client_id\":22,\"name\":\"Mockup Corp\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-corp\",\"corporate\":true,\"urn\":\"g5-cl-i2xtistq-mockup-corp\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-corp.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-corp.com\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-corp.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.348668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1490]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1490]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqkmak-mockup-design-2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqkmak-mockup-design-2"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqkmak-mockup-design-2"], ["name", "Mockup Design 2"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.355204"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqkmak-mockup-design-2\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:48:54.431-08:00\",\"updated_at\":\"2016-10-05T21:14:51.096-07:00\",\"client_id\":22,\"name\":\"Mockup Design 2\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-design-2\",\"corporate\":false,\"urn\":\"g5-cl-i2xqkmak-mockup-design-2\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-2.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-2.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-2.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.357079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1491]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1491]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-563il6w5r-g5-product-demos"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-563il6w5r-g5-product-demos"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-563il6w5r-g5-product-demos"], ["name", "Cinemagraph Demo"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.362855"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-563il6w5r-g5-product-demos\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-18T15:08:05.402-07:00\",\"updated_at\":\"2016-10-05T21:14:51.126-07:00\",\"client_id\":22,\"name\":\"Cinemagraph Demo\",\"internal_branded_name\":\"G5 Product Demo\",\"custom_slug\":\"21\",\"corporate\":false,\"urn\":\"g5-cl-563il6w5r-g5-product-demos\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5productdemos.com\",\"street_address_1\":\"550 NW Franklin\",\"street_address_2\":\"Suite 200\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5productdemos.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5productdemos.com\",\"secure_domain\":false,\"phone_number\":\"555-555-5555\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-151557-C\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.364451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1492]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1492]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments', 'g5-cl-i2xqj16z-mockup-design-1', 'g5-cl-i62u551y-twd-ii', 'g5-cl-i26ltnpp-awc-apartments', 'g5-cl-i62u104t-twd-annex', 'g5-cl-560bevwxm-ivy-lifestyle', 'g5-cl-560beezd3-corp', 'g5-cl-560beqk15-broadway', 'g5-cl-1sojajeo-3-apartments', 'g5-cl-i26mfkam-twd-apartments', 'g5-cl-1spcif5s-1212-apartments', 'g5-cl-i2f1w7c3-wb-orion', 'g5-cl-1soj8m6w-501-apartments', 'g5-cl-i1tr38rn-luxe-theme', 'g5-cl-i2xtistq-mockup-corp', 'g5-cl-i2xqkmak-mockup-design-2', 'g5-cl-563il6w5r-g5-product-demos')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:36:12.398096"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:36:12.399141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:36:12.402032"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.403747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1493]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1493]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:36:12.409934"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.411539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1494]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1494]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.418165"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.419934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1495]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:36:12.423852"], ["updated_at", "2016-12-09 18:36:12.423852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:36:12.425045"], ["id", 13]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1495], ["g5_updatable_hub_amenity_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:36:12.427797"], ["updated_at", "2016-12-09 18:36:12.427797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:36:12.428823"], ["id", 14]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1495], ["g5_updatable_hub_amenity_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1495]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:36:12.432228"], ["id", 1495]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.435096"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.436872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1496]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1496], ["g5_updatable_hub_amenity_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1496], ["g5_updatable_hub_amenity_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1496]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:36:12.444577"], ["id", 1496]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:36:12.447059"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.448650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1497]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1497]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqj16z-mockup-design-1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqj16z-mockup-design-1"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1"], ["name", "Mockup Design 1"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.456303"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:47:40.529-08:00\",\"updated_at\":\"2016-10-05T21:14:50.621-07:00\",\"client_id\":22,\"name\":\"Mockup Design 1\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-design-1\",\"corporate\":false,\"urn\":\"g5-cl-i2xqj16z-mockup-design-1\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-1.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-1.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-1.com\",\"secure_domain\":false,\"phone_number\":\"541-123-4567\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.457968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1498]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1498]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i62u551y-twd-ii"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i62u551y-twd-ii"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii"], ["name", "TWD II"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 36.6739605], ["longitude", -121.6581225], ["updated_at", "2016-12-09 18:36:12.463972"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2015-02-12T16:26:48.064-08:00\",\"updated_at\":\"2016-10-05T21:14:50.655-07:00\",\"client_id\":22,\"name\":\"TWD II\",\"internal_branded_name\":null,\"custom_slug\":\"twd-ii\",\"corporate\":false,\"urn\":\"g5-cl-i62u551y-twd-ii\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo5.com\",\"street_address_1\":\"456 Howard St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Salinas\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90121\",\"website_page_prefix\":\"http://www.g5salesdemo5.com/apartments/ca/salinas\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo5.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":36.6739605,\"longitude\":-121.6581225,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.465723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1499]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1499]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i26ltnpp-awc-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i26ltnpp-awc-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments"], ["name", "AWC Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0858992], ["longitude", -121.3227489], ["updated_at", "2016-12-09 18:36:12.472368"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-06T13:06:11.818-08:00\",\"updated_at\":\"2016-10-05T21:14:50.689-07:00\",\"client_id\":22,\"name\":\"AWC Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"awc-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i26ltnpp-awc-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.awcapartments.com\",\"street_address_1\":\"555 NW Bungalo Ln.\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.awcapartments.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"test@getg5.com\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.awcapartments.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"North\",\"floor_plans\":\"1, 2 \\u0026 3 Bedrooms\",\"nearby_schools\":\"Central Oregon Community College, OSU Cascades\",\"nearby_employers\":\"G5\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"University\",\"landmark_1_name\":\"OSU Cascades\",\"landmark_2_type\":\"Lake\",\"landmark_2_name\":\"Elk Lake\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Swimming Pool\",\"apartment_amenity_2\":\"Sauna\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0858992,\"longitude\":-121.3227489,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.474141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1500]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1500]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i62u104t-twd-annex"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i62u104t-twd-annex"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u104t-twd-annex"], ["name", "TWD Annex"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 33.7452011], ["longitude", -117.8633236], ["updated_at", "2016-12-09 18:36:12.480547"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u104t-twd-annex\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2015-02-12T16:23:35.491-08:00\",\"updated_at\":\"2016-05-16T21:20:56.535-07:00\",\"client_id\":22,\"name\":\"TWD Annex\",\"internal_branded_name\":null,\"custom_slug\":\"twd-annex\",\"corporate\":false,\"urn\":\"g5-cl-i62u104t-twd-annex\",\"status\":\"Pending\",\"home_page_url\":null,\"street_address_1\":\"123 Maple Street\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Santa Anna\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90210\",\"website_page_prefix\":\"/apartments/ca/santa-anna\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":null,\"secure_domain\":false,\"phone_number\":\"541-541-1234\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":33.7452011,\"longitude\":-117.8633236,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.482446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1501]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1501]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560bevwxm-ivy-lifestyle"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560bevwxm-ivy-lifestyle"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560bevwxm-ivy-lifestyle"], ["name", "Ivy Lifestyle"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.493316"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560bevwxm-ivy-lifestyle\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:41:05.793-08:00\",\"updated_at\":\"2016-10-05T21:14:50.739-07:00\",\"client_id\":22,\"name\":\"Ivy Lifestyle\",\"internal_branded_name\":\"Tier 1 Multifamily Ive Lifestyle\",\"custom_slug\":\"20\",\"corporate\":false,\"urn\":\"g5-cl-560bevwxm-ivy-lifestyle\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-ivy-lifestyle.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-ivy-lifestyle.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"getg5\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-ivy-lifestyle.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-996703-G\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.495259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1502]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1502]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560beezd3-corp"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560beezd3-corp"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beezd3-corp"], ["name", "Corp"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.502437"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beezd3-corp\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:39:46.176-08:00\",\"updated_at\":\"2016-10-05T21:14:50.768-07:00\",\"client_id\":22,\"name\":\"Corp\",\"internal_branded_name\":\"Tier 1 Corporate Multifamily\",\"custom_slug\":\"17\",\"corporate\":true,\"urn\":\"g5-cl-560beezd3-corp\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"getg5\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-352899-Y\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.504166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1503]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1503]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560beqk15-broadway"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560beqk15-broadway"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beqk15-broadway"], ["name", "Broadway"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.510306"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beqk15-broadway\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:40.082-08:00\",\"updated_at\":\"2016-10-05T21:14:50.796-07:00\",\"client_id\":22,\"name\":\"Broadway\",\"internal_branded_name\":\"Tier 1 Multifamily Broadway\",\"custom_slug\":\"19\",\"corporate\":false,\"urn\":\"g5-cl-560beqk15-broadway\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-broadway.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-broadway.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"getg5\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-broadway.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-135131-X\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.511913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1504]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1504]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1sojajeo-3-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1sojajeo-3-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1sojajeo-3-apartments"], ["name", "3 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.3011992], ["longitude", -120.8471269], ["updated_at", "2016-12-09 18:36:12.518610"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1sojajeo-3-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:37:01.895-07:00\",\"updated_at\":\"2016-03-24T13:17:13.007-07:00\",\"client_id\":22,\"name\":\"3 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"3-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1sojajeo-3-apartments\",\"status\":\"Pending\",\"home_page_url\":null,\"street_address_1\":\"3 Main St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Prineville\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97754\",\"website_page_prefix\":\"/apartments/or/prineville\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":null,\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1 \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Orion Pizza\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"University\",\"landmark_1_name\":\"COCC\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"Furnished\",\"property_feature_2\":\"Affordable\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Central Air Conditioning\",\"apartment_amenity_2\":\"Private Balcony\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Cab Rides\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.3011992,\"longitude\":-120.8471269,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.520281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1505]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1505]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i26mfkam-twd-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i26mfkam-twd-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26mfkam-twd-apartments"], ["name", "TWD Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.2909491], ["longitude", -121.5492118], ["updated_at", "2016-12-09 18:36:12.526632"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26mfkam-twd-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-06T13:23:13.367-08:00\",\"updated_at\":\"2016-03-24T13:17:13.274-07:00\",\"client_id\":22,\"name\":\"TWD Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"twd-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i26mfkam-twd-apartments\",\"status\":\"Pending\",\"home_page_url\":null,\"street_address_1\":\"6161 SE Hullaballo Dr.\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Sisters\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97759\",\"website_page_prefix\":\"/apartments/or/sisters\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"ourpartmentsname@test.com\",\"office_hours\":\"Monday-Friday 9-5\\r\\nClosed Sunday\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":null,\"secure_domain\":false,\"phone_number\":\"218-359-6458\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"1, 2 \\u0026 3 Bedrooms\",\"nearby_schools\":\"OSU Cascades\",\"nearby_employers\":\"Nike\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Recreation Area\",\"landmark_1_name\":\"Zipper Water Park\",\"landmark_2_type\":\"Employer\",\"landmark_2_name\":\"Nike\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.2909491,\"longitude\":-121.5492118,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.528293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1506]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1506]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1spcif5s-1212-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1spcif5s-1212-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1spcif5s-1212-apartments"], ["name", "1212 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 33.7172269], ["longitude", -118.2731695], ["updated_at", "2016-12-09 18:36:12.534510"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1spcif5s-1212-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-19T09:56:27.160-07:00\",\"updated_at\":\"2016-10-05T21:14:50.907-07:00\",\"client_id\":22,\"name\":\"1212 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"1212-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1spcif5s-1212-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo13.com\",\"street_address_1\":\"1212 Apartment Lane\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Los Angeles\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90003\",\"website_page_prefix\":\"http://www.g5salesdemo13.com/apartments/ca/los-angeles\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo13.com\",\"secure_domain\":false,\"phone_number\":\"333-555-1212\",\"local_phone_number\":null,\"neighborhood\":\"West\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"USC\",\"nearby_employers\":\"Staples Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Water Lake\",\"landmark_2_type\":\"University\",\"landmark_2_name\":\"University of California\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Gated\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Private Entrance\",\"apartment_amenity_2\":\"Furnished Units\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Sauna\",\"timezone\":\"America/Los_Angeles\",\"latitude\":33.7172269,\"longitude\":-118.2731695,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.536255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1507]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1507]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2f1w7c3-wb-orion"]]  (0.1ms) SAVEPOINT active_record_1 SQL (8.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2f1w7c3-wb-orion"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2f1w7c3-wb-orion"], ["name", "WB Orion"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0309447], ["longitude", -121.2694072], ["updated_at", "2016-12-09 18:36:12.542367"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2f1w7c3-wb-orion\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-12T10:58:13.609-08:00\",\"updated_at\":\"2016-10-05T21:14:50.961-07:00\",\"client_id\":22,\"name\":\"WB Orion\",\"internal_branded_name\":null,\"custom_slug\":\"wb-orion\",\"corporate\":false,\"urn\":\"g5-cl-i2f1w7c3-wb-orion\",\"status\":\"Pending\",\"home_page_url\":\"http://www.wboriontraining.com\",\"street_address_1\":\"123 Orion St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.wboriontraining.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.wboriontraining.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0309447,\"longitude\":-121.2694072,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.544048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1508]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1508]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj8m6w-501-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj8m6w-501-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj8m6w-501-apartments"], ["name", "501 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 33.9412127], ["longitude", -84.2135309], ["updated_at", "2016-12-09 18:36:12.558996"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj8m6w-501-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:22:04.240-07:00\",\"updated_at\":\"2016-10-05T21:14:50.994-07:00\",\"client_id\":22,\"name\":\"501 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"501-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj8m6w-501-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo1.com\",\"street_address_1\":\"501 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Norcross\",\"state\":\"GA\",\"state_name\":\"Georgia\",\"postal_code\":\"30003\",\"website_page_prefix\":\"http://www.g5salesdemo1.com/apartments/ga/norcross\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo1.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1 \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"G5\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Recreation Area\",\"landmark_1_name\":\"Drake Park\",\"landmark_2_type\":\"University\",\"landmark_2_name\":\"COCC\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Affordable\",\"property_feature_3\":\"Furnished\",\"apartment_amenity_1\":\"Hot Tub\",\"apartment_amenity_2\":\"Utilities Included\",\"community_amenity_1\":\"Bend Beer on Tap\",\"community_amenity_2\":\"Swimming Pool\",\"timezone\":\"America/New_York\",\"latitude\":33.9412127,\"longitude\":-84.2135309,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.560676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1509]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1509]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i1tr38rn-luxe-theme"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i1tr38rn-luxe-theme"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i1tr38rn-luxe-theme"], ["name", "Luxe Theme"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:36:12.566997"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i1tr38rn-luxe-theme\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-10-28T14:12:36.663-07:00\",\"updated_at\":\"2016-10-05T21:14:51.028-07:00\",\"client_id\":22,\"name\":\"Luxe Theme\",\"internal_branded_name\":null,\"custom_slug\":\"luxe-theme\",\"corporate\":false,\"urn\":\"g5-cl-i1tr38rn-luxe-theme\",\"status\":\"Pending\",\"home_page_url\":\"http://www.luxegreyscale.com\",\"street_address_1\":\"550 NW Franklin\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.luxegreyscale.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.luxegreyscale.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.568982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1510]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1510]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xtistq-mockup-corp"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xtistq-mockup-corp"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xtistq-mockup-corp"], ["name", "Mockup Corp"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.576132"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xtistq-mockup-corp\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T14:11:28.135-08:00\",\"updated_at\":\"2016-10-05T21:14:51.064-07:00\",\"client_id\":22,\"name\":\"Mockup Corp\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-corp\",\"corporate\":true,\"urn\":\"g5-cl-i2xtistq-mockup-corp\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-corp.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-corp.com\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-corp.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.577831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1511]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1511]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqkmak-mockup-design-2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqkmak-mockup-design-2"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqkmak-mockup-design-2"], ["name", "Mockup Design 2"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.584154"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqkmak-mockup-design-2\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:48:54.431-08:00\",\"updated_at\":\"2016-10-05T21:14:51.096-07:00\",\"client_id\":22,\"name\":\"Mockup Design 2\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-design-2\",\"corporate\":false,\"urn\":\"g5-cl-i2xqkmak-mockup-design-2\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-2.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-2.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-2.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.585885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1512]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1512]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-563il6w5r-g5-product-demos"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-563il6w5r-g5-product-demos"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-563il6w5r-g5-product-demos"], ["name", "Cinemagraph Demo"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.592088"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-563il6w5r-g5-product-demos\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-18T15:08:05.402-07:00\",\"updated_at\":\"2016-10-05T21:14:51.126-07:00\",\"client_id\":22,\"name\":\"Cinemagraph Demo\",\"internal_branded_name\":\"G5 Product Demo\",\"custom_slug\":\"21\",\"corporate\":false,\"urn\":\"g5-cl-563il6w5r-g5-product-demos\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5productdemos.com\",\"street_address_1\":\"550 NW Franklin\",\"street_address_2\":\"Suite 200\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5productdemos.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5productdemos.com\",\"secure_domain\":false,\"phone_number\":\"555-555-5555\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-151557-C\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.593866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1513]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1513]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments', 'g5-cl-i2xqj16z-mockup-design-1', 'g5-cl-i62u551y-twd-ii', 'g5-cl-i26ltnpp-awc-apartments', 'g5-cl-i62u104t-twd-annex', 'g5-cl-560bevwxm-ivy-lifestyle', 'g5-cl-560beezd3-corp', 'g5-cl-560beqk15-broadway', 'g5-cl-1sojajeo-3-apartments', 'g5-cl-i26mfkam-twd-apartments', 'g5-cl-1spcif5s-1212-apartments', 'g5-cl-i2f1w7c3-wb-orion', 'g5-cl-1soj8m6w-501-apartments', 'g5-cl-i1tr38rn-luxe-theme', 'g5-cl-i2xtistq-mockup-corp', 'g5-cl-i2xqkmak-mockup-design-2', 'g5-cl-563il6w5r-g5-product-demos')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:36:12.606558"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:36:12.607742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:36:12.610574"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.612312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1514]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1514]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:36:12.620045"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.621994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1515]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1515]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.629354"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.631377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1516]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:36:12.636303"], ["updated_at", "2016-12-09 18:36:12.636303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:36:12.637595"], ["id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1516], ["g5_updatable_hub_amenity_id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:36:12.640729"], ["updated_at", "2016-12-09 18:36:12.640729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:36:12.641885"], ["id", 16]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1516], ["g5_updatable_hub_amenity_id", 16]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1516]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:36:12.645719"], ["id", 1516]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.648580"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.650437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1517]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1517], ["g5_updatable_hub_amenity_id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1517], ["g5_updatable_hub_amenity_id", 16]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1517]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:36:12.663080"], ["id", 1517]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:36:12.666065"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.667923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1518]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1518]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqj16z-mockup-design-1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqj16z-mockup-design-1"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1"], ["name", "Mockup Design 1"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.674062"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:47:40.529-08:00\",\"updated_at\":\"2016-10-05T21:14:50.621-07:00\",\"client_id\":22,\"name\":\"Mockup Design 1\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-design-1\",\"corporate\":false,\"urn\":\"g5-cl-i2xqj16z-mockup-design-1\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-1.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-1.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-1.com\",\"secure_domain\":false,\"phone_number\":\"541-123-4567\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.675649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1519]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1519]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i62u551y-twd-ii"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i62u551y-twd-ii"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii"], ["name", "TWD II"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 36.6739605], ["longitude", -121.6581225], ["updated_at", "2016-12-09 18:36:12.681394"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2015-02-12T16:26:48.064-08:00\",\"updated_at\":\"2016-10-05T21:14:50.655-07:00\",\"client_id\":22,\"name\":\"TWD II\",\"internal_branded_name\":null,\"custom_slug\":\"twd-ii\",\"corporate\":false,\"urn\":\"g5-cl-i62u551y-twd-ii\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo5.com\",\"street_address_1\":\"456 Howard St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Salinas\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90121\",\"website_page_prefix\":\"http://www.g5salesdemo5.com/apartments/ca/salinas\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo5.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":36.6739605,\"longitude\":-121.6581225,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.682980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1520]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1520]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i26ltnpp-awc-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i26ltnpp-awc-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments"], ["name", "AWC Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0858992], ["longitude", -121.3227489], ["updated_at", "2016-12-09 18:36:12.689447"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-06T13:06:11.818-08:00\",\"updated_at\":\"2016-10-05T21:14:50.689-07:00\",\"client_id\":22,\"name\":\"AWC Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"awc-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i26ltnpp-awc-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.awcapartments.com\",\"street_address_1\":\"555 NW Bungalo Ln.\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.awcapartments.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"test@getg5.com\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.awcapartments.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"North\",\"floor_plans\":\"1, 2 \\u0026 3 Bedrooms\",\"nearby_schools\":\"Central Oregon Community College, OSU Cascades\",\"nearby_employers\":\"G5\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"University\",\"landmark_1_name\":\"OSU Cascades\",\"landmark_2_type\":\"Lake\",\"landmark_2_name\":\"Elk Lake\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Swimming Pool\",\"apartment_amenity_2\":\"Sauna\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0858992,\"longitude\":-121.3227489,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.691081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1521]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1521]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i62u104t-twd-annex"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i62u104t-twd-annex"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u104t-twd-annex"], ["name", "TWD Annex"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 33.7452011], ["longitude", -117.8633236], ["updated_at", "2016-12-09 18:36:12.697139"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u104t-twd-annex\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2015-02-12T16:23:35.491-08:00\",\"updated_at\":\"2016-05-16T21:20:56.535-07:00\",\"client_id\":22,\"name\":\"TWD Annex\",\"internal_branded_name\":null,\"custom_slug\":\"twd-annex\",\"corporate\":false,\"urn\":\"g5-cl-i62u104t-twd-annex\",\"status\":\"Pending\",\"home_page_url\":null,\"street_address_1\":\"123 Maple Street\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Santa Anna\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90210\",\"website_page_prefix\":\"/apartments/ca/santa-anna\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":null,\"secure_domain\":false,\"phone_number\":\"541-541-1234\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":33.7452011,\"longitude\":-117.8633236,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.698782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1522]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1522]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560bevwxm-ivy-lifestyle"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560bevwxm-ivy-lifestyle"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560bevwxm-ivy-lifestyle"], ["name", "Ivy Lifestyle"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.705242"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560bevwxm-ivy-lifestyle\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:41:05.793-08:00\",\"updated_at\":\"2016-10-05T21:14:50.739-07:00\",\"client_id\":22,\"name\":\"Ivy Lifestyle\",\"internal_branded_name\":\"Tier 1 Multifamily Ive Lifestyle\",\"custom_slug\":\"20\",\"corporate\":false,\"urn\":\"g5-cl-560bevwxm-ivy-lifestyle\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-ivy-lifestyle.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-ivy-lifestyle.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"getg5\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-ivy-lifestyle.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-996703-G\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.706959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1523]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1523]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560beezd3-corp"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560beezd3-corp"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beezd3-corp"], ["name", "Corp"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.713200"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beezd3-corp\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:39:46.176-08:00\",\"updated_at\":\"2016-10-05T21:14:50.768-07:00\",\"client_id\":22,\"name\":\"Corp\",\"internal_branded_name\":\"Tier 1 Corporate Multifamily\",\"custom_slug\":\"17\",\"corporate\":true,\"urn\":\"g5-cl-560beezd3-corp\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"getg5\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-352899-Y\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.715012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1524]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1524]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560beqk15-broadway"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560beqk15-broadway"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beqk15-broadway"], ["name", "Broadway"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.721692"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560beqk15-broadway\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:40.082-08:00\",\"updated_at\":\"2016-10-05T21:14:50.796-07:00\",\"client_id\":22,\"name\":\"Broadway\",\"internal_branded_name\":\"Tier 1 Multifamily Broadway\",\"custom_slug\":\"19\",\"corporate\":false,\"urn\":\"g5-cl-560beqk15-broadway\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-broadway.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-broadway.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"getg5\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-broadway.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-135131-X\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.723483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1525]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1525]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1sojajeo-3-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1sojajeo-3-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1sojajeo-3-apartments"], ["name", "3 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.3011992], ["longitude", -120.8471269], ["updated_at", "2016-12-09 18:36:12.729865"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1sojajeo-3-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:37:01.895-07:00\",\"updated_at\":\"2016-03-24T13:17:13.007-07:00\",\"client_id\":22,\"name\":\"3 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"3-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1sojajeo-3-apartments\",\"status\":\"Pending\",\"home_page_url\":null,\"street_address_1\":\"3 Main St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Prineville\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97754\",\"website_page_prefix\":\"/apartments/or/prineville\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":null,\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1 \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Orion Pizza\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"University\",\"landmark_1_name\":\"COCC\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"Furnished\",\"property_feature_2\":\"Affordable\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Central Air Conditioning\",\"apartment_amenity_2\":\"Private Balcony\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Cab Rides\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.3011992,\"longitude\":-120.8471269,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.731540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1526]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1526]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i26mfkam-twd-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i26mfkam-twd-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26mfkam-twd-apartments"], ["name", "TWD Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.2909491], ["longitude", -121.5492118], ["updated_at", "2016-12-09 18:36:12.737982"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26mfkam-twd-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-06T13:23:13.367-08:00\",\"updated_at\":\"2016-03-24T13:17:13.274-07:00\",\"client_id\":22,\"name\":\"TWD Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"twd-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i26mfkam-twd-apartments\",\"status\":\"Pending\",\"home_page_url\":null,\"street_address_1\":\"6161 SE Hullaballo Dr.\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Sisters\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97759\",\"website_page_prefix\":\"/apartments/or/sisters\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"ourpartmentsname@test.com\",\"office_hours\":\"Monday-Friday 9-5\\r\\nClosed Sunday\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":null,\"secure_domain\":false,\"phone_number\":\"218-359-6458\",\"local_phone_number\":null,\"neighborhood\":\"Downtown\",\"floor_plans\":\"1, 2 \\u0026 3 Bedrooms\",\"nearby_schools\":\"OSU Cascades\",\"nearby_employers\":\"Nike\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Recreation Area\",\"landmark_1_name\":\"Zipper Water Park\",\"landmark_2_type\":\"Employer\",\"landmark_2_name\":\"Nike\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.2909491,\"longitude\":-121.5492118,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.739652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1527]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1527]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1spcif5s-1212-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1spcif5s-1212-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1spcif5s-1212-apartments"], ["name", "1212 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 33.7172269], ["longitude", -118.2731695], ["updated_at", "2016-12-09 18:36:12.746953"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1spcif5s-1212-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-19T09:56:27.160-07:00\",\"updated_at\":\"2016-10-05T21:14:50.907-07:00\",\"client_id\":22,\"name\":\"1212 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"1212-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1spcif5s-1212-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo13.com\",\"street_address_1\":\"1212 Apartment Lane\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Los Angeles\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90003\",\"website_page_prefix\":\"http://www.g5salesdemo13.com/apartments/ca/los-angeles\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo13.com\",\"secure_domain\":false,\"phone_number\":\"333-555-1212\",\"local_phone_number\":null,\"neighborhood\":\"West\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"USC\",\"nearby_employers\":\"Staples Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Water Lake\",\"landmark_2_type\":\"University\",\"landmark_2_name\":\"University of California\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Gated\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Private Entrance\",\"apartment_amenity_2\":\"Furnished Units\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Sauna\",\"timezone\":\"America/Los_Angeles\",\"latitude\":33.7172269,\"longitude\":-118.2731695,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.748793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1528]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1528]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2f1w7c3-wb-orion"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2f1w7c3-wb-orion"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2f1w7c3-wb-orion"], ["name", "WB Orion"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0309447], ["longitude", -121.2694072], ["updated_at", "2016-12-09 18:36:12.755545"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2f1w7c3-wb-orion\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-12T10:58:13.609-08:00\",\"updated_at\":\"2016-10-05T21:14:50.961-07:00\",\"client_id\":22,\"name\":\"WB Orion\",\"internal_branded_name\":null,\"custom_slug\":\"wb-orion\",\"corporate\":false,\"urn\":\"g5-cl-i2f1w7c3-wb-orion\",\"status\":\"Pending\",\"home_page_url\":\"http://www.wboriontraining.com\",\"street_address_1\":\"123 Orion St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.wboriontraining.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.wboriontraining.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0309447,\"longitude\":-121.2694072,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.757351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1529]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1529]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj8m6w-501-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj8m6w-501-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj8m6w-501-apartments"], ["name", "501 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 33.9412127], ["longitude", -84.2135309], ["updated_at", "2016-12-09 18:36:12.763778"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj8m6w-501-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:22:04.240-07:00\",\"updated_at\":\"2016-10-05T21:14:50.994-07:00\",\"client_id\":22,\"name\":\"501 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"501-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj8m6w-501-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo1.com\",\"street_address_1\":\"501 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Norcross\",\"state\":\"GA\",\"state_name\":\"Georgia\",\"postal_code\":\"30003\",\"website_page_prefix\":\"http://www.g5salesdemo1.com/apartments/ga/norcross\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo1.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1 \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"G5\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Recreation Area\",\"landmark_1_name\":\"Drake Park\",\"landmark_2_type\":\"University\",\"landmark_2_name\":\"COCC\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Affordable\",\"property_feature_3\":\"Furnished\",\"apartment_amenity_1\":\"Hot Tub\",\"apartment_amenity_2\":\"Utilities Included\",\"community_amenity_1\":\"Bend Beer on Tap\",\"community_amenity_2\":\"Swimming Pool\",\"timezone\":\"America/New_York\",\"latitude\":33.9412127,\"longitude\":-84.2135309,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.765604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1530]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1530]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i1tr38rn-luxe-theme"]]  (0.1ms) SAVEPOINT active_record_1 SQL (8.7ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i1tr38rn-luxe-theme"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i1tr38rn-luxe-theme"], ["name", "Luxe Theme"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:36:12.772461"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i1tr38rn-luxe-theme\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-10-28T14:12:36.663-07:00\",\"updated_at\":\"2016-10-05T21:14:51.028-07:00\",\"client_id\":22,\"name\":\"Luxe Theme\",\"internal_branded_name\":null,\"custom_slug\":\"luxe-theme\",\"corporate\":false,\"urn\":\"g5-cl-i1tr38rn-luxe-theme\",\"status\":\"Pending\",\"home_page_url\":\"http://www.luxegreyscale.com\",\"street_address_1\":\"550 NW Franklin\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.luxegreyscale.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.luxegreyscale.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.774256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1531]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1531]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xtistq-mockup-corp"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xtistq-mockup-corp"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xtistq-mockup-corp"], ["name", "Mockup Corp"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.789347"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xtistq-mockup-corp\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T14:11:28.135-08:00\",\"updated_at\":\"2016-10-05T21:14:51.064-07:00\",\"client_id\":22,\"name\":\"Mockup Corp\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-corp\",\"corporate\":true,\"urn\":\"g5-cl-i2xtistq-mockup-corp\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-corp.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-corp.com\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-corp.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.791131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1532]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1532]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqkmak-mockup-design-2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqkmak-mockup-design-2"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqkmak-mockup-design-2"], ["name", "Mockup Design 2"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:36:12.797687"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqkmak-mockup-design-2\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:48:54.431-08:00\",\"updated_at\":\"2016-10-05T21:14:51.096-07:00\",\"client_id\":22,\"name\":\"Mockup Design 2\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-design-2\",\"corporate\":false,\"urn\":\"g5-cl-i2xqkmak-mockup-design-2\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-2.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-2.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-2.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.799203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1533]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1533]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-563il6w5r-g5-product-demos"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-563il6w5r-g5-product-demos"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-563il6w5r-g5-product-demos"], ["name", "Cinemagraph Demo"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:36:12.808604"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-563il6w5r-g5-product-demos\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-18T15:08:05.402-07:00\",\"updated_at\":\"2016-10-05T21:14:51.126-07:00\",\"client_id\":22,\"name\":\"Cinemagraph Demo\",\"internal_branded_name\":\"G5 Product Demo\",\"custom_slug\":\"21\",\"corporate\":false,\"urn\":\"g5-cl-563il6w5r-g5-product-demos\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5productdemos.com\",\"street_address_1\":\"550 NW Franklin\",\"street_address_2\":\"Suite 200\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5productdemos.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5productdemos.com\",\"secure_domain\":false,\"phone_number\":\"555-555-5555\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-151557-C\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:36:12.810433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1534]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1534]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments', 'g5-cl-i2xqj16z-mockup-design-1', 'g5-cl-i62u551y-twd-ii', 'g5-cl-i26ltnpp-awc-apartments', 'g5-cl-i62u104t-twd-annex', 'g5-cl-560bevwxm-ivy-lifestyle', 'g5-cl-560beezd3-corp', 'g5-cl-560beqk15-broadway', 'g5-cl-1sojajeo-3-apartments', 'g5-cl-i26mfkam-twd-apartments', 'g5-cl-1spcif5s-1212-apartments', 'g5-cl-i2f1w7c3-wb-orion', 'g5-cl-1soj8m6w-501-apartments', 'g5-cl-i1tr38rn-luxe-theme', 'g5-cl-i2xtistq-mockup-corp', 'g5-cl-i2xqkmak-mockup-design-2', 'g5-cl-563il6w5r-g5-product-demos')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:39:23.646429"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:39:23.649762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:39:23.659698"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.662444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1535]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1535]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:39:23.696964"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.698756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1536]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1536]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:39:23.704968"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.706723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1537]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:39:23.712980"], ["updated_at", "2016-12-09 18:39:23.712980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:39:23.715178"], ["id", 17]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1537], ["g5_updatable_hub_amenity_id", 17]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:39:23.723001"], ["updated_at", "2016-12-09 18:39:23.723001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:39:23.724137"], ["id", 18]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1537], ["g5_updatable_hub_amenity_id", 18]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1537]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:23.727890"], ["id", 1537]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:39:23.730926"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.732755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1538]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1538], ["g5_updatable_hub_amenity_id", 17]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1538], ["g5_updatable_hub_amenity_id", 18]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1538]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:23.740926"], ["id", 1538]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:39:23.743578"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.745368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1539]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1539]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqj16z-mockup-design-1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqj16z-mockup-design-1"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1"], ["name", "Mockup Design 1"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:39:23.752207"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:47:40.529-08:00\",\"updated_at\":\"2016-10-05T21:14:50.621-07:00\",\"client_id\":22,\"name\":\"Mockup Design 1\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-design-1\",\"corporate\":false,\"urn\":\"g5-cl-i2xqj16z-mockup-design-1\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-1.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-1.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-1.com\",\"secure_domain\":false,\"phone_number\":\"541-123-4567\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.754260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1540]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1540]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i62u551y-twd-ii"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i62u551y-twd-ii"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii"], ["name", "TWD II"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 36.6739605], ["longitude", -121.6581225], ["updated_at", "2016-12-09 18:39:23.761020"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2015-02-12T16:26:48.064-08:00\",\"updated_at\":\"2016-10-05T21:14:50.655-07:00\",\"client_id\":22,\"name\":\"TWD II\",\"internal_branded_name\":null,\"custom_slug\":\"twd-ii\",\"corporate\":false,\"urn\":\"g5-cl-i62u551y-twd-ii\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo5.com\",\"street_address_1\":\"456 Howard St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Salinas\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90121\",\"website_page_prefix\":\"http://www.g5salesdemo5.com/apartments/ca/salinas\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo5.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":36.6739605,\"longitude\":-121.6581225,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.762646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1541]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1541]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i26ltnpp-awc-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i26ltnpp-awc-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments"], ["name", "AWC Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0858992], ["longitude", -121.3227489], ["updated_at", "2016-12-09 18:39:23.769468"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-06T13:06:11.818-08:00\",\"updated_at\":\"2016-10-05T21:14:50.689-07:00\",\"client_id\":22,\"name\":\"AWC Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"awc-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i26ltnpp-awc-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.awcapartments.com\",\"street_address_1\":\"555 NW Bungalo Ln.\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.awcapartments.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"test@getg5.com\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.awcapartments.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"North\",\"floor_plans\":\"1, 2 \\u0026 3 Bedrooms\",\"nearby_schools\":\"Central Oregon Community College, OSU Cascades\",\"nearby_employers\":\"G5\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"University\",\"landmark_1_name\":\"OSU Cascades\",\"landmark_2_type\":\"Lake\",\"landmark_2_name\":\"Elk Lake\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Swimming Pool\",\"apartment_amenity_2\":\"Sauna\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0858992,\"longitude\":-121.3227489,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.771206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1542]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1542]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments', 'g5-cl-i2xqj16z-mockup-design-1', 'g5-cl-i62u551y-twd-ii', 'g5-cl-i26ltnpp-awc-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:39:23.791325"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:39:23.792398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:39:23.794609"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.796562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1543]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1543]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:39:23.803126"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.804868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1544]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1544]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:39:23.810971"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.812716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1545]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:39:23.816634"], ["updated_at", "2016-12-09 18:39:23.816634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:39:23.817793"], ["id", 19]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1545], ["g5_updatable_hub_amenity_id", 19]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:39:23.821298"], ["updated_at", "2016-12-09 18:39:23.821298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:39:23.822323"], ["id", 20]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1545], ["g5_updatable_hub_amenity_id", 20]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1545]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:23.825651"], ["id", 1545]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:39:23.828473"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.830667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1546]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1546], ["g5_updatable_hub_amenity_id", 19]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1546], ["g5_updatable_hub_amenity_id", 20]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1546]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:23.839076"], ["id", 1546]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:39:23.841954"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.843737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1547]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1547]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqj16z-mockup-design-1"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqj16z-mockup-design-1"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1"], ["name", "Mockup Design 1"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:39:23.850074"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:47:40.529-08:00\",\"updated_at\":\"2016-10-05T21:14:50.621-07:00\",\"client_id\":22,\"name\":\"Mockup Design 1\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-design-1\",\"corporate\":false,\"urn\":\"g5-cl-i2xqj16z-mockup-design-1\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-1.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-1.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-1.com\",\"secure_domain\":false,\"phone_number\":\"541-123-4567\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.852253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1548]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1548]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i62u551y-twd-ii"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i62u551y-twd-ii"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii"], ["name", "TWD II"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 36.6739605], ["longitude", -121.6581225], ["updated_at", "2016-12-09 18:39:23.863567"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2015-02-12T16:26:48.064-08:00\",\"updated_at\":\"2016-10-05T21:14:50.655-07:00\",\"client_id\":22,\"name\":\"TWD II\",\"internal_branded_name\":null,\"custom_slug\":\"twd-ii\",\"corporate\":false,\"urn\":\"g5-cl-i62u551y-twd-ii\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo5.com\",\"street_address_1\":\"456 Howard St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Salinas\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90121\",\"website_page_prefix\":\"http://www.g5salesdemo5.com/apartments/ca/salinas\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo5.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":36.6739605,\"longitude\":-121.6581225,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.865831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1549]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1549]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i26ltnpp-awc-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i26ltnpp-awc-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments"], ["name", "AWC Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0858992], ["longitude", -121.3227489], ["updated_at", "2016-12-09 18:39:23.871891"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-06T13:06:11.818-08:00\",\"updated_at\":\"2016-10-05T21:14:50.689-07:00\",\"client_id\":22,\"name\":\"AWC Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"awc-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i26ltnpp-awc-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.awcapartments.com\",\"street_address_1\":\"555 NW Bungalo Ln.\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.awcapartments.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"test@getg5.com\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.awcapartments.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"North\",\"floor_plans\":\"1, 2 \\u0026 3 Bedrooms\",\"nearby_schools\":\"Central Oregon Community College, OSU Cascades\",\"nearby_employers\":\"G5\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"University\",\"landmark_1_name\":\"OSU Cascades\",\"landmark_2_type\":\"Lake\",\"landmark_2_name\":\"Elk Lake\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Swimming Pool\",\"apartment_amenity_2\":\"Sauna\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0858992,\"longitude\":-121.3227489,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.873462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1550]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1550]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments', 'g5-cl-i2xqj16z-mockup-design-1', 'g5-cl-i62u551y-twd-ii', 'g5-cl-i26ltnpp-awc-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:39:23.884512"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:39:23.885923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:39:23.888160"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.889789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1551]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1551]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:39:23.895441"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.897528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1552]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1552]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:39:23.904550"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.906246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1553]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:39:23.910170"], ["updated_at", "2016-12-09 18:39:23.910170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:39:23.911114"], ["id", 21]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1553], ["g5_updatable_hub_amenity_id", 21]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:39:23.913619"], ["updated_at", "2016-12-09 18:39:23.913619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:39:23.914636"], ["id", 22]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1553], ["g5_updatable_hub_amenity_id", 22]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1553]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:23.917830"], ["id", 1553]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:39:23.920855"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.922729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1554]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1554], ["g5_updatable_hub_amenity_id", 21]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1554], ["g5_updatable_hub_amenity_id", 22]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1554]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:23.930537"], ["id", 1554]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:39:23.933744"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.935523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1555]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1555]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqj16z-mockup-design-1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqj16z-mockup-design-1"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1"], ["name", "Mockup Design 1"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:39:23.941661"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqj16z-mockup-design-1\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:47:40.529-08:00\",\"updated_at\":\"2016-10-05T21:14:50.621-07:00\",\"client_id\":22,\"name\":\"Mockup Design 1\",\"internal_branded_name\":null,\"custom_slug\":\"mockup-design-1\",\"corporate\":false,\"urn\":\"g5-cl-i2xqj16z-mockup-design-1\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-1.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-1.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-1.com\",\"secure_domain\":false,\"phone_number\":\"541-123-4567\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.943326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1556]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1556]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i62u551y-twd-ii"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i62u551y-twd-ii"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii"], ["name", "TWD II"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 36.6739605], ["longitude", -121.6581225], ["updated_at", "2016-12-09 18:39:23.949808"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i62u551y-twd-ii\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2015-02-12T16:26:48.064-08:00\",\"updated_at\":\"2016-10-05T21:14:50.655-07:00\",\"client_id\":22,\"name\":\"TWD II\",\"internal_branded_name\":null,\"custom_slug\":\"twd-ii\",\"corporate\":false,\"urn\":\"g5-cl-i62u551y-twd-ii\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo5.com\",\"street_address_1\":\"456 Howard St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Salinas\",\"state\":\"CA\",\"state_name\":\"California\",\"postal_code\":\"90121\",\"website_page_prefix\":\"http://www.g5salesdemo5.com/apartments/ca/salinas\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo5.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":36.6739605,\"longitude\":-121.6581225,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.951437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1557]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1557]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i26ltnpp-awc-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i26ltnpp-awc-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments"], ["name", "AWC Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0858992], ["longitude", -121.3227489], ["updated_at", "2016-12-09 18:39:23.957799"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i26ltnpp-awc-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-06T13:06:11.818-08:00\",\"updated_at\":\"2016-10-05T21:14:50.689-07:00\",\"client_id\":22,\"name\":\"AWC Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"awc-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i26ltnpp-awc-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.awcapartments.com\",\"street_address_1\":\"555 NW Bungalo Ln.\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.awcapartments.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"test@getg5.com\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.awcapartments.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"North\",\"floor_plans\":\"1, 2 \\u0026 3 Bedrooms\",\"nearby_schools\":\"Central Oregon Community College, OSU Cascades\",\"nearby_employers\":\"G5\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"University\",\"landmark_1_name\":\"OSU Cascades\",\"landmark_2_type\":\"Lake\",\"landmark_2_name\":\"Elk Lake\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Swimming Pool\",\"apartment_amenity_2\":\"Sauna\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0858992,\"longitude\":-121.3227489,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:23.959436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1558]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1558]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments', 'g5-cl-i2xqj16z-mockup-design-1', 'g5-cl-i62u551y-twd-ii', 'g5-cl-i26ltnpp-awc-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities"  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:39:54.696735"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:39:54.699950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:39:54.708212"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.710810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1559]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1559]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:39:54.740615"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.742323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1560]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1560]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:39:54.748446"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.750372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1561]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:39:54.757016"], ["updated_at", "2016-12-09 18:39:54.757016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:39:54.759327"], ["id", 23]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1561], ["g5_updatable_hub_amenity_id", 23]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:39:54.765566"], ["updated_at", "2016-12-09 18:39:54.765566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:39:54.766589"], ["id", 24]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1561], ["g5_updatable_hub_amenity_id", 24]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1561]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:54.770434"], ["id", 1561]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:39:54.773353"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.775193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1562]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1562], ["g5_updatable_hub_amenity_id", 23]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1562], ["g5_updatable_hub_amenity_id", 24]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1562]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:54.783116"], ["id", 1562]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:39:54.785995"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.787830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1563]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1563]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:39:54.801535"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:39:54.802704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:39:54.805887"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.808328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1564]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1564]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:39:54.816211"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.818522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1565]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1565]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:39:54.825633"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.827581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1566]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:39:54.831811"], ["updated_at", "2016-12-09 18:39:54.831811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:39:54.832899"], ["id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1566], ["g5_updatable_hub_amenity_id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:39:54.835966"], ["updated_at", "2016-12-09 18:39:54.835966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:39:54.836998"], ["id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1566], ["g5_updatable_hub_amenity_id", 26]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1566]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:54.840319"], ["id", 1566]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:39:54.843005"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.844811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1567]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1567], ["g5_updatable_hub_amenity_id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1567], ["g5_updatable_hub_amenity_id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1567]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:54.856021"], ["id", 1567]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:39:54.860107"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.862266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1568]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1568]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:39:54.874005"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:39:54.875170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:39:54.877537"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.879355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1569]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1569]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:39:54.886218"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.888084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1570]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1570]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:39:54.894287"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.896101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1571]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:39:54.900286"], ["updated_at", "2016-12-09 18:39:54.900286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:39:54.901362"], ["id", 27]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1571], ["g5_updatable_hub_amenity_id", 27]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:39:54.904191"], ["updated_at", "2016-12-09 18:39:54.904191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:39:54.905367"], ["id", 28]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1571], ["g5_updatable_hub_amenity_id", 28]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1571]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:54.909102"], ["id", 1571]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:39:54.912290"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.914188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1572]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1572], ["g5_updatable_hub_amenity_id", 27]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1572], ["g5_updatable_hub_amenity_id", 28]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1572]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:39:54.926719"], ["id", 1572]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:39:54.929435"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:39:54.931170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1573]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1573]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:40:59.504405"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:40:59.507023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:40:59.515129"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.517546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1574]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1574]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:40:59.549133"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.550793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1575]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1575]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:40:59.556773"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.558530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1576]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:40:59.565131"], ["updated_at", "2016-12-09 18:40:59.565131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:40:59.567163"], ["id", 29]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1576], ["g5_updatable_hub_amenity_id", 29]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:40:59.575739"], ["updated_at", "2016-12-09 18:40:59.575739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:40:59.576745"], ["id", 30]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1576], ["g5_updatable_hub_amenity_id", 30]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1576]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:40:59.580325"], ["id", 1576]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:40:59.583029"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.584758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1577]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1577], ["g5_updatable_hub_amenity_id", 29]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1577], ["g5_updatable_hub_amenity_id", 30]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1577]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:40:59.592559"], ["id", 1577]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:40:59.595244"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.596957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1578]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1578]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:40:59.616961"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:40:59.617996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:40:59.620258"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.622007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1579]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1579]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:40:59.628453"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.630167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1580]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1580]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:40:59.636468"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.638318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1581]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:40:59.642230"], ["updated_at", "2016-12-09 18:40:59.642230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:40:59.643229"], ["id", 31]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1581], ["g5_updatable_hub_amenity_id", 31]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:40:59.645881"], ["updated_at", "2016-12-09 18:40:59.645881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:40:59.646839"], ["id", 32]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1581], ["g5_updatable_hub_amenity_id", 32]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1581]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:40:59.650110"], ["id", 1581]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:40:59.652944"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.655346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1582]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1582], ["g5_updatable_hub_amenity_id", 31]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1582], ["g5_updatable_hub_amenity_id", 32]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1582]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:40:59.664134"], ["id", 1582]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:40:59.666825"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.668712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1583]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1583]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:40:59.680258"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:40:59.681452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:40:59.683780"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.685522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1584]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1584]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:40:59.691871"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.693556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1585]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1585]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:40:59.699770"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.701591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1586]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:40:59.705229"], ["updated_at", "2016-12-09 18:40:59.705229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:40:59.706189"], ["id", 33]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1586], ["g5_updatable_hub_amenity_id", 33]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:40:59.708876"], ["updated_at", "2016-12-09 18:40:59.708876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:40:59.709948"], ["id", 34]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1586], ["g5_updatable_hub_amenity_id", 34]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1586]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:40:59.718060"], ["id", 1586]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:40:59.721024"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.722745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1587]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1587], ["g5_updatable_hub_amenity_id", 33]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1587], ["g5_updatable_hub_amenity_id", 34]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1587]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:40:59.730239"], ["id", 1587]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:40:59.732777"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:40:59.734412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1588]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1588]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:41:51.917864"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:41:51.920506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:41:51.928007"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:51.930832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1589]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1589]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:41:51.964517"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:51.966431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1590]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1590]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:41:51.972451"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:51.974178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1591]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:41:51.981637"], ["updated_at", "2016-12-09 18:41:51.981637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:41:51.984015"], ["id", 35]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1591], ["g5_updatable_hub_amenity_id", 35]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:41:51.993889"], ["updated_at", "2016-12-09 18:41:51.993889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:41:51.995096"], ["id", 36]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1591], ["g5_updatable_hub_amenity_id", 36]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1591]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:41:51.998918"], ["id", 1591]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:41:52.001933"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.003768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1592]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1592], ["g5_updatable_hub_amenity_id", 35]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1592], ["g5_updatable_hub_amenity_id", 36]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1592]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:41:52.012702"], ["id", 1592]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:41:52.015545"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.017339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1593]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1593]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:41:52.037843"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:41:52.038969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:41:52.041774"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.043696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1594]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1594]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:41:52.050989"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.052846"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1595]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1595]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:41:52.064083"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.066562"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1596]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:41:52.073307"], ["updated_at", "2016-12-09 18:41:52.073307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:41:52.075052"], ["id", 37]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1596], ["g5_updatable_hub_amenity_id", 37]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:41:52.078405"], ["updated_at", "2016-12-09 18:41:52.078405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:41:52.079794"], ["id", 38]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1596], ["g5_updatable_hub_amenity_id", 38]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1596]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:41:52.086282"], ["id", 1596]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:41:52.091486"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.094350"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1597]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1597], ["g5_updatable_hub_amenity_id", 37]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1597], ["g5_updatable_hub_amenity_id", 38]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1597]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:41:52.107016"], ["id", 1597]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:41:52.110755"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.112658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1598]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1598]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:41:52.125482"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:41:52.126725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:41:52.129121"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.131104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1599]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1599]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:41:52.137697"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.139347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1600]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1600]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:41:52.146213"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.148029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1601]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:41:52.151873"], ["updated_at", "2016-12-09 18:41:52.151873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:41:52.152871"], ["id", 39]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1601], ["g5_updatable_hub_amenity_id", 39]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:41:52.155406"], ["updated_at", "2016-12-09 18:41:52.155406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:41:52.156383"], ["id", 40]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1601], ["g5_updatable_hub_amenity_id", 40]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1601]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:41:52.159814"], ["id", 1601]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:41:52.167042"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.168974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1602]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1602], ["g5_updatable_hub_amenity_id", 39]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1602], ["g5_updatable_hub_amenity_id", 40]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1602]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:41:52.176564"], ["id", 1602]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:41:52.179162"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:41:52.180815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1603]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1603]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:42:01.006371"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:42:01.008978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:42:01.015861"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.018331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1604]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1604]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:42:01.050928"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.052573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1605]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1605]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:42:01.058707"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.060362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1606]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:42:01.066322"], ["updated_at", "2016-12-09 18:42:01.066322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:42:01.068608"], ["id", 41]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1606], ["g5_updatable_hub_amenity_id", 41]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:42:01.075313"], ["updated_at", "2016-12-09 18:42:01.075313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:42:01.076401"], ["id", 42]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1606], ["g5_updatable_hub_amenity_id", 42]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1606]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:42:01.079962"], ["id", 1606]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:42:01.082686"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.084554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1607]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1607], ["g5_updatable_hub_amenity_id", 41]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1607], ["g5_updatable_hub_amenity_id", 42]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1607]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:42:01.092841"], ["id", 1607]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:42:01.095456"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.097156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1608]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1608]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:42:01.115574"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:42:01.116682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:42:01.119312"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.121120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1609]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1609]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:42:01.127457"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.129076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1610]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1610]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:42:01.135370"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.137301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1611]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:42:01.141339"], ["updated_at", "2016-12-09 18:42:01.141339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:42:01.142351"], ["id", 43]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1611], ["g5_updatable_hub_amenity_id", 43]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:42:01.144918"], ["updated_at", "2016-12-09 18:42:01.144918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:42:01.145878"], ["id", 44]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1611], ["g5_updatable_hub_amenity_id", 44]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1611]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:42:01.149131"], ["id", 1611]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:42:01.151871"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.153601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1612]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1612], ["g5_updatable_hub_amenity_id", 43]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1612], ["g5_updatable_hub_amenity_id", 44]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1612]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:42:01.161598"], ["id", 1612]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:42:01.164186"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.165845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1613]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1613]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:42:01.177163"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:42:01.178230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:42:01.180503"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.182240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1614]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1614]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:42:01.188854"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.190783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1615]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1615]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:42:01.197153"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.198935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1616]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:42:01.203173"], ["updated_at", "2016-12-09 18:42:01.203173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:42:01.204183"], ["id", 45]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1616], ["g5_updatable_hub_amenity_id", 45]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:42:01.207183"], ["updated_at", "2016-12-09 18:42:01.207183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:42:01.208432"], ["id", 46]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1616], ["g5_updatable_hub_amenity_id", 46]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1616]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:42:01.212992"], ["id", 1616]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:42:01.215981"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.222322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1617]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1617], ["g5_updatable_hub_amenity_id", 45]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1617], ["g5_updatable_hub_amenity_id", 46]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1617]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:42:01.231386"], ["id", 1617]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:42:01.234169"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:42:01.236153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1618]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1618]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1616]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:43:20.019639"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:43:20.023087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:43:20.032443"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.035115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1619]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1619]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:43:20.074630"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.076304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1620]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1620]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:43:20.082628"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.084556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1621]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:43:20.091030"], ["updated_at", "2016-12-09 18:43:20.091030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:43:20.093246"], ["id", 47]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1621], ["g5_updatable_hub_amenity_id", 47]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:43:20.105681"], ["updated_at", "2016-12-09 18:43:20.105681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:43:20.106961"], ["id", 48]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1621], ["g5_updatable_hub_amenity_id", 48]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1621]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:43:20.111255"], ["id", 1621]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:43:20.114417"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.116281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1622]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1622], ["g5_updatable_hub_amenity_id", 47]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1622], ["g5_updatable_hub_amenity_id", 48]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1622]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:43:20.124470"], ["id", 1622]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:43:20.127031"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.128793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1623]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1623]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1621]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:43:20.146254"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:43:20.147380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:43:20.149642"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.151711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1624]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1624]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:43:20.158844"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.160543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1625]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1625]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:43:20.168870"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.170623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1626]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:43:20.174318"], ["updated_at", "2016-12-09 18:43:20.174318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:43:20.175318"], ["id", 49]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1626], ["g5_updatable_hub_amenity_id", 49]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:43:20.177943"], ["updated_at", "2016-12-09 18:43:20.177943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:43:20.178949"], ["id", 50]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1626], ["g5_updatable_hub_amenity_id", 50]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1626]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:43:20.182347"], ["id", 1626]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:43:20.185111"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.186855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1627]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1627], ["g5_updatable_hub_amenity_id", 49]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1627], ["g5_updatable_hub_amenity_id", 50]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1627]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:43:20.194197"], ["id", 1627]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:43:20.196835"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.198528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1628]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1628]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:43:20.211123"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:43:20.212224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:43:20.214660"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.216384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1629]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1629]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:43:20.224070"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.227194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1630]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1630]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:43:20.235323"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.237494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1631]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:43:20.241373"], ["updated_at", "2016-12-09 18:43:20.241373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:43:20.242386"], ["id", 51]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1631], ["g5_updatable_hub_amenity_id", 51]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:43:20.245146"], ["updated_at", "2016-12-09 18:43:20.245146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:43:20.246153"], ["id", 52]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1631], ["g5_updatable_hub_amenity_id", 52]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1631]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:43:20.249603"], ["id", 1631]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:43:20.256787"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.258793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1632]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1632], ["g5_updatable_hub_amenity_id", 51]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1632], ["g5_updatable_hub_amenity_id", 52]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1632]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:43:20.266845"], ["id", 1632]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:43:20.269590"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:43:20.271137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1633]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1633]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:47:15.643518"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:47:15.646871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:47:15.657372"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.660495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1634]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1634]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:47:15.697645"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.699397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1635]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1635]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:47:15.705583"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.707247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1636]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:47:15.713509"], ["updated_at", "2016-12-09 18:47:15.713509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:47:15.715546"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1636], ["g5_updatable_hub_amenity_id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:47:15.724863"], ["updated_at", "2016-12-09 18:47:15.724863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:47:15.725895"], ["id", 54]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1636], ["g5_updatable_hub_amenity_id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1636]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:47:15.729524"], ["id", 1636]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:47:15.732241"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.734119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1637]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1637], ["g5_updatable_hub_amenity_id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1637], ["g5_updatable_hub_amenity_id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1637]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:47:15.742182"], ["id", 1637]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:47:15.744841"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.746749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1638]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1638]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1636]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:47:15.762707"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:47:15.763821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:47:15.766425"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.768391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1639]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1639]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:47:15.775023"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.776682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1640]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1640]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:47:15.782430"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.784270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1641]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:47:15.787807"], ["updated_at", "2016-12-09 18:47:15.787807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:47:15.788799"], ["id", 55]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1641], ["g5_updatable_hub_amenity_id", 55]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:47:15.791468"], ["updated_at", "2016-12-09 18:47:15.791468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:47:15.792433"], ["id", 56]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1641], ["g5_updatable_hub_amenity_id", 56]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1641]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:47:15.795895"], ["id", 1641]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:47:15.798682"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.800697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1642]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1642], ["g5_updatable_hub_amenity_id", 55]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1642], ["g5_updatable_hub_amenity_id", 56]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1642]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:47:15.808542"], ["id", 1642]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:47:15.811120"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.812789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1643]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1643]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:47:15.829650"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:47:15.830775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:47:15.833136"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.835053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1644]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1644]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:47:15.842701"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.844620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1645]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1645]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:47:15.851720"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.853665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1646]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:47:15.857769"], ["updated_at", "2016-12-09 18:47:15.857769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:47:15.858791"], ["id", 57]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1646], ["g5_updatable_hub_amenity_id", 57]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:47:15.861232"], ["updated_at", "2016-12-09 18:47:15.861232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:47:15.862125"], ["id", 58]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1646], ["g5_updatable_hub_amenity_id", 58]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1646]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:47:15.869842"], ["id", 1646]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:47:15.872999"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.875033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1647]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1647], ["g5_updatable_hub_amenity_id", 57]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1647], ["g5_updatable_hub_amenity_id", 58]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1647]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:47:15.882517"], ["id", 1647]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:47:15.885227"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.886808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1648]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1648]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:47:15.898789"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:47:15.900696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1649]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1649]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:51:07.870728"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:07.875302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1650]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1650]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:51:07.924108"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:51:07.925373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:51:07.927734"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:07.929431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1651]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1651]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:51:07.936177"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:07.937872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1652]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1652]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:51:07.944762"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:07.946590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1653]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:51:07.954046"], ["updated_at", "2016-12-09 18:51:07.954046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:51:07.956650"], ["id", 59]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1653], ["g5_updatable_hub_amenity_id", 59]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:51:07.964898"], ["updated_at", "2016-12-09 18:51:07.964898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:51:07.966219"], ["id", 60]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1653], ["g5_updatable_hub_amenity_id", 60]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1653]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:07.969915"], ["id", 1653]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:51:07.972763"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:07.974580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1654]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1654], ["g5_updatable_hub_amenity_id", 59]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1654], ["g5_updatable_hub_amenity_id", 60]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1654]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:07.982930"], ["id", 1654]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:51:07.985517"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:07.987275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1655]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1655]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:51:08.006218"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:51:08.007322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:51:08.009562"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.011247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1656]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1656]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:51:08.017180"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.018909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1657]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1657]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:51:08.024953"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.026730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1658]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:51:08.030423"], ["updated_at", "2016-12-09 18:51:08.030423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:51:08.031503"], ["id", 61]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1658], ["g5_updatable_hub_amenity_id", 61]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:51:08.035203"], ["updated_at", "2016-12-09 18:51:08.035203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:51:08.036535"], ["id", 62]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1658], ["g5_updatable_hub_amenity_id", 62]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1658]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:08.040402"], ["id", 1658]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:51:08.043147"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.044892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1659]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1659], ["g5_updatable_hub_amenity_id", 61]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1659], ["g5_updatable_hub_amenity_id", 62]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1659]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:08.052969"], ["id", 1659]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:51:08.055735"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.057465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1660]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1660]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:51:08.068938"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:51:08.070018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:51:08.072508"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.074233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1661]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1661]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:51:08.082636"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.084774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1662]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1662]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:51:08.095653"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.097538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1663]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:51:08.101631"], ["updated_at", "2016-12-09 18:51:08.101631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:51:08.102599"], ["id", 63]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1663], ["g5_updatable_hub_amenity_id", 63]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:51:08.105174"], ["updated_at", "2016-12-09 18:51:08.105174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:51:08.106115"], ["id", 64]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1663], ["g5_updatable_hub_amenity_id", 64]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1663]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:08.109259"], ["id", 1663]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:51:08.111868"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.113456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1664]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1664], ["g5_updatable_hub_amenity_id", 63]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1664], ["g5_updatable_hub_amenity_id", 64]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1664]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:08.120687"], ["id", 1664]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:51:08.123159"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.124728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1665]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1665]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1663]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:51:08.136938"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:51:08.137990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:51:08.140228"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.141792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1666]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1666]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:51:08.147260"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.148862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1667]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1667]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:51:08.154566"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.156305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1668]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:51:08.159630"], ["updated_at", "2016-12-09 18:51:08.159630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:51:08.160571"], ["id", 65]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1668], ["g5_updatable_hub_amenity_id", 65]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:51:08.163129"], ["updated_at", "2016-12-09 18:51:08.163129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:51:08.164035"], ["id", 66]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1668], ["g5_updatable_hub_amenity_id", 66]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1668]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:08.167470"], ["id", 1668]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:51:08.169934"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.171565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1669]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1669], ["g5_updatable_hub_amenity_id", 65]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1669], ["g5_updatable_hub_amenity_id", 66]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1669]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:08.178579"], ["id", 1669]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:51:08.181043"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:08.183232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1670]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1670]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:51:24.310856"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.316840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1671]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1671]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:51:24.382629"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:51:24.384270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:51:24.388101"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.390169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1672]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1672]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:51:24.398849"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.401143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1673]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1673]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:51:24.412347"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.415180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1674]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:51:24.423296"], ["updated_at", "2016-12-09 18:51:24.423296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:51:24.426508"], ["id", 67]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1674], ["g5_updatable_hub_amenity_id", 67]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:51:24.435969"], ["updated_at", "2016-12-09 18:51:24.435969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:51:24.437274"], ["id", 68]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1674], ["g5_updatable_hub_amenity_id", 68]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1674]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:24.441355"], ["id", 1674]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:51:24.445212"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.447100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1675]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1675], ["g5_updatable_hub_amenity_id", 67]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1675], ["g5_updatable_hub_amenity_id", 68]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1675]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:24.456906"], ["id", 1675]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:51:24.459771"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.461522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1676]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1676]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1674]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:51:24.478579"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:51:24.479804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:51:24.482901"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.484975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1677]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1677]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:51:24.491787"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.493550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1678]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1678]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:51:24.500579"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.502494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1679]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:51:24.506718"], ["updated_at", "2016-12-09 18:51:24.506718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:51:24.507909"], ["id", 69]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1679], ["g5_updatable_hub_amenity_id", 69]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:51:24.510965"], ["updated_at", "2016-12-09 18:51:24.510965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:51:24.512112"], ["id", 70]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1679], ["g5_updatable_hub_amenity_id", 70]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1679]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:24.515979"], ["id", 1679]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:51:24.518993"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.520888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1680]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1680], ["g5_updatable_hub_amenity_id", 69]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1680], ["g5_updatable_hub_amenity_id", 70]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1680]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:24.529824"], ["id", 1680]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:51:24.533202"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.535149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1681]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1681]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:51:24.552762"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:51:24.554044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:51:24.556986"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.559104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1682]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1682]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:51:24.569768"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.571952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1683]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1683]]  (5.4ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:51:24.586470"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.589157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1684]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:51:24.594610"], ["updated_at", "2016-12-09 18:51:24.594610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:51:24.596455"], ["id", 71]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1684], ["g5_updatable_hub_amenity_id", 71]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:51:24.600064"], ["updated_at", "2016-12-09 18:51:24.600064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:51:24.601556"], ["id", 72]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1684], ["g5_updatable_hub_amenity_id", 72]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1684]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:24.605652"], ["id", 1684]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:51:24.609143"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.610916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1685]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1685], ["g5_updatable_hub_amenity_id", 71]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1685], ["g5_updatable_hub_amenity_id", 72]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1685]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:24.620089"], ["id", 1685]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:51:24.622884"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.624629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1686]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1686]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:51:24.637025"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:51:24.638109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:51:24.640674"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.642406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1687]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1687]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:51:24.648924"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.650790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1688]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1688]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:51:24.656928"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.658658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1689]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:51:24.662822"], ["updated_at", "2016-12-09 18:51:24.662822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:51:24.664035"], ["id", 73]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1689], ["g5_updatable_hub_amenity_id", 73]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:51:24.667499"], ["updated_at", "2016-12-09 18:51:24.667499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:51:24.668690"], ["id", 74]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1689], ["g5_updatable_hub_amenity_id", 74]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1689]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:24.672630"], ["id", 1689]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:51:24.675638"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.677535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1690]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1690], ["g5_updatable_hub_amenity_id", 73]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1690], ["g5_updatable_hub_amenity_id", 74]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1690]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:51:24.686950"], ["id", 1690]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:51:24.689916"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:51:24.691639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1691]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1691]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 18:51:24.710609"], ["id", 784]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 18:51:24.716387"], ["id", 1687]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1687]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1687]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1688]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1688]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.3ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1689]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 133]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 134]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1689]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1690]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 135]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 136]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1690]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1691]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1691]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:52:24.471118"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.477879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1692]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1692]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:52:24.528391"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:52:24.530847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:52:24.534095"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.535785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1693]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1693]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:52:24.541643"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.543534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1694]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1694]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:52:24.549649"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.551441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1695]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:52:24.557710"], ["updated_at", "2016-12-09 18:52:24.557710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:52:24.560039"], ["id", 75]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1695], ["g5_updatable_hub_amenity_id", 75]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:52:24.568475"], ["updated_at", "2016-12-09 18:52:24.568475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:52:24.569524"], ["id", 76]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1695], ["g5_updatable_hub_amenity_id", 76]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1695]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:52:24.573152"], ["id", 1695]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:52:24.575853"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.577897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1696]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1696], ["g5_updatable_hub_amenity_id", 75]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1696], ["g5_updatable_hub_amenity_id", 76]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1696]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:52:24.586880"], ["id", 1696]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:52:24.589367"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.591038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1697]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1697]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:52:24.609982"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:52:24.611024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:52:24.613195"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.614900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1698]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1698]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:52:24.620991"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.622655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1699]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1699]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:52:24.628819"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.630810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1700]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:52:24.635510"], ["updated_at", "2016-12-09 18:52:24.635510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:52:24.636609"], ["id", 77]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1700], ["g5_updatable_hub_amenity_id", 77]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:52:24.639213"], ["updated_at", "2016-12-09 18:52:24.639213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:52:24.640244"], ["id", 78]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1700], ["g5_updatable_hub_amenity_id", 78]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1700]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:52:24.643733"], ["id", 1700]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:52:24.646400"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.648188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1701]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1701], ["g5_updatable_hub_amenity_id", 77]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1701], ["g5_updatable_hub_amenity_id", 78]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1701]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:52:24.656866"], ["id", 1701]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:52:24.659885"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.661820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1702]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1702]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1700]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:52:24.675035"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:52:24.676220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:52:24.678773"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.680596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1703]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1703]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:52:24.687341"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.689406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1704]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1704]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:52:24.699950"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.701977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1705]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:52:24.705624"], ["updated_at", "2016-12-09 18:52:24.705624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:52:24.706655"], ["id", 79]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1705], ["g5_updatable_hub_amenity_id", 79]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:52:24.709418"], ["updated_at", "2016-12-09 18:52:24.709418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:52:24.710619"], ["id", 80]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1705], ["g5_updatable_hub_amenity_id", 80]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1705]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:52:24.714938"], ["id", 1705]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:52:24.717917"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.719520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1706]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1706], ["g5_updatable_hub_amenity_id", 79]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1706], ["g5_updatable_hub_amenity_id", 80]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1706]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:52:24.726911"], ["id", 1706]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:52:24.729508"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.731185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1707]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1707]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:52:24.741803"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:52:24.742873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:52:24.745152"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.746860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1708]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1708]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:52:24.752420"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.753953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1709]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1709]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:52:24.760083"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.761763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1710]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:52:24.765514"], ["updated_at", "2016-12-09 18:52:24.765514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:52:24.766494"], ["id", 81]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1710], ["g5_updatable_hub_amenity_id", 81]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:52:24.768914"], ["updated_at", "2016-12-09 18:52:24.768914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:52:24.769911"], ["id", 82]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1710], ["g5_updatable_hub_amenity_id", 82]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1710]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:52:24.773385"], ["id", 1710]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:52:24.775887"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.777694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1711]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1711], ["g5_updatable_hub_amenity_id", 81]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1711], ["g5_updatable_hub_amenity_id", 82]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1711]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:52:24.785875"], ["id", 1711]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:52:24.788215"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.789957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1712]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1712]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 18:52:24.799853"], ["id", 788]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1708]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1708]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1709]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1709]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1710]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 149]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 150]] SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1710]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1711]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 151]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 152]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1711]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1712]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1712]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 18:52:24.815910"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 18:52:24.816906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 18:52:24.818994"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.820681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1713]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1713]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 18:52:24.826673"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.828276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1714]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1714]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 18:52:24.834917"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.836759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1715]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 18:52:24.840401"], ["updated_at", "2016-12-09 18:52:24.840401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 18:52:24.841347"], ["id", 83]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1715], ["g5_updatable_hub_amenity_id", 83]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 18:52:24.844110"], ["updated_at", "2016-12-09 18:52:24.844110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 18:52:24.845041"], ["id", 84]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1715], ["g5_updatable_hub_amenity_id", 84]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:52:24.848294"], ["id", 1715]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 18:52:24.850857"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.852712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1716]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1716], ["g5_updatable_hub_amenity_id", 83]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1716], ["g5_updatable_hub_amenity_id", 84]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1716]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 18:52:24.860252"], ["id", 1716]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 18:52:24.862322"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 18:52:24.863795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1717]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1717]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 18:52:24.878122"], ["id", 789]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 18:52:24.883367"], ["id", 1713]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1713]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1713]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1714]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1714]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1715]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 153]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 154]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1715]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1716]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 155]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 156]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1716]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1717]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1717]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:56:09.098403"], ["updated_at", "2016-12-09 18:56:09.098403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 18:56:09.104677"], ["updated_at", "2016-12-09 18:56:09.104677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 18:56:09.106664"], ["updated_at", "2016-12-09 18:56:09.106664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 18:56:09.108545"], ["updated_at", "2016-12-09 18:56:09.108545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 18:56:09.110612"], ["updated_at", "2016-12-09 18:56:09.110612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.082095"], ["updated_at", "2016-12-09 18:57:55.082095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 18:57:55.099962"], ["id", 795]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:57:55.116549"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.117299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:57:55.122739"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.123272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:57:55.128466"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.128855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:57:55.133130"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.133548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:57:55.138044"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.138401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:57:55.142685"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.143078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:57:55.147214"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.147560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 18:57:55.152189"], ["updated_at", "2016-12-09 18:57:55.152189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:57:55.153504"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.153834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 18:57:55.157924"], ["updated_at", "2016-12-09 18:57:55.157924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:57:55.159279"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.159624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 18:57:55.163704"], ["updated_at", "2016-12-09 18:57:55.163704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:57:55.165150"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.165525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 18:57:55.170421"], ["updated_at", "2016-12-09 18:57:55.170421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:57:55.171781"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:57:55.172127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 18:58:52.512706"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 18:58:52.514712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:00:10.742499"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:00:10.744280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:02:31.879922"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:02:31.881923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:02:36.399333"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:02:36.401585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:05.156497"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:05.158219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:03:09.173515"], ["updated_at", "2016-12-09 19:03:09.173515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:09.179706"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:09.180173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:03:09.208458"], ["updated_at", "2016-12-09 19:03:09.208458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:09.210909"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:09.211302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:03:09.214879"], ["updated_at", "2016-12-09 19:03:09.214879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:09.216191"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:09.216553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:03:09.219635"], ["updated_at", "2016-12-09 19:03:09.219635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:09.220836"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:09.221154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:03:09.231134"], ["updated_at", "2016-12-09 19:03:09.231134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:03:09.232846"], ["id", 824]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 824]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:09.236850"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:09.237186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:09.239906"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:09.240299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:09.243305"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:09.243791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:09.246198"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:09.246521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:09.251010"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:09.251369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:09.254148"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:09.254466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:03:09.257064"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:03:09.257405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:13.745340"], ["updated_at", "2016-12-09 19:05:13.745340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:05:13.752940"], ["id", 832]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 832]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:05:13.765500"], ["updated_at", "2016-12-09 19:05:13.765500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:13.766775"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 833]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:05:13.770701"], ["updated_at", "2016-12-09 19:05:13.770701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:13.771977"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 834]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:05:13.775835"], ["updated_at", "2016-12-09 19:05:13.775835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:13.777023"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 835]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:05:13.780337"], ["updated_at", "2016-12-09 19:05:13.780337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:13.781652"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 836]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:13.785814"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:13.786267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:13.788972"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:13.789388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:13.792281"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:13.792646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:13.796768"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:13.797082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:13.799903"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:13.800221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:13.803296"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:13.803764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:13.806790"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:13.807180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:20.436825"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:20.438560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:20.451515"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:20.451995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:20.455119"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:20.455513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:20.460125"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:20.460535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:20.463553"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:20.463879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:20.466499"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:20.466816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:20.469827"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:05:20.470218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:05:20.473281"], ["updated_at", "2016-12-09 19:05:20.473281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:05:20.474948"], ["id", 851]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 851]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:05:20.479156"], ["updated_at", "2016-12-09 19:05:20.479156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:20.480276"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 852]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:05:20.483006"], ["updated_at", "2016-12-09 19:05:20.483006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:20.484422"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 853]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:05:20.488319"], ["updated_at", "2016-12-09 19:05:20.488319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:20.489667"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 854]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:05:20.493438"], ["updated_at", "2016-12-09 19:05:20.493438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:05:20.494699"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 855]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:10:23.052818"], ["updated_at", "2016-12-09 19:10:23.052818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:10:23.055040"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 856]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:10:23.065969"], ["updated_at", "2016-12-09 19:10:23.065969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:10:23.067541"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 857]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:10:23.071308"], ["updated_at", "2016-12-09 19:10:23.071308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:10:23.073401"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 858]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:10:23.077414"], ["updated_at", "2016-12-09 19:10:23.077414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:10:23.078648"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 859]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:10:23.085122"], ["updated_at", "2016-12-09 19:10:23.085122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:10:23.086858"], ["id", 860]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 860]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:10:49.652115"], ["updated_at", "2016-12-09 19:10:49.652115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:10:49.659918"], ["id", 861]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 861]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:10:49.689063"], ["updated_at", "2016-12-09 19:10:49.689063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:10:49.690552"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 862]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:10:49.695751"], ["updated_at", "2016-12-09 19:10:49.695751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:10:49.698730"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 863]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:10:49.702504"], ["updated_at", "2016-12-09 19:10:49.702504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:10:49.703843"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 864]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:10:49.707357"], ["updated_at", "2016-12-09 19:10:49.707357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:10:49.708721"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 865]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:11:41.051701"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:11:41.053371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:11:41.064635"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:11:41.065105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:11:41.068919"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:11:41.069493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:11:41.074247"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:11:41.074616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:11:41.077528"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:11:41.077865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:11:41.080660"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:11:41.081014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:11:41.083652"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:11:41.084005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:11:41.087095"], ["updated_at", "2016-12-09 19:11:41.087095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:11:41.088262"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 873]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:11:41.092019"], ["updated_at", "2016-12-09 19:11:41.092019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:11:41.093320"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 874]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:11:41.096835"], ["updated_at", "2016-12-09 19:11:41.096835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:11:41.097967"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 875]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:11:41.101216"], ["updated_at", "2016-12-09 19:11:41.101216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:11:41.102429"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 876]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:11:41.105999"], ["updated_at", "2016-12-09 19:11:41.105999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:11:41.107624"], ["id", 877]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 877]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:00.922488"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:00.924120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:00.934480"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:00.934965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:00.941686"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:00.942129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:00.945931"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:00.946467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:00.949598"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:00.949972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:00.952704"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:00.953057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:00.955971"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:00.956299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:12:00.959227"], ["updated_at", "2016-12-09 19:12:00.959227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:12:00.961002"], ["id", 885]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 885]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:12:00.965132"], ["updated_at", "2016-12-09 19:12:00.965132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:00.966559"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:12:00.970776"], ["updated_at", "2016-12-09 19:12:00.970776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:00.972078"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 887]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:12:00.975827"], ["updated_at", "2016-12-09 19:12:00.975827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:00.977022"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 888]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:12:00.980337"], ["updated_at", "2016-12-09 19:12:00.980337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:00.981403"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 889]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:55.482203"], ["updated_at", "2016-12-09 19:12:55.482203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:12:55.493137"], ["id", 890]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 890]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:12:55.508823"], ["updated_at", "2016-12-09 19:12:55.508823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:55.510906"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 891]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:12:55.515434"], ["updated_at", "2016-12-09 19:12:55.515434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:55.516659"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 892]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:12:55.520343"], ["updated_at", "2016-12-09 19:12:55.520343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:55.521551"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 893]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:12:55.525145"], ["updated_at", "2016-12-09 19:12:55.525145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:55.526873"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 894]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:55.532417"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:55.532778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (4.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:55.537433"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:55.537805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:55.545442"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:55.545827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:55.548017"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:55.548335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:55.551008"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:55.551325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:55.554059"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:55.554380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:12:55.557712"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:12:55.558169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:13:19.745085"], ["updated_at", "2016-12-09 19:13:19.745085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:19.751039"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 902]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:13:19.761755"], ["updated_at", "2016-12-09 19:13:19.761755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:19.763135"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 903]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:13:19.767186"], ["updated_at", "2016-12-09 19:13:19.767186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:19.768809"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 904]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:13:19.773770"], ["updated_at", "2016-12-09 19:13:19.773770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:19.775252"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 905]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:19.779206"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:19.779599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:19.782627"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:19.782986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:19.787107"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:19.787429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:19.790046"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:19.790365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:19.792908"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:19.793271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:19.795980"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:19.796292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:19.799377"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:19.799849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 19:13:41.781776"], ["updated_at", "2016-12-09 19:13:41.781776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:13:41.783925"], ["id", 913]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 913]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:48.375407"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:48.377111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:48.387996"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:48.388420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:48.391283"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:48.391638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:48.394211"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:48.394559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:48.400161"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:48.400655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:48.404808"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:48.405274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:48.408368"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:13:48.408681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:13:48.411622"], ["updated_at", "2016-12-09 19:13:48.411622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:48.413039"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 921]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:13:48.418763"], ["updated_at", "2016-12-09 19:13:48.418763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:48.420111"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 922]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:13:48.423057"], ["updated_at", "2016-12-09 19:13:48.423057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:48.424844"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 923]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:13:48.428680"], ["updated_at", "2016-12-09 19:13:48.428680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:13:48.430121"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 924]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:13:48.435944"], ["updated_at", "2016-12-09 19:13:48.435944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:13:48.437548"], ["id", 925]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 925]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 19:14:32.625156"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 19:14:32.628818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (8.7ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:14:32.638211"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:14:32.641182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1718]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1718]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 19:14:32.680929"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:14:32.682899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1719]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1719]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 19:14:32.689811"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:14:32.691390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1720]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 19:14:32.697450"], ["updated_at", "2016-12-09 19:14:32.697450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 19:14:32.699700"], ["id", 85]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1720], ["g5_updatable_hub_amenity_id", 85]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 19:14:32.708045"], ["updated_at", "2016-12-09 19:14:32.708045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 19:14:32.713977"], ["id", 86]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1720], ["g5_updatable_hub_amenity_id", 86]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1720]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:14:32.717895"], ["id", 1720]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 19:14:32.720683"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:14:32.722407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1721]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1721], ["g5_updatable_hub_amenity_id", 85]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1721], ["g5_updatable_hub_amenity_id", 86]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1721]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:14:32.731321"], ["id", 1721]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 19:14:32.733996"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:14:32.735754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1722]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1722]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:15:08.845474"], ["id", 926]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 19:15:08.851246"], ["id", 1718]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1718]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1718]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 19:15:08.861785"], ["id", 1719]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1719]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1719]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 19:15:08.871322"], ["id", 1720]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1720]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1720], ["g5_updatable_hub_amenity_id", 85]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1720], ["g5_updatable_hub_amenity_id", 86]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1720]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 19:15:08.887354"], ["id", 1721]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1721]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1721], ["g5_updatable_hub_amenity_id", 85]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1721], ["g5_updatable_hub_amenity_id", 86]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1721]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 19:15:08.903330"], ["id", 1722]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1722]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1722]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:15:08.932942"], ["updated_at", "2016-12-09 19:15:08.932942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:08.934789"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 927]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:15:08.938752"], ["updated_at", "2016-12-09 19:15:08.938752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:08.940304"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 928]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:15:08.944470"], ["updated_at", "2016-12-09 19:15:08.944470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:08.945781"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 929]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:15:08.949333"], ["updated_at", "2016-12-09 19:15:08.949333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:08.950469"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 930]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:15:08.953835"], ["updated_at", "2016-12-09 19:15:08.953835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:15:08.955473"], ["id", 931]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 931]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:08.958950"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:08.959321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:08.961952"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:08.962294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:08.965485"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:08.965815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:08.968026"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:08.968398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:08.971236"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:08.971567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:08.974487"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:08.974840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:08.977623"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:08.977963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:11.843624"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:11.846380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:11.857196"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:11.857632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:11.862264"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:11.862670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:11.865424"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:11.865768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:11.869019"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:11.869402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:11.873288"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:11.873757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:15:11.878183"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:15:11.878730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:15:11.882809"], ["updated_at", "2016-12-09 19:15:11.882809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:15:11.884748"], ["id", 946]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 946]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (5.6ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:16:44.449620"], ["updated_at", "2016-12-09 19:16:44.449620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:16:44.457962"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 947]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:16:44.462347"], ["updated_at", "2016-12-09 19:16:44.462347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:16:44.463710"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 948]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:16:44.468261"], ["updated_at", "2016-12-09 19:16:44.468261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:16:44.469674"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 949]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:16:44.473199"], ["updated_at", "2016-12-09 19:16:44.473199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:16:44.474360"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 950]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:12.536755"], ["updated_at", "2016-12-09 19:17:12.536755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:17:12.546893"], ["id", 951]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.8ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 951]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:12.563036"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:12.563495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:12.568108"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:12.568543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:12.573577"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:12.574021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:12.577065"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:12.577478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:12.581343"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:12.581780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:12.585148"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:12.585527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:12.588188"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:12.588553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:17:12.595007"], ["updated_at", "2016-12-09 19:17:12.595007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:12.596205"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 959]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:17:12.600174"], ["updated_at", "2016-12-09 19:17:12.600174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:12.601351"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 960]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:17:12.604244"], ["updated_at", "2016-12-09 19:17:12.604244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:12.605568"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 961]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:17:12.609262"], ["updated_at", "2016-12-09 19:17:12.609262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:12.610442"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:53.267695"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:53.269858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:53.285216"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:53.285661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:53.290408"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:53.290844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:53.296297"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:53.296716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:53.300206"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:53.300614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:53.303996"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:53.304414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:53.307680"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:17:53.308037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:17:53.311377"], ["updated_at", "2016-12-09 19:17:53.311377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:17:53.313102"], ["id", 970]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 970]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:17:53.317380"], ["updated_at", "2016-12-09 19:17:53.317380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:53.318703"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 971]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:17:53.321735"], ["updated_at", "2016-12-09 19:17:53.321735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:53.322922"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 972]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:17:53.326132"], ["updated_at", "2016-12-09 19:17:53.326132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:53.327411"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 973]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:17:53.331547"], ["updated_at", "2016-12-09 19:17:53.331547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:17:53.332970"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 974]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 19:17:53.339609"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 19:17:53.341232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:17:53.355907"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:17:53.358744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1723]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1723]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 19:17:53.382329"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:17:53.384564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1724]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1724]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 19:17:53.391118"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:17:53.392940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1725]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 19:17:53.400411"], ["updated_at", "2016-12-09 19:17:53.400411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 19:17:53.402649"], ["id", 87]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1725], ["g5_updatable_hub_amenity_id", 87]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 19:17:53.409494"], ["updated_at", "2016-12-09 19:17:53.409494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 19:17:53.410729"], ["id", 88]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1725], ["g5_updatable_hub_amenity_id", 88]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1725]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:17:53.414452"], ["id", 1725]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 19:17:53.417179"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:17:53.418998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1726]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1726], ["g5_updatable_hub_amenity_id", 87]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1726], ["g5_updatable_hub_amenity_id", 88]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1726]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:17:53.426947"], ["id", 1726]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 19:17:53.429585"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:17:53.431339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1727]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1727]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.542443"], ["updated_at", "2016-12-09 19:27:09.542443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:27:09.546228"], ["updated_at", "2016-12-09 19:27:09.546228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.558437"], ["updated_at", "2016-12-09 19:27:09.558437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.559753"], ["updated_at", "2016-12-09 19:27:09.559753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:27:09.561968"], ["updated_at", "2016-12-09 19:27:09.561968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "{\"internal_branded_name\":\"a brand\"}"], ["created_at", "2016-12-09 19:27:09.570633"], ["updated_at", "2016-12-09 19:27:09.570633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 19:27:09.572923"], ["updated_at", "2016-12-09 19:27:09.572923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"], ["created_at", "2016-12-09 19:27:09.575620"], ["updated_at", "2016-12-09 19:27:09.575620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.584034"], ["updated_at", "2016-12-09 19:27:09.584034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1734]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.594089"], ["updated_at", "2016-12-09 19:27:09.594089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 19:27:09.599013"], ["updated_at", "2016-12-09 19:27:09.599013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 19:27:09.600340"], ["updated_at", "2016-12-09 19:27:09.600340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1735], ["g5_updatable_hub_amenity_id", 89]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1735], ["g5_updatable_hub_amenity_id", 90]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1735]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 19:27:09.617530"], ["id", 1735]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1735]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1735]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.621476"], ["updated_at", "2016-12-09 19:27:09.621476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 19:27:09.622720"], ["updated_at", "2016-12-09 19:27:09.622720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 19:27:09.623719"], ["updated_at", "2016-12-09 19:27:09.623719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1736], ["g5_updatable_hub_amenity_id", 91]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1736], ["g5_updatable_hub_amenity_id", 92]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1736]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 19:27:09.628183"], ["id", 1736]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1736]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1736]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1736]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1736]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1736]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["created_at", "2016-12-09 19:27:09.634239"], ["updated_at", "2016-12-09 19:27:09.634239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["created_at", "2016-12-09 19:27:09.635686"], ["updated_at", "2016-12-09 19:27:09.635686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["created_at", "2016-12-09 19:27:09.645310"], ["updated_at", "2016-12-09 19:27:09.645310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["created_at", "2016-12-09 19:27:09.646923"], ["updated_at", "2016-12-09 19:27:09.646923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["created_at", "2016-12-09 19:27:09.650457"], ["updated_at", "2016-12-09 19:27:09.650457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["created_at", "2016-12-09 19:27:09.651836"], ["updated_at", "2016-12-09 19:27:09.651836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (2.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["created_at", "2016-12-09 19:27:09.657364"], ["updated_at", "2016-12-09 19:27:09.657364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["created_at", "2016-12-09 19:27:09.658668"], ["updated_at", "2016-12-09 19:27:09.658668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["created_at", "2016-12-09 19:27:09.661659"], ["updated_at", "2016-12-09 19:27:09.661659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["created_at", "2016-12-09 19:27:09.663003"], ["updated_at", "2016-12-09 19:27:09.663003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.666460"], ["updated_at", "2016-12-09 19:27:09.666460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.667634"], ["updated_at", "2016-12-09 19:27:09.667634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.670617"], ["updated_at", "2016-12-09 19:27:09.670617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.671888"], ["updated_at", "2016-12-09 19:27:09.671888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.675776"], ["updated_at", "2016-12-09 19:27:09.675776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.677184"], ["updated_at", "2016-12-09 19:27:09.677184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.679314"], ["updated_at", "2016-12-09 19:27:09.679314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.680749"], ["updated_at", "2016-12-09 19:27:09.680749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.683687"], ["updated_at", "2016-12-09 19:27:09.683687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.684916"], ["updated_at", "2016-12-09 19:27:09.684916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.687169"], ["updated_at", "2016-12-09 19:27:09.687169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.688453"], ["updated_at", "2016-12-09 19:27:09.688453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.691233"], ["updated_at", "2016-12-09 19:27:09.691233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.692428"], ["updated_at", "2016-12-09 19:27:09.692428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.694463"], ["updated_at", "2016-12-09 19:27:09.694463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.695831"], ["updated_at", "2016-12-09 19:27:09.695831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.701074"], ["updated_at", "2016-12-09 19:27:09.701074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.702578"], ["updated_at", "2016-12-09 19:27:09.702578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.704868"], ["updated_at", "2016-12-09 19:27:09.704868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.706164"], ["updated_at", "2016-12-09 19:27:09.706164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.708870"], ["updated_at", "2016-12-09 19:27:09.708870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.710133"], ["updated_at", "2016-12-09 19:27:09.710133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.712179"], ["updated_at", "2016-12-09 19:27:09.712179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.713509"], ["updated_at", "2016-12-09 19:27:09.713509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.716481"], ["updated_at", "2016-12-09 19:27:09.716481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.717663"], ["updated_at", "2016-12-09 19:27:09.717663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.719752"], ["updated_at", "2016-12-09 19:27:09.719752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.721007"], ["updated_at", "2016-12-09 19:27:09.721007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.723773"], ["updated_at", "2016-12-09 19:27:09.723773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.725107"], ["updated_at", "2016-12-09 19:27:09.725107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.727304"], ["updated_at", "2016-12-09 19:27:09.727304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.728538"], ["updated_at", "2016-12-09 19:27:09.728538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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/clients/g5-c-1234-client"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.736368"], ["updated_at", "2016-12-09 19:27:09.736368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 19:27:09.737880"], ["updated_at", "2016-12-09 19:27:09.737880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.740079"], ["updated_at", "2016-12-09 19:27:09.740079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.741414"], ["updated_at", "2016-12-09 19:27:09.741414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.744253"], ["updated_at", "2016-12-09 19:27:09.744253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.745493"], ["updated_at", "2016-12-09 19:27:09.745493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.747577"], ["updated_at", "2016-12-09 19:27:09.747577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.748854"], ["updated_at", "2016-12-09 19:27:09.748854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 19:27:09.751535"], ["updated_at", "2016-12-09 19:27:09.751535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 19:27:09.753117"], ["updated_at", "2016-12-09 19:27:09.753117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.755775"], ["updated_at", "2016-12-09 19:27:09.755775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.757506"], ["updated_at", "2016-12-09 19:27:09.757506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.759900"], ["updated_at", "2016-12-09 19:27:09.759900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.761103"], ["updated_at", "2016-12-09 19:27:09.761103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.763196"], ["updated_at", "2016-12-09 19:27:09.763196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.764413"], ["updated_at", "2016-12-09 19:27:09.764413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.766424"], ["updated_at", "2016-12-09 19:27:09.766424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.767655"], ["updated_at", "2016-12-09 19:27:09.767655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.770164"], ["updated_at", "2016-12-09 19:27:09.770164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 19:27:09.771462"], ["updated_at", "2016-12-09 19:27:09.771462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["created_at", "2016-12-09 19:27:09.773508"], ["updated_at", "2016-12-09 19:27:09.773508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.783639"], ["updated_at", "2016-12-09 19:27:09.783639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.785148"], ["updated_at", "2016-12-09 19:27:09.785148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.789279"], ["updated_at", "2016-12-09 19:27:09.789279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1005]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.841118"], ["updated_at", "2016-12-09 19:27:09.841118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.28ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.848007"], ["updated_at", "2016-12-09 19:27:09.848007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.32ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.860505"], ["updated_at", "2016-12-09 19:27:09.860505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 19:27:09.862095"], ["updated_at", "2016-12-09 19:27:09.862095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.863597"], ["updated_at", "2016-12-09 19:27:09.863597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.864717"], ["updated_at", "2016-12-09 19:27:09.864717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.866041"], ["updated_at", "2016-12-09 19:27:09.866041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.871907"], ["updated_at", "2016-12-09 19:27:09.871907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 19:27:09.873408"], ["updated_at", "2016-12-09 19:27:09.873408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 19:27:09.874975"], ["updated_at", "2016-12-09 19:27:09.874975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:09.876462"], ["updated_at", "2016-12-09 19:27:09.876462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:27:09.877718"], ["updated_at", "2016-12-09 19:27:09.877718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.885865"], ["updated_at", "2016-12-09 19:27:09.885865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["created_at", "2016-12-09 19:27:09.887170"], ["updated_at", "2016-12-09 19:27:09.887170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 19:27:09.888292"], ["updated_at", "2016-12-09 19:27:09.888292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 19:27:09.889217"], ["updated_at", "2016-12-09 19:27:09.889217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 19:27:09.890118"], ["updated_at", "2016-12-09 19:27:09.890118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1783], ["g5_updatable_hub_amenity_id", 93]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1783], ["g5_updatable_hub_amenity_id", 94]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:09.896697"], ["updated_at", "2016-12-09 19:27:09.896697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["created_at", "2016-12-09 19:27:09.897835"], ["updated_at", "2016-12-09 19:27:09.897835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 19:27:09.898919"], ["updated_at", "2016-12-09 19:27:09.898919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 19:27:09.899924"], ["updated_at", "2016-12-09 19:27:09.899924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 19:27:09.900963"], ["updated_at", "2016-12-09 19:27:09.900963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1784], ["g5_updatable_hub_amenity_id", 96]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1784], ["g5_updatable_hub_amenity_id", 97]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.5ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:27:09.949781"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:27:09.950311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:27:09.953647"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:27:09.954048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:27:09.956829"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:27:09.957157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:27:09.960257"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:27:09.960595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:27:09.964030"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:27:09.964390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:27:09.967169"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:27:09.967497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:27:09.970597"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 19:27:09.971014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 19:27:09.977018"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 19:27:09.978359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:27:09.981081"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:09.983540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1785]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1785]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 19:27:09.990405"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:09.992123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1786]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1786]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 19:27:09.998134"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:09.999863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1787]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 19:27:10.003960"], ["updated_at", "2016-12-09 19:27:10.003960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 19:27:10.006157"], ["id", 99]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1787], ["g5_updatable_hub_amenity_id", 99]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 19:27:10.008810"], ["updated_at", "2016-12-09 19:27:10.008810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 19:27:10.009786"], ["id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1787], ["g5_updatable_hub_amenity_id", 100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1787]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.013090"], ["id", 1787]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 19:27:10.015634"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.017365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1788]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1788], ["g5_updatable_hub_amenity_id", 99]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1788], ["g5_updatable_hub_amenity_id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1788]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.025161"], ["id", 1788]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 19:27:10.027812"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.029568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1789]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1789]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:27:10.043156"], ["updated_at", "2016-12-09 19:27:10.043156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:27:10.044936"], ["id", 1020]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1020]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:10.048346"], ["updated_at", "2016-12-09 19:27:10.048346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:27:10.049473"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1021]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:10.053026"], ["updated_at", "2016-12-09 19:27:10.053026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:27:10.054148"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1022]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:10.057037"], ["updated_at", "2016-12-09 19:27:10.057037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:27:10.058170"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1023]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:27:10.061541"], ["updated_at", "2016-12-09 19:27:10.061541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 19:27:10.062615"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1024]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'urn') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 19:27:10.080847"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 19:27:10.082149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:27:10.084613"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.086603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1790]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1790]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 19:27:10.093044"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.094840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1791]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1791]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 19:27:10.101325"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.103425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1792]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 19:27:10.113808"], ["updated_at", "2016-12-09 19:27:10.113808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 19:27:10.114878"], ["id", 101]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1792], ["g5_updatable_hub_amenity_id", 101]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 19:27:10.117682"], ["updated_at", "2016-12-09 19:27:10.117682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 19:27:10.118744"], ["id", 102]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1792], ["g5_updatable_hub_amenity_id", 102]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1792]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.123634"], ["id", 1792]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 19:27:10.127410"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.129848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1793]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1793], ["g5_updatable_hub_amenity_id", 101]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1793], ["g5_updatable_hub_amenity_id", 102]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1793]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.140610"], ["id", 1793]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 19:27:10.143668"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.145717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1794]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1794]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 19:27:10.160669"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 19:27:10.161707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:27:10.164154"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.165862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1795]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1795]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 19:27:10.172123"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.173743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1796]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1796]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 19:27:10.181270"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.185172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1797]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 19:27:10.189564"], ["updated_at", "2016-12-09 19:27:10.189564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 19:27:10.190592"], ["id", 103]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1797], ["g5_updatable_hub_amenity_id", 103]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 19:27:10.193209"], ["updated_at", "2016-12-09 19:27:10.193209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 19:27:10.194152"], ["id", 104]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1797], ["g5_updatable_hub_amenity_id", 104]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1797]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.197787"], ["id", 1797]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 19:27:10.200640"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.203678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1798]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1798], ["g5_updatable_hub_amenity_id", 103]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1798], ["g5_updatable_hub_amenity_id", 104]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1798]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.213635"], ["id", 1798]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 19:27:10.217260"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.219837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1799]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1799]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 19:27:10.233448"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 19:27:10.234524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:27:10.237505"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.239633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1800]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1800]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 19:27:10.247593"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.249711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1801]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1801]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 19:27:10.257901"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.260298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1802]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 19:27:10.265130"], ["updated_at", "2016-12-09 19:27:10.265130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 19:27:10.266194"], ["id", 105]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1802], ["g5_updatable_hub_amenity_id", 105]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 19:27:10.269021"], ["updated_at", "2016-12-09 19:27:10.269021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 19:27:10.270313"], ["id", 106]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1802], ["g5_updatable_hub_amenity_id", 106]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1802]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.274621"], ["id", 1802]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 19:27:10.278268"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.280741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1803]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1803], ["g5_updatable_hub_amenity_id", 105]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1803], ["g5_updatable_hub_amenity_id", 106]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1803]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.294512"], ["id", 1803]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 19:27:10.299322"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.301398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1804]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1804]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1802]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 19:27:10.328923"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 19:27:10.330085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:27:10.332702"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.334456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1805]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1805]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 19:27:10.341267"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.343084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1806]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1806]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 19:27:10.349367"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.351449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1807]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 19:27:10.355872"], ["updated_at", "2016-12-09 19:27:10.355872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 19:27:10.357010"], ["id", 107]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1807], ["g5_updatable_hub_amenity_id", 107]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 19:27:10.359757"], ["updated_at", "2016-12-09 19:27:10.359757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 19:27:10.360802"], ["id", 108]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1807], ["g5_updatable_hub_amenity_id", 108]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1807]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.364535"], ["id", 1807]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 19:27:10.367183"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.368881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1808]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1808], ["g5_updatable_hub_amenity_id", 107]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1808], ["g5_updatable_hub_amenity_id", 108]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1808]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.377398"], ["id", 1808]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 19:27:10.380045"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.381874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1809]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1809]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:27:10.393360"], ["id", 1028]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 19:27:10.398857"], ["id", 1805]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1805]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1805]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1806]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1806]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1807]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 193]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 194]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1807]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1808]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 195]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 196]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1808]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1809]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1809]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 19:27:10.419762"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 19:27:10.420762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:27:10.422853"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.424450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1810]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1810]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 19:27:10.430906"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.432791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1811]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1811]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 19:27:10.438725"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.440656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1812]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 19:27:10.444339"], ["updated_at", "2016-12-09 19:27:10.444339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 19:27:10.445338"], ["id", 109]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1812], ["g5_updatable_hub_amenity_id", 109]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 19:27:10.447919"], ["updated_at", "2016-12-09 19:27:10.447919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 19:27:10.448881"], ["id", 110]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1812], ["g5_updatable_hub_amenity_id", 110]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1812]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.452062"], ["id", 1812]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 19:27:10.454851"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.456586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1813]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1813], ["g5_updatable_hub_amenity_id", 109]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1813], ["g5_updatable_hub_amenity_id", 110]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1813]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 19:27:10.464090"], ["id", 1813]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 19:27:10.466643"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.468577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1814]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1814]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily') G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 19:27:10.483872"], ["id", 1029]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."uid" = "g5_updatable_locations"."client_uid" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8m6e-g5-multifamily')  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1810]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1810]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1811]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1811]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1812]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 197]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 198]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1812]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1813]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 199]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 200]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1813]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1814]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1814]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:27:10.501216"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:27:10.503199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1815]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1815]]  (0.0ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:25.504471"], ["updated_at", "2016-12-09 19:51:25.504471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.374847"], ["updated_at", "2016-12-09 19:51:43.374847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.383969"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.386421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1818]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1818]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.435883"], ["updated_at", "2016-12-09 19:51:43.435883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.438263"], ["updated_at", "2016-12-09 19:51:43.438263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.439842"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.441596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1821]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1821]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.450118"], ["updated_at", "2016-12-09 19:51:43.450118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.451789"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.453428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1823]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1823]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.463161"], ["updated_at", "2016-12-09 19:51:43.463161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.467658"], ["updated_at", "2016-12-09 19:51:43.467658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.470891"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.472583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1826]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1826]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.482528"], ["updated_at", "2016-12-09 19:51:43.482528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.486991"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.488624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1828]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1828]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1827]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.499563"], ["updated_at", "2016-12-09 19:51:43.499563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.503878"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.505680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1830]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1830]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 19:51:43.515488"], ["updated_at", "2016-12-09 19:51:43.515488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:51:43.517012"], ["updated_at", "2016-12-09 19:51:43.517012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1030]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1831]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.520210"], ["updated_at", "2016-12-09 19:51:43.520210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 19:51:43.523863"], ["updated_at", "2016-12-09 19:51:43.523863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1832], ["g5_updatable_hub_amenity_id", 111]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.531156"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.532919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1833]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1833]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1833]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.542372"], ["updated_at", "2016-12-09 19:51:43.542372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 19:51:43.544571"], ["updated_at", "2016-12-09 19:51:43.544571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1834], ["g5_updatable_hub_amenity_id", 112]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.547849"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.549593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1835]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1835]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.556973"], ["updated_at", "2016-12-09 19:51:43.556973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 19:51:43.558313"], ["updated_at", "2016-12-09 19:51:43.558313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1836], ["g5_updatable_hub_amenity_id", 113]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.561080"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.562861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1837]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1837]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.571199"], ["updated_at", "2016-12-09 19:51:43.571199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 19:51:43.572594"], ["updated_at", "2016-12-09 19:51:43.572594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1838], ["g5_updatable_hub_amenity_id", 114]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.575048"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.577041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1839]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1839]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:51:43.583279"], ["updated_at", "2016-12-09 19:51:43.583279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:51:43.584499"], ["updated_at", "2016-12-09 19:51:43.584499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1031]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1840]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.587206"], ["updated_at", "2016-12-09 19:51:43.587206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 19:51:43.588614"], ["updated_at", "2016-12-09 19:51:43.588614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1841], ["g5_updatable_hub_amenity_id", 115]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.591423"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.593383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1842]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1842]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.602333"], ["updated_at", "2016-12-09 19:51:43.602333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 19:51:43.603784"], ["updated_at", "2016-12-09 19:51:43.603784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1843], ["g5_updatable_hub_amenity_id", 116]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.606026"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.612039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1844]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1844]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.629613"], ["updated_at", "2016-12-09 19:51:43.629613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 19:51:43.631228"], ["updated_at", "2016-12-09 19:51:43.631228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1845], ["g5_updatable_hub_amenity_id", 117]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.633646"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.635264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1846]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1846]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.643758"], ["updated_at", "2016-12-09 19:51:43.643758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 19:51:43.645412"], ["updated_at", "2016-12-09 19:51:43.645412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1847], ["g5_updatable_hub_amenity_id", 118]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.647959"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.649603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1848]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1848]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:51:43.655255"], ["updated_at", "2016-12-09 19:51:43.655255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:51:43.656584"], ["updated_at", "2016-12-09 19:51:43.656584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1032]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1849]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.659564"], ["updated_at", "2016-12-09 19:51:43.659564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 19:51:43.661016"], ["updated_at", "2016-12-09 19:51:43.661016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1850], ["g5_updatable_hub_amenity_id", 119]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.663437"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.665088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1851]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1851]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:51:43.672821"], ["updated_at", "2016-12-09 19:51:43.672821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 19:51:43.674126"], ["updated_at", "2016-12-09 19:51:43.674126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1852], ["g5_updatable_hub_amenity_id", 120]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.676906"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.678644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1853]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1853]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.686820"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.688412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1854]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1854]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1854]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.697762"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.699381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1855]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1855]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.709137"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.710993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1856]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1856]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.718189"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.719754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1857]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1857]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (7.8ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.732030"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.733819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1858]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1858]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.750746"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.752337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1859]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1859]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.760794"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.762467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1860]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1860]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.770842"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.772472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1861]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1861]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.780995"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.782449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1862]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1862]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:51:43.792451"], ["updated_at", "2016-12-09 19:51:43.792451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:51:43.793879"], ["updated_at", "2016-12-09 19:51:43.793879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1033]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1863]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.797126"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.798956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1864]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1864]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.806860"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.808596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1865]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1865]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.817339"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.818940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1866]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1866]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:51:43.828968"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:51:43.830768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1867]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1867]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.187779"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.192422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1868]] G5Updatable::HubAmenity Load (0.5ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1868]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.235989"], ["updated_at", "2016-12-09 19:52:52.235989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 19:52:52.240268"], ["updated_at", "2016-12-09 19:52:52.240268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1869], ["g5_updatable_hub_amenity_id", 121]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.247043"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.248732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1870]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1870]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.266878"], ["updated_at", "2016-12-09 19:52:52.266878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 19:52:52.268600"], ["updated_at", "2016-12-09 19:52:52.268600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1871], ["g5_updatable_hub_amenity_id", 122]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.272364"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.274178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1872]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1872]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1872]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.283905"], ["updated_at", "2016-12-09 19:52:52.283905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 19:52:52.285532"], ["updated_at", "2016-12-09 19:52:52.285532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1873], ["g5_updatable_hub_amenity_id", 123]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.288454"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.290149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1874]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1874]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.297401"], ["updated_at", "2016-12-09 19:52:52.297401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 19:52:52.298879"], ["updated_at", "2016-12-09 19:52:52.298879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1875], ["g5_updatable_hub_amenity_id", 124]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.301357"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.303188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1876]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1876]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.321207"], ["updated_at", "2016-12-09 19:52:52.321207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 19:52:52.322800"], ["updated_at", "2016-12-09 19:52:52.322800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1877], ["g5_updatable_hub_amenity_id", 125]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.325398"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.327092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1878]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1878]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 19:52:52.336779"], ["updated_at", "2016-12-09 19:52:52.336779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:52:52.338355"], ["updated_at", "2016-12-09 19:52:52.338355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1034]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1879]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.341704"], ["updated_at", "2016-12-09 19:52:52.341704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 19:52:52.343146"], ["updated_at", "2016-12-09 19:52:52.343146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1880], ["g5_updatable_hub_amenity_id", 126]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.345552"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.347315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1881]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1881]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.356255"], ["updated_at", "2016-12-09 19:52:52.356255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 19:52:52.357791"], ["updated_at", "2016-12-09 19:52:52.357791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1882], ["g5_updatable_hub_amenity_id", 127]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.360565"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.362269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1883]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1883]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.370968"], ["updated_at", "2016-12-09 19:52:52.370968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 19:52:52.372393"], ["updated_at", "2016-12-09 19:52:52.372393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1884], ["g5_updatable_hub_amenity_id", 128]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.374677"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.376401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1885]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1885]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.384431"], ["updated_at", "2016-12-09 19:52:52.384431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 19:52:52.385815"], ["updated_at", "2016-12-09 19:52:52.385815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1886], ["g5_updatable_hub_amenity_id", 129]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.388396"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.390176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1887]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1887]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.398330"], ["updated_at", "2016-12-09 19:52:52.398330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 19:52:52.399817"], ["updated_at", "2016-12-09 19:52:52.399817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1888], ["g5_updatable_hub_amenity_id", 130]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.402141"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.403989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1889]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1889]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:52:52.410144"], ["updated_at", "2016-12-09 19:52:52.410144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:52:52.411509"], ["updated_at", "2016-12-09 19:52:52.411509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1035]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1890]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.416286"], ["updated_at", "2016-12-09 19:52:52.416286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.421055"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.422808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1892]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1892]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1891]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.436969"], ["updated_at", "2016-12-09 19:52:52.436969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.441455"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.443247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1894]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1894]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:52:52.449250"], ["updated_at", "2016-12-09 19:52:52.449250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:52:52.450412"], ["updated_at", "2016-12-09 19:52:52.450412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1036]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1895]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.453332"], ["updated_at", "2016-12-09 19:52:52.453332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.455387"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.457268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1897]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1897]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.466216"], ["updated_at", "2016-12-09 19:52:52.466216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.469282"], ["updated_at", "2016-12-09 19:52:52.469282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.471303"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.473142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1900]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1900]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2016-12-09 19:52:52.482075"], ["updated_at", "2016-12-09 19:52:52.482075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.485984"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.487927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1902]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1902]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (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"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.496651"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.498339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1903]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1903]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.506849"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.508687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1904]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1904]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.521099"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.522801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1905]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1905]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1905]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.531817"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.533651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1906]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1906]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.542569"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.544216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1907]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1907]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.551732"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.553388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1908]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1908]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.562029"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.563833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1909]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1909]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.572658"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.574306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1910]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1910]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.582395"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.584100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1911]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1911]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.592606"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.594381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1912]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1912]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.606211"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.607999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1913]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1913]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 19:52:52.614052"], ["updated_at", "2016-12-09 19:52:52.614052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/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", "2016-12-09 19:52:52.615390"], ["updated_at", "2016-12-09 19:52:52.615390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1037]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1914]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (8.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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.619537"], ["updated_at", "2016-12-09 19:52:52.619537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.632906"], ["updated_at", "2016-12-09 19:52:52.632906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.636267"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.637862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1917]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1917]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 19:52:52.645819"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["created_at", "2016-12-09 19:52:52.647457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1918]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1918]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddClientUrnToLocations (20161209070749)  (0.1ms) BEGIN  (6.7ms) ALTER TABLE "g5_updatable_locations" ADD "client_urn" character varying  (12.8ms) CREATE INDEX "index_g5_updatable_locations_on_client_urn" ON "g5_updatable_locations" ("client_urn") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161209070749"]]  (5.9ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'favorite_foods' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_clients' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_hub_amenities' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_hub_amenities_locations' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_locations' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'restaurants' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (2.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "client_uid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:04:51.047105"], ["updated_at", "2016-12-09 20:04:51.047105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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"]] SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:04:51.069488"], ["updated_at", "2016-12-09 20:04:51.069488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:04:51.073011"], ["updated_at", "2016-12-09 20:04:51.073011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]] SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:04:51.074805"], ["updated_at", "2016-12-09 20:04:51.074805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "madeup"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:05:37.704525"], ["updated_at", "2016-12-09 20:05:37.704525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:05:37.714488"], ["updated_at", "2016-12-09 20:05:37.714488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:05:37.729692"], ["updated_at", "2016-12-09 20:05:37.729692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:05:37.731466"], ["updated_at", "2016-12-09 20:05:37.731466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "madeup"], ["created_at", "2016-12-09 20:05:37.735921"], ["updated_at", "2016-12-09 20:05:37.735921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.141338"], ["updated_at", "2016-12-09 20:07:02.141338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.145477"], ["updated_at", "2016-12-09 20:07:02.145477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.155869"], ["updated_at", "2016-12-09 20:07:02.155869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.161344"], ["updated_at", "2016-12-09 20:07:02.161344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.172730"], ["updated_at", "2016-12-09 20:07:02.172730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.174062"], ["updated_at", "2016-12-09 20:07:02.174062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.176124"], ["updated_at", "2016-12-09 20:07:02.176124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.177473"], ["updated_at", "2016-12-09 20:07:02.177473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.180262"], ["updated_at", "2016-12-09 20:07:02.180262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.181492"], ["updated_at", "2016-12-09 20:07:02.181492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.183640"], ["updated_at", "2016-12-09 20:07:02.183640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.185003"], ["updated_at", "2016-12-09 20:07:02.185003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.187718"], ["updated_at", "2016-12-09 20:07:02.187718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.188910"], ["updated_at", "2016-12-09 20:07:02.188910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.191091"], ["updated_at", "2016-12-09 20:07:02.191091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.192221"], ["updated_at", "2016-12-09 20:07:02.192221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 20:07:02.194177"], ["updated_at", "2016-12-09 20:07:02.194177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.196175"], ["updated_at", "2016-12-09 20:07:02.196175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.197565"], ["updated_at", "2016-12-09 20:07:02.197565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.200093"], ["updated_at", "2016-12-09 20:07:02.200093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.201256"], ["updated_at", "2016-12-09 20:07:02.201256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.203433"], ["updated_at", "2016-12-09 20:07:02.203433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.204643"], ["updated_at", "2016-12-09 20:07:02.204643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.206703"], ["updated_at", "2016-12-09 20:07:02.206703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.207797"], ["updated_at", "2016-12-09 20:07:02.207797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.209962"], ["updated_at", "2016-12-09 20:07:02.209962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.211136"], ["updated_at", "2016-12-09 20:07:02.211136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.213056"], ["updated_at", "2016-12-09 20:07:02.213056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.214171"], ["updated_at", "2016-12-09 20:07:02.214171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.217082"], ["updated_at", "2016-12-09 20:07:02.217082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.218296"], ["updated_at", "2016-12-09 20:07:02.218296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.220163"], ["updated_at", "2016-12-09 20:07:02.220163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.221246"], ["updated_at", "2016-12-09 20:07:02.221246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.224372"], ["updated_at", "2016-12-09 20:07:02.224372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.225612"], ["updated_at", "2016-12-09 20:07:02.225612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.227525"], ["updated_at", "2016-12-09 20:07:02.227525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.228771"], ["updated_at", "2016-12-09 20:07:02.228771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.244500"], ["updated_at", "2016-12-09 20:07:02.244500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.246202"], ["updated_at", "2016-12-09 20:07:02.246202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.248463"], ["updated_at", "2016-12-09 20:07:02.248463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.249824"], ["updated_at", "2016-12-09 20:07:02.249824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.252705"], ["updated_at", "2016-12-09 20:07:02.252705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.253945"], ["updated_at", "2016-12-09 20:07:02.253945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.256192"], ["updated_at", "2016-12-09 20:07:02.256192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.257335"], ["updated_at", "2016-12-09 20:07:02.257335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.260730"], ["updated_at", "2016-12-09 20:07:02.260730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.261973"], ["updated_at", "2016-12-09 20:07:02.261973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.263940"], ["updated_at", "2016-12-09 20:07:02.263940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.265228"], ["updated_at", "2016-12-09 20:07:02.265228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.271307"], ["updated_at", "2016-12-09 20:07:02.271307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.272860"], ["updated_at", "2016-12-09 20:07:02.272860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:02.274772"], ["updated_at", "2016-12-09 20:07:02.274772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:07:02.275899"], ["updated_at", "2016-12-09 20:07:02.275899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:02.281083"], ["updated_at", "2016-12-09 20:07:02.281083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.282592"], ["updated_at", "2016-12-09 20:07:02.282592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:07:02.285612"], ["updated_at", "2016-12-09 20:07:02.285612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.288127"], ["updated_at", "2016-12-09 20:07:02.288127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.291093"], ["updated_at", "2016-12-09 20:07:02.291093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.293011"], ["updated_at", "2016-12-09 20:07:02.293011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.295162"], ["updated_at", "2016-12-09 20:07:02.295162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.300815"], ["updated_at", "2016-12-09 20:07:02.300815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1956]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.309585"], ["updated_at", "2016-12-09 20:07:02.309585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.311165"], ["updated_at", "2016-12-09 20:07:02.311165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.313993"], ["updated_at", "2016-12-09 20:07:02.313993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.315676"], ["updated_at", "2016-12-09 20:07:02.315676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.319650"], ["updated_at", "2016-12-09 20:07:02.319650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.321186"], ["updated_at", "2016-12-09 20:07:02.321186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.325054"], ["updated_at", "2016-12-09 20:07:02.325054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.326424"], ["updated_at", "2016-12-09 20:07:02.326424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.329517"], ["updated_at", "2016-12-09 20:07:02.329517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.330933"], ["updated_at", "2016-12-09 20:07:02.330933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.339763"], ["updated_at", "2016-12-09 20:07:02.339763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:07:02.344739"], ["updated_at", "2016-12-09 20:07:02.344739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:07:02.346141"], ["updated_at", "2016-12-09 20:07:02.346141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1967], ["g5_updatable_hub_amenity_id", 131]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1967], ["g5_updatable_hub_amenity_id", 132]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1967]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 20:07:02.368362"], ["id", 1967]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1967]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1967]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1967]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1967]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1967]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:02.374634"], ["updated_at", "2016-12-09 20:07:02.374634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:07:02.375900"], ["updated_at", "2016-12-09 20:07:02.375900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:07:02.376851"], ["updated_at", "2016-12-09 20:07:02.376851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1968], ["g5_updatable_hub_amenity_id", 133]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1968], ["g5_updatable_hub_amenity_id", 134]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1968]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 20:07:02.381067"], ["id", 1968]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1968]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1968]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:50.987722"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:50.992265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1969]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1969]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:56.922135"], ["updated_at", "2016-12-09 20:07:56.922135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:56.935651"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:56.937491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1971]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1971]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1970]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:56.989543"], ["updated_at", "2016-12-09 20:07:56.989543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:56.994778"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:56.996669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1973]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1973]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:57.006240"], ["updated_at", "2016-12-09 20:07:57.006240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:57.008090"], ["updated_at", "2016-12-09 20:07:57.008090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1070]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1974]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.012984"], ["updated_at", "2016-12-09 20:07:57.012984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:07:57.017201"], ["updated_at", "2016-12-09 20:07:57.017201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.020548"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.022216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1977]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1977]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.031540"], ["updated_at", "2016-12-09 20:07:57.031540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.033587"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.035676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1979]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1979]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.043847"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.045616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1980]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1980]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.053012"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.054824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1981]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1981]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1981]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.064191"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.065834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1982]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1982]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.077163"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.079230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1983]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1983]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.089922"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.091843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1984]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1984]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.100332"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.102423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1985]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1985]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:57.108651"], ["updated_at", "2016-12-09 20:07:57.108651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:57.109965"], ["updated_at", "2016-12-09 20:07:57.109965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1071]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1986]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.113023"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.114930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1987]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1987]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.123965"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.125755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1988]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1988]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.136823"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.138561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1989]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1989]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.151705"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.153709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1990]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1990]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.162567"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.164166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1991]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1991]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.172443"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.174112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1992]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1992]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.182622"], ["updated_at", "2016-12-09 20:07:57.182622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:07:57.187104"], ["updated_at", "2016-12-09 20:07:57.187104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1993], ["g5_updatable_hub_amenity_id", 135]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.202431"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.204164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1994]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1994]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1994]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.213210"], ["updated_at", "2016-12-09 20:07:57.213210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:07:57.214550"], ["updated_at", "2016-12-09 20:07:57.214550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1995], ["g5_updatable_hub_amenity_id", 136]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.216841"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.218861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1996]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1996]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.225806"], ["updated_at", "2016-12-09 20:07:57.225806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:07:57.227277"], ["updated_at", "2016-12-09 20:07:57.227277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1997], ["g5_updatable_hub_amenity_id", 137]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.229958"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.231679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1998]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 1998]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.240476"], ["updated_at", "2016-12-09 20:07:57.240476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:07:57.241992"], ["updated_at", "2016-12-09 20:07:57.241992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 1999], ["g5_updatable_hub_amenity_id", 138]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.244324"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.245976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2000]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2000]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:07:57.251278"], ["updated_at", "2016-12-09 20:07:57.251278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:57.252815"], ["updated_at", "2016-12-09 20:07:57.252815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1072]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2001]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.255595"], ["updated_at", "2016-12-09 20:07:57.255595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:07:57.257056"], ["updated_at", "2016-12-09 20:07:57.257056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2002], ["g5_updatable_hub_amenity_id", 139]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.259629"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.261276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2003]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2003]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.269240"], ["updated_at", "2016-12-09 20:07:57.269240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:07:57.270766"], ["updated_at", "2016-12-09 20:07:57.270766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2004], ["g5_updatable_hub_amenity_id", 140]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.273184"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.274793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2005]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2005]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.291725"], ["updated_at", "2016-12-09 20:07:57.291725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:07:57.293214"], ["updated_at", "2016-12-09 20:07:57.293214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2006], ["g5_updatable_hub_amenity_id", 141]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.295513"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.297346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2007]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2007]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (9.8ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.305836"], ["updated_at", "2016-12-09 20:07:57.305836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:07:57.321156"], ["updated_at", "2016-12-09 20:07:57.321156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2008], ["g5_updatable_hub_amenity_id", 142]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.323878"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.325660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2009]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2009]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.334985"], ["updated_at", "2016-12-09 20:07:57.334985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:07:57.336852"], ["updated_at", "2016-12-09 20:07:57.336852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2010], ["g5_updatable_hub_amenity_id", 143]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.339765"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.342024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2011]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2011]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:07:57.351305"], ["updated_at", "2016-12-09 20:07:57.351305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:57.353075"], ["updated_at", "2016-12-09 20:07:57.353075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1073]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2012]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:07:57.356211"], ["updated_at", "2016-12-09 20:07:57.356211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:07:57.357801"], ["updated_at", "2016-12-09 20:07:57.357801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2013], ["g5_updatable_hub_amenity_id", 144]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.360288"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.361866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2014]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2014]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:57.369780"], ["updated_at", "2016-12-09 20:07:57.369780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.371185"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.372746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2016]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2016]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:57.380550"], ["updated_at", "2016-12-09 20:07:57.380550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:07:57.383157"], ["updated_at", "2016-12-09 20:07:57.383157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.385048"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.387009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2019]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2019]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.394398"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.396124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2020]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2020]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:07:57.406231"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:07:57.408075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2021]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2021]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:32.969287"], ["updated_at", "2016-12-09 20:08:32.969287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:08:32.991900"], ["updated_at", "2016-12-09 20:08:32.991900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2022], ["g5_updatable_hub_amenity_id", 145]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.004377"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.016157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2023]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2023]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.042529"], ["updated_at", "2016-12-09 20:08:33.042529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:08:33.044142"], ["updated_at", "2016-12-09 20:08:33.044142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2024], ["g5_updatable_hub_amenity_id", 146]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.046663"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.048536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2025]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2025]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.057425"], ["updated_at", "2016-12-09 20:08:33.057425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:08:33.059011"], ["updated_at", "2016-12-09 20:08:33.059011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2026], ["g5_updatable_hub_amenity_id", 147]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.061450"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.063385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2027]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2027]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2027]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.073453"], ["updated_at", "2016-12-09 20:08:33.073453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:08:33.074871"], ["updated_at", "2016-12-09 20:08:33.074871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2028], ["g5_updatable_hub_amenity_id", 148]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.077268"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.078989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2029]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2029]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.096295"], ["updated_at", "2016-12-09 20:08:33.096295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:08:33.097797"], ["updated_at", "2016-12-09 20:08:33.097797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2030], ["g5_updatable_hub_amenity_id", 149]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.100527"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.102273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2031]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2031]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:08:33.112103"], ["updated_at", "2016-12-09 20:08:33.112103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:08:33.113654"], ["updated_at", "2016-12-09 20:08:33.113654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1074]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2032]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.117495"], ["updated_at", "2016-12-09 20:08:33.117495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:08:33.119240"], ["updated_at", "2016-12-09 20:08:33.119240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2033], ["g5_updatable_hub_amenity_id", 150]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.121785"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.123723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2034]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2034]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.133568"], ["updated_at", "2016-12-09 20:08:33.133568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:08:33.135311"], ["updated_at", "2016-12-09 20:08:33.135311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2035], ["g5_updatable_hub_amenity_id", 151]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.137644"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.139300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2036]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2036]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.147631"], ["updated_at", "2016-12-09 20:08:33.147631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:08:33.148930"], ["updated_at", "2016-12-09 20:08:33.148930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2037], ["g5_updatable_hub_amenity_id", 152]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.151861"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.153816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2038]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2038]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:08:33.160133"], ["updated_at", "2016-12-09 20:08:33.160133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:08:33.161445"], ["updated_at", "2016-12-09 20:08:33.161445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1075]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2039]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.164324"], ["updated_at", "2016-12-09 20:08:33.164324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:08:33.165842"], ["updated_at", "2016-12-09 20:08:33.165842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2040], ["g5_updatable_hub_amenity_id", 153]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.168455"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.170477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2041]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2041]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.179005"], ["updated_at", "2016-12-09 20:08:33.179005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:08:33.180475"], ["updated_at", "2016-12-09 20:08:33.180475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2042], ["g5_updatable_hub_amenity_id", 154]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.183014"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.184995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2043]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2043]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.193484"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.195215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2044]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2044]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.203116"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.204927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2045]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2045]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2045]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.214753"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.216964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2046]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2046]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.234179"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.235913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2047]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2047]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.245278"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.246892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2048]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2048]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.255185"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.257042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2049]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2049]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.265016"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.266890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2050]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2050]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.275505"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.277098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2051]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2051]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:08:33.282886"], ["updated_at", "2016-12-09 20:08:33.282886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:08:33.284316"], ["updated_at", "2016-12-09 20:08:33.284316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1076]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2052]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.287501"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.289283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2053]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2053]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.297268"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.299038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2054]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2054]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.307669"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.309989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2055]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2055]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.319389"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.321180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2056]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2056]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.328963"], ["updated_at", "2016-12-09 20:08:33.328963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.330425"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.331975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2058]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2058]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.341365"], ["updated_at", "2016-12-09 20:08:33.341365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.345667"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.347297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2060]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2060]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2059]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.357522"], ["updated_at", "2016-12-09 20:08:33.357522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.362517"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.364209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2062]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2062]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 20:08:33.371385"], ["updated_at", "2016-12-09 20:08:33.371385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:08:33.372679"], ["updated_at", "2016-12-09 20:08:33.372679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1077]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2063]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:08:33.375541"], ["updated_at", "2016-12-09 20:08:33.375541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.385569"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.387235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2065]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2065]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:08:33.398390"], ["updated_at", "2016-12-09 20:08:33.398390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:08:33.401059"], ["updated_at", "2016-12-09 20:08:33.401059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.402684"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.404820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2068]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2068]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:08:33.413145"], ["updated_at", "2016-12-09 20:08:33.413145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:08:33.417542"], ["updated_at", "2016-12-09 20:08:33.417542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.421117"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.422799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2071]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2071]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.431137"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.433067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2072]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2072]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:08:33.443998"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:08:33.445750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2073]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2073]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:09:12.929167"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:09:12.934352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2074]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2074]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:09:44.045945"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:09:44.051386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2075]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2075]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:10:46.082480"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:10:46.087023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2076]] G5Updatable::HubAmenity Load (0.6ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2076]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:10:59.625572"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:10:59.630243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2077]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2077]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:11:52.364991"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:11:52.369797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2078]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2078]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:47.179482"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:47.183318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2079]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2079]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.270781"], ["updated_at", "2016-12-09 20:12:51.270781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:12:51.287172"], ["updated_at", "2016-12-09 20:12:51.287172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2080], ["g5_updatable_hub_amenity_id", 155]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.300935"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.312008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2081]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2081]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2081]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.333600"], ["updated_at", "2016-12-09 20:12:51.333600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:12:51.335181"], ["updated_at", "2016-12-09 20:12:51.335181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2082], ["g5_updatable_hub_amenity_id", 156]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.337595"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.339709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2083]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2083]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.348237"], ["updated_at", "2016-12-09 20:12:51.348237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:12:51.350245"], ["updated_at", "2016-12-09 20:12:51.350245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2084], ["g5_updatable_hub_amenity_id", 157]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.353123"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.354851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2085]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2085]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.363712"], ["updated_at", "2016-12-09 20:12:51.363712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:12:51.365355"], ["updated_at", "2016-12-09 20:12:51.365355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2086], ["g5_updatable_hub_amenity_id", 158]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.368008"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.369878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2087]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2087]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.378774"], ["updated_at", "2016-12-09 20:12:51.378774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:12:51.380538"], ["updated_at", "2016-12-09 20:12:51.380538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2088], ["g5_updatable_hub_amenity_id", 159]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.383710"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.385527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2089]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2089]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.403033"], ["updated_at", "2016-12-09 20:12:51.403033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:12:51.404680"], ["updated_at", "2016-12-09 20:12:51.404680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2090], ["g5_updatable_hub_amenity_id", 160]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.407448"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.409250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2091]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2091]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.418769"], ["updated_at", "2016-12-09 20:12:51.418769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:12:51.420962"], ["updated_at", "2016-12-09 20:12:51.420962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2092], ["g5_updatable_hub_amenity_id", 161]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.423581"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.425416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2093]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2093]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:12:51.434884"], ["updated_at", "2016-12-09 20:12:51.434884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:12:51.436610"], ["updated_at", "2016-12-09 20:12:51.436610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1078]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2094]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.440097"], ["updated_at", "2016-12-09 20:12:51.440097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:12:51.441484"], ["updated_at", "2016-12-09 20:12:51.441484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2095], ["g5_updatable_hub_amenity_id", 162]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.443925"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.445708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2096]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2096]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.455049"], ["updated_at", "2016-12-09 20:12:51.455049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:12:51.456582"], ["updated_at", "2016-12-09 20:12:51.456582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2097], ["g5_updatable_hub_amenity_id", 163]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.459089"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.460904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2098]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2098]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.469493"], ["updated_at", "2016-12-09 20:12:51.469493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:12:51.470971"], ["updated_at", "2016-12-09 20:12:51.470971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2099], ["g5_updatable_hub_amenity_id", 164]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.473378"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.475118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2100]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2100]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:12:51.481300"], ["updated_at", "2016-12-09 20:12:51.481300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:12:51.482565"], ["updated_at", "2016-12-09 20:12:51.482565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1079]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2101]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.487021"], ["updated_at", "2016-12-09 20:12:51.487021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.491405"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.493144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2103]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2103]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2102]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.504319"], ["updated_at", "2016-12-09 20:12:51.504319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.509021"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.515298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2105]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2105]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:12:51.521785"], ["updated_at", "2016-12-09 20:12:51.521785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:12:51.523033"], ["updated_at", "2016-12-09 20:12:51.523033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1080]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2106]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:12:51.526101"], ["updated_at", "2016-12-09 20:12:51.526101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.536277"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.538055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2108]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2108]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:12:51.544844"], ["updated_at", "2016-12-09 20:12:51.544844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:12:51.547195"], ["updated_at", "2016-12-09 20:12:51.547195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.548811"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.550826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2111]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2111]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.558130"], ["updated_at", "2016-12-09 20:12:51.558130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.559796"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.561560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2113]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2113]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.569549"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.571253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2114]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2114]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.579028"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.580781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2115]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2115]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2115]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.590001"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.591597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2116]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2116]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.602477"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.604189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2117]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2117]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.611698"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.613622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2118]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2118]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.622069"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.623775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2119]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2119]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:12:51.629994"], ["updated_at", "2016-12-09 20:12:51.629994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:12:51.631423"], ["updated_at", "2016-12-09 20:12:51.631423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1081]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2120]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.634406"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.636092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2121]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2121]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.644072"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.645678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2122]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2122]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.654814"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.656496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2123]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2123]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.665578"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.667479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2124]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2124]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.676092"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.677607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2125]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2125]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.685129"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.691338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2126]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2126]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:12:51.702175"], ["updated_at", "2016-12-09 20:12:51.702175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:12:51.706504"], ["updated_at", "2016-12-09 20:12:51.706504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.709609"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.711341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2129]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2129]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.719369"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.721060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2130]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2130]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:12:51.739174"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:12:51.741010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2131]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2131]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:13:02.649646"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:13:02.654690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2132]] G5Updatable::HubAmenity Load (0.8ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2132]]  (0.1ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2132]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:14:26.465565"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:14:26.469302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2133]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:14:26.484851"], ["updated_at", "2016-12-09 20:14:26.484851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:14:26.487530"], ["id", 165]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2133], ["g5_updatable_hub_amenity_id", 165]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:14:26.506388"], ["updated_at", "2016-12-09 20:14:26.506388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:14:26.507455"], ["id", 166]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2133], ["g5_updatable_hub_amenity_id", 166]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2133]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:14:26.514903"], ["id", 2133]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2133]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:14:55.849329"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:14:55.853127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2134]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:14:55.870250"], ["updated_at", "2016-12-09 20:14:55.870250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:14:55.873125"], ["id", 167]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2134], ["g5_updatable_hub_amenity_id", 167]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:14:55.889828"], ["updated_at", "2016-12-09 20:14:55.889828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:14:55.890871"], ["id", 168]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2134], ["g5_updatable_hub_amenity_id", 168]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2134]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:14:55.898588"], ["id", 2134]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2134]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2134]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:14.114040"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:14.118041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2135]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:14.136898"], ["updated_at", "2016-12-09 20:15:14.136898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:14.139324"], ["id", 169]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2135], ["g5_updatable_hub_amenity_id", 169]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:14.160566"], ["updated_at", "2016-12-09 20:15:14.160566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:14.162104"], ["id", 170]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2135], ["g5_updatable_hub_amenity_id", 170]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2135]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:14.170866"], ["id", 2135]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2135]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2135]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:34.599718"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:34.603689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2136]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:34.620578"], ["updated_at", "2016-12-09 20:15:34.620578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:34.623012"], ["id", 171]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2136], ["g5_updatable_hub_amenity_id", 171]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:34.640678"], ["updated_at", "2016-12-09 20:15:34.640678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:34.641817"], ["id", 172]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2136], ["g5_updatable_hub_amenity_id", 172]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2136]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:34.649359"], ["id", 2136]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2136]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2136]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.125982"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.129697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2137]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.147753"], ["updated_at", "2016-12-09 20:15:52.147753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.150007"], ["id", 173]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2137], ["g5_updatable_hub_amenity_id", 173]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.168682"], ["updated_at", "2016-12-09 20:15:52.168682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.169721"], ["id", 174]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2137], ["g5_updatable_hub_amenity_id", 174]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2137]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.177405"], ["id", 2137]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (8.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.185187"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.187191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2138]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.200264"], ["updated_at", "2016-12-09 20:15:52.200264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.201301"], ["id", 175]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2138], ["g5_updatable_hub_amenity_id", 175]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.204076"], ["updated_at", "2016-12-09 20:15:52.204076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.205024"], ["id", 176]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2138], ["g5_updatable_hub_amenity_id", 176]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2138]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.208393"], ["id", 2138]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.213828"], ["updated_at", "2016-12-09 20:15:52.213828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.215576"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.217347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2140]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.221318"], ["updated_at", "2016-12-09 20:15:52.221318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.222357"], ["id", 177]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2140], ["g5_updatable_hub_amenity_id", 177]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.225032"], ["updated_at", "2016-12-09 20:15:52.225032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.226018"], ["id", 178]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2140], ["g5_updatable_hub_amenity_id", 178]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2140]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.229490"], ["id", 2140]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.241360"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.243529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2141]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.247454"], ["updated_at", "2016-12-09 20:15:52.247454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.248527"], ["id", 179]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2141], ["g5_updatable_hub_amenity_id", 179]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.251006"], ["updated_at", "2016-12-09 20:15:52.251006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.251926"], ["id", 180]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2141], ["g5_updatable_hub_amenity_id", 180]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2141]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.255766"], ["id", 2141]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.262091"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.263945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2142]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.268431"], ["updated_at", "2016-12-09 20:15:52.268431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.269716"], ["id", 181]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2142], ["g5_updatable_hub_amenity_id", 181]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.272416"], ["updated_at", "2016-12-09 20:15:52.272416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.273324"], ["id", 182]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2142], ["g5_updatable_hub_amenity_id", 182]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2142]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.277010"], ["id", 2142]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.282851"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.284659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2143]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.289381"], ["updated_at", "2016-12-09 20:15:52.289381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.290569"], ["id", 183]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2143], ["g5_updatable_hub_amenity_id", 183]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.293559"], ["updated_at", "2016-12-09 20:15:52.293559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.294706"], ["id", 184]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2143], ["g5_updatable_hub_amenity_id", 184]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2143]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.298873"], ["id", 2143]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.303420"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.305855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2144]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.309649"], ["updated_at", "2016-12-09 20:15:52.309649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.310782"], ["id", 185]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2144], ["g5_updatable_hub_amenity_id", 185]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.313621"], ["updated_at", "2016-12-09 20:15:52.313621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.314698"], ["id", 186]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2144], ["g5_updatable_hub_amenity_id", 186]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2144]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.320130"], ["id", 2144]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2144]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2144]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.327463"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.329255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2145]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.333549"], ["updated_at", "2016-12-09 20:15:52.333549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.334865"], ["id", 187]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2145], ["g5_updatable_hub_amenity_id", 187]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.338259"], ["updated_at", "2016-12-09 20:15:52.338259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.339460"], ["id", 188]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2145], ["g5_updatable_hub_amenity_id", 188]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2145]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.343905"], ["id", 2145]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.348982"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.350935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2146]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.354954"], ["updated_at", "2016-12-09 20:15:52.354954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.356234"], ["id", 189]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2146], ["g5_updatable_hub_amenity_id", 189]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.359515"], ["updated_at", "2016-12-09 20:15:52.359515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.360586"], ["id", 190]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2146], ["g5_updatable_hub_amenity_id", 190]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2146]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.364513"], ["id", 2146]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:15:52.370997"], ["updated_at", "2016-12-09 20:15:52.370997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:15:52.372747"], ["updated_at", "2016-12-09 20:15:52.372747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1082]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2147]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.376417"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.378482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2148]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.382465"], ["updated_at", "2016-12-09 20:15:52.382465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.383476"], ["id", 191]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2148], ["g5_updatable_hub_amenity_id", 191]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.386482"], ["updated_at", "2016-12-09 20:15:52.386482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.387468"], ["id", 192]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2148], ["g5_updatable_hub_amenity_id", 192]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2148]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.391377"], ["id", 2148]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.397224"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.399594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2149]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.404011"], ["updated_at", "2016-12-09 20:15:52.404011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.405177"], ["id", 193]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2149], ["g5_updatable_hub_amenity_id", 193]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.407979"], ["updated_at", "2016-12-09 20:15:52.407979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.409305"], ["id", 194]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2149], ["g5_updatable_hub_amenity_id", 194]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2149]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.413051"], ["id", 2149]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.424037"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.426061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2150]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.430216"], ["updated_at", "2016-12-09 20:15:52.430216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.431345"], ["id", 195]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2150], ["g5_updatable_hub_amenity_id", 195]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.435083"], ["updated_at", "2016-12-09 20:15:52.435083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.436256"], ["id", 196]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2150], ["g5_updatable_hub_amenity_id", 196]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2150]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.440081"], ["id", 2150]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.445183"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.447245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2151]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.452011"], ["updated_at", "2016-12-09 20:15:52.452011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.453839"], ["id", 197]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2151], ["g5_updatable_hub_amenity_id", 197]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.456999"], ["updated_at", "2016-12-09 20:15:52.456999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.458068"], ["id", 198]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2151], ["g5_updatable_hub_amenity_id", 198]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2151]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.461555"], ["id", 2151]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.466286"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.468069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2152]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.471778"], ["updated_at", "2016-12-09 20:15:52.471778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.472795"], ["id", 199]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2152], ["g5_updatable_hub_amenity_id", 199]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.475132"], ["updated_at", "2016-12-09 20:15:52.475132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.476046"], ["id", 200]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2152], ["g5_updatable_hub_amenity_id", 200]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2152]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.479330"], ["id", 2152]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.484382"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.486300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2153]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.490310"], ["updated_at", "2016-12-09 20:15:52.490310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.491841"], ["id", 201]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2153], ["g5_updatable_hub_amenity_id", 201]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.495223"], ["updated_at", "2016-12-09 20:15:52.495223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.496294"], ["id", 202]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2153], ["g5_updatable_hub_amenity_id", 202]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2153]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.500518"], ["id", 2153]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.507161"], ["updated_at", "2016-12-09 20:15:52.507161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:15:52.511924"], ["updated_at", "2016-12-09 20:15:52.511924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.515536"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.517340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2156]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.520984"], ["updated_at", "2016-12-09 20:15:52.520984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.522030"], ["id", 203]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2156], ["g5_updatable_hub_amenity_id", 203]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.524654"], ["updated_at", "2016-12-09 20:15:52.524654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.525829"], ["id", 204]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2156], ["g5_updatable_hub_amenity_id", 204]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2156]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.529557"], ["id", 2156]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:15:52.534613"], ["updated_at", "2016-12-09 20:15:52.534613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.537613"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.539440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2158]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.543039"], ["updated_at", "2016-12-09 20:15:52.543039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.543939"], ["id", 205]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2158], ["g5_updatable_hub_amenity_id", 205]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.546274"], ["updated_at", "2016-12-09 20:15:52.546274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.547577"], ["id", 206]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2158], ["g5_updatable_hub_amenity_id", 206]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2158]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.551039"], ["id", 2158]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:15:52.554794"], ["updated_at", "2016-12-09 20:15:52.554794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:15:52.557159"], ["updated_at", "2016-12-09 20:15:52.557159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.559088"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.561086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2161]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.565176"], ["updated_at", "2016-12-09 20:15:52.565176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.566487"], ["id", 207]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2161], ["g5_updatable_hub_amenity_id", 207]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.569487"], ["updated_at", "2016-12-09 20:15:52.569487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.570568"], ["id", 208]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2161], ["g5_updatable_hub_amenity_id", 208]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2161]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.574219"], ["id", 2161]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.578977"], ["updated_at", "2016-12-09 20:15:52.578977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.583874"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.585878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2163]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.590180"], ["updated_at", "2016-12-09 20:15:52.590180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.591167"], ["id", 209]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2163], ["g5_updatable_hub_amenity_id", 209]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.594302"], ["updated_at", "2016-12-09 20:15:52.594302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.595438"], ["id", 210]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2163], ["g5_updatable_hub_amenity_id", 210]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2163]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.599883"], ["id", 2163]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2162]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.607407"], ["updated_at", "2016-12-09 20:15:52.607407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.612543"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.614613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2165]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.618793"], ["updated_at", "2016-12-09 20:15:52.618793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.619737"], ["id", 211]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2165], ["g5_updatable_hub_amenity_id", 211]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.622025"], ["updated_at", "2016-12-09 20:15:52.622025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.622902"], ["id", 212]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2165], ["g5_updatable_hub_amenity_id", 212]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2165]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.626076"], ["id", 2165]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:15:52.628574"], ["updated_at", "2016-12-09 20:15:52.628574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:15:52.629941"], ["updated_at", "2016-12-09 20:15:52.629941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1083]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2166]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.638699"], ["updated_at", "2016-12-09 20:15:52.638699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:15:52.640721"], ["updated_at", "2016-12-09 20:15:52.640721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2167], ["g5_updatable_hub_amenity_id", 213]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.644131"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.645943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2168]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.650424"], ["id", 213]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2168], ["g5_updatable_hub_amenity_id", 213]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.653307"], ["updated_at", "2016-12-09 20:15:52.653307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.654532"], ["id", 214]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2168], ["g5_updatable_hub_amenity_id", 214]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2168]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.658519"], ["id", 2168]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.662641"], ["updated_at", "2016-12-09 20:15:52.662641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:15:52.664052"], ["updated_at", "2016-12-09 20:15:52.664052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2169], ["g5_updatable_hub_amenity_id", 215]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.666532"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.668449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2170]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.673744"], ["updated_at", "2016-12-09 20:15:52.673744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.674846"], ["id", 216]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2170], ["g5_updatable_hub_amenity_id", 216]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.677563"], ["updated_at", "2016-12-09 20:15:52.677563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.678772"], ["id", 217]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2170], ["g5_updatable_hub_amenity_id", 217]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2170]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.682627"], ["id", 2170]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2170]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.689169"], ["updated_at", "2016-12-09 20:15:52.689169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:15:52.691051"], ["updated_at", "2016-12-09 20:15:52.691051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2171], ["g5_updatable_hub_amenity_id", 218]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.694508"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.696313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2172]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.699976"], ["updated_at", "2016-12-09 20:15:52.699976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.700933"], ["id", 219]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2172], ["g5_updatable_hub_amenity_id", 219]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.703821"], ["updated_at", "2016-12-09 20:15:52.703821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.705649"], ["id", 220]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2172], ["g5_updatable_hub_amenity_id", 220]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2172]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.709320"], ["id", 2172]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.714055"], ["updated_at", "2016-12-09 20:15:52.714055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:15:52.716198"], ["updated_at", "2016-12-09 20:15:52.716198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2173], ["g5_updatable_hub_amenity_id", 221]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.720742"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.722656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2174]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.727812"], ["updated_at", "2016-12-09 20:15:52.727812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.729159"], ["id", 222]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2174], ["g5_updatable_hub_amenity_id", 222]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.732600"], ["updated_at", "2016-12-09 20:15:52.732600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.733783"], ["id", 223]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2174], ["g5_updatable_hub_amenity_id", 223]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2174]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.738365"], ["id", 2174]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:15:52.741708"], ["updated_at", "2016-12-09 20:15:52.741708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:15:52.743391"], ["updated_at", "2016-12-09 20:15:52.743391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1084]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2175]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.747019"], ["updated_at", "2016-12-09 20:15:52.747019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:15:52.748618"], ["updated_at", "2016-12-09 20:15:52.748618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2176], ["g5_updatable_hub_amenity_id", 224]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.751405"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.753264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2177]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.757410"], ["updated_at", "2016-12-09 20:15:52.757410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.758444"], ["id", 225]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2177], ["g5_updatable_hub_amenity_id", 225]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.761022"], ["updated_at", "2016-12-09 20:15:52.761022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.761981"], ["id", 226]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2177], ["g5_updatable_hub_amenity_id", 226]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2177]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.765141"], ["id", 2177]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.774063"], ["updated_at", "2016-12-09 20:15:52.774063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:15:52.775937"], ["updated_at", "2016-12-09 20:15:52.775937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2178], ["g5_updatable_hub_amenity_id", 227]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.778954"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.780813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2179]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.785206"], ["updated_at", "2016-12-09 20:15:52.785206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.786458"], ["id", 228]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2179], ["g5_updatable_hub_amenity_id", 228]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.789391"], ["updated_at", "2016-12-09 20:15:52.789391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.790299"], ["id", 229]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2179], ["g5_updatable_hub_amenity_id", 229]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2179]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.793454"], ["id", 2179]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.798555"], ["updated_at", "2016-12-09 20:15:52.798555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:15:52.800390"], ["updated_at", "2016-12-09 20:15:52.800390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2180], ["g5_updatable_hub_amenity_id", 230]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.803212"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.805148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2181]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.808922"], ["updated_at", "2016-12-09 20:15:52.808922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.809848"], ["id", 231]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2181], ["g5_updatable_hub_amenity_id", 231]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.812376"], ["id", 230]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2181], ["g5_updatable_hub_amenity_id", 230]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2181]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.815439"], ["id", 2181]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.821013"], ["updated_at", "2016-12-09 20:15:52.821013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:15:52.822873"], ["updated_at", "2016-12-09 20:15:52.822873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2182], ["g5_updatable_hub_amenity_id", 232]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.825959"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.827790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2183]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.831637"], ["updated_at", "2016-12-09 20:15:52.831637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.832731"], ["id", 233]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2183], ["g5_updatable_hub_amenity_id", 233]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.835448"], ["updated_at", "2016-12-09 20:15:52.835448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.836601"], ["id", 234]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2183], ["g5_updatable_hub_amenity_id", 234]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2183]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.840529"], ["id", 2183]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:15:52.843000"], ["updated_at", "2016-12-09 20:15:52.843000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:15:52.844304"], ["updated_at", "2016-12-09 20:15:52.844304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1085]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2184]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.847262"], ["updated_at", "2016-12-09 20:15:52.847262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:15:52.848730"], ["updated_at", "2016-12-09 20:15:52.848730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2185], ["g5_updatable_hub_amenity_id", 235]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.852183"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.854441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2186]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.858467"], ["updated_at", "2016-12-09 20:15:52.858467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.859421"], ["id", 236]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2186], ["g5_updatable_hub_amenity_id", 236]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.861962"], ["updated_at", "2016-12-09 20:15:52.861962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.862940"], ["id", 237]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2186], ["g5_updatable_hub_amenity_id", 237]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2186]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.866320"], ["id", 2186]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:15:52.871280"], ["updated_at", "2016-12-09 20:15:52.871280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:15:52.872844"], ["updated_at", "2016-12-09 20:15:52.872844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2187], ["g5_updatable_hub_amenity_id", 238]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:15:52.875710"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:15:52.877567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2188]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:15:52.880711"], ["updated_at", "2016-12-09 20:15:52.880711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:15:52.881706"], ["id", 239]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2188], ["g5_updatable_hub_amenity_id", 239]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:15:52.884412"], ["updated_at", "2016-12-09 20:15:52.884412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:15:52.889317"], ["id", 240]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2188], ["g5_updatable_hub_amenity_id", 240]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2188]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:15:52.892944"], ["id", 2188]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:05.248900"], ["updated_at", "2016-12-09 20:16:05.248900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:16:05.265013"], ["updated_at", "2016-12-09 20:16:05.265013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2189], ["g5_updatable_hub_amenity_id", 241]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:05.283049"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:05.285859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2190]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:05.293033"], ["id", 241]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2190], ["g5_updatable_hub_amenity_id", 241]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:05.296647"], ["updated_at", "2016-12-09 20:16:05.296647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:05.297892"], ["id", 242]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2190], ["g5_updatable_hub_amenity_id", 242]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2190]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:05.306692"], ["id", 2190]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:18.884671"], ["updated_at", "2016-12-09 20:16:18.884671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:16:18.902801"], ["updated_at", "2016-12-09 20:16:18.902801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2191], ["g5_updatable_hub_amenity_id", 243]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (8.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:18.913106"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:18.922790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2192]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:18.937542"], ["id", 243]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2192], ["g5_updatable_hub_amenity_id", 243]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:18.941270"], ["updated_at", "2016-12-09 20:16:18.941270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:18.942330"], ["id", 244]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2192], ["g5_updatable_hub_amenity_id", 244]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2192]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:18.950048"], ["id", 2192]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:23.524889"], ["updated_at", "2016-12-09 20:16:23.524889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.532482"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.534945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2194]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.552929"], ["updated_at", "2016-12-09 20:16:23.552929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.555251"], ["id", 245]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2194], ["g5_updatable_hub_amenity_id", 245]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.572870"], ["updated_at", "2016-12-09 20:16:23.572870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.573943"], ["id", 246]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2194], ["g5_updatable_hub_amenity_id", 246]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2194]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.582031"], ["id", 2194]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:16:23.592656"], ["updated_at", "2016-12-09 20:16:23.592656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:16:23.595182"], ["updated_at", "2016-12-09 20:16:23.595182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.597028"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.598726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2197]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.602309"], ["updated_at", "2016-12-09 20:16:23.602309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.603447"], ["id", 247]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2197], ["g5_updatable_hub_amenity_id", 247]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.606208"], ["updated_at", "2016-12-09 20:16:23.606208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.607230"], ["id", 248]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2197], ["g5_updatable_hub_amenity_id", 248]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2197]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.610873"], ["id", 2197]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:16:23.615206"], ["updated_at", "2016-12-09 20:16:23.615206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.616915"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.618848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2199]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.622585"], ["updated_at", "2016-12-09 20:16:23.622585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.623577"], ["id", 249]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2199], ["g5_updatable_hub_amenity_id", 249]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.626430"], ["updated_at", "2016-12-09 20:16:23.626430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.627521"], ["id", 250]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2199], ["g5_updatable_hub_amenity_id", 250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2199]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.631422"], ["id", 2199]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:23.637738"], ["updated_at", "2016-12-09 20:16:23.637738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:16:23.643100"], ["updated_at", "2016-12-09 20:16:23.643100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.647077"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.648899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2202]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.652918"], ["updated_at", "2016-12-09 20:16:23.652918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.653928"], ["id", 251]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2202], ["g5_updatable_hub_amenity_id", 251]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.656718"], ["updated_at", "2016-12-09 20:16:23.656718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.657694"], ["id", 252]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2202], ["g5_updatable_hub_amenity_id", 252]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2202]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.661167"], ["id", 2202]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.665869"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.667804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2203]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.671585"], ["updated_at", "2016-12-09 20:16:23.671585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.672573"], ["id", 253]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2203], ["g5_updatable_hub_amenity_id", 253]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.675089"], ["updated_at", "2016-12-09 20:16:23.675089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.676089"], ["id", 254]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2203], ["g5_updatable_hub_amenity_id", 254]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2203]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.679742"], ["id", 2203]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.685677"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.687613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2204]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.691373"], ["updated_at", "2016-12-09 20:16:23.691373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.692481"], ["id", 255]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2204], ["g5_updatable_hub_amenity_id", 255]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.695138"], ["updated_at", "2016-12-09 20:16:23.695138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.696074"], ["id", 256]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2204], ["g5_updatable_hub_amenity_id", 256]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2204]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.699758"], ["id", 2204]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.704462"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.706210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2205]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.710189"], ["updated_at", "2016-12-09 20:16:23.710189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.711153"], ["id", 257]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2205], ["g5_updatable_hub_amenity_id", 257]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.713692"], ["updated_at", "2016-12-09 20:16:23.713692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.714603"], ["id", 258]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2205], ["g5_updatable_hub_amenity_id", 258]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2205]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.717862"], ["id", 2205]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.721509"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.723276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2206]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.727100"], ["updated_at", "2016-12-09 20:16:23.727100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.728076"], ["id", 259]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2206], ["g5_updatable_hub_amenity_id", 259]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.730691"], ["updated_at", "2016-12-09 20:16:23.730691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.731704"], ["id", 260]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2206], ["g5_updatable_hub_amenity_id", 260]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2206]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.735346"], ["id", 2206]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2206]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2206]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.742127"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.744103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2207]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.748042"], ["updated_at", "2016-12-09 20:16:23.748042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.748976"], ["id", 261]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2207], ["g5_updatable_hub_amenity_id", 261]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.751329"], ["updated_at", "2016-12-09 20:16:23.751329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.752280"], ["id", 262]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2207], ["g5_updatable_hub_amenity_id", 262]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2207]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.755410"], ["id", 2207]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.760633"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.762464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2208]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.766408"], ["updated_at", "2016-12-09 20:16:23.766408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.767359"], ["id", 263]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2208], ["g5_updatable_hub_amenity_id", 263]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.769849"], ["updated_at", "2016-12-09 20:16:23.769849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.770794"], ["id", 264]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2208], ["g5_updatable_hub_amenity_id", 264]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2208]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.773898"], ["id", 2208]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.778651"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.784987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2209]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.789392"], ["updated_at", "2016-12-09 20:16:23.789392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.790430"], ["id", 265]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2209], ["g5_updatable_hub_amenity_id", 265]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.793020"], ["updated_at", "2016-12-09 20:16:23.793020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.794056"], ["id", 266]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2209], ["g5_updatable_hub_amenity_id", 266]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2209]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.797448"], ["id", 2209]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.802058"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.803671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2210]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.807043"], ["updated_at", "2016-12-09 20:16:23.807043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.808090"], ["id", 267]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2210], ["g5_updatable_hub_amenity_id", 267]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.810581"], ["updated_at", "2016-12-09 20:16:23.810581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.811562"], ["id", 268]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2210], ["g5_updatable_hub_amenity_id", 268]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2210]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.815325"], ["id", 2210]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:16:23.821535"], ["updated_at", "2016-12-09 20:16:23.821535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:16:23.823149"], ["updated_at", "2016-12-09 20:16:23.823149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1086]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2211]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.826779"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.828383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2212]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.832026"], ["updated_at", "2016-12-09 20:16:23.832026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.832941"], ["id", 269]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2212], ["g5_updatable_hub_amenity_id", 269]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.835280"], ["updated_at", "2016-12-09 20:16:23.835280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.836365"], ["id", 270]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2212], ["g5_updatable_hub_amenity_id", 270]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2212]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.839626"], ["id", 2212]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.844491"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.846224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2213]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.849780"], ["updated_at", "2016-12-09 20:16:23.849780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.850682"], ["id", 271]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2213], ["g5_updatable_hub_amenity_id", 271]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.853076"], ["updated_at", "2016-12-09 20:16:23.853076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.853936"], ["id", 272]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2213], ["g5_updatable_hub_amenity_id", 272]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2213]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.856938"], ["id", 2213]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.861657"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.863454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2214]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.866863"], ["updated_at", "2016-12-09 20:16:23.866863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.867765"], ["id", 273]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2214], ["g5_updatable_hub_amenity_id", 273]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.870052"], ["updated_at", "2016-12-09 20:16:23.870052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.871058"], ["id", 274]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2214], ["g5_updatable_hub_amenity_id", 274]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2214]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.874202"], ["id", 2214]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.878915"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.880745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2215]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.884396"], ["updated_at", "2016-12-09 20:16:23.884396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.885453"], ["id", 275]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2215], ["g5_updatable_hub_amenity_id", 275]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.888057"], ["updated_at", "2016-12-09 20:16:23.888057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.888948"], ["id", 276]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2215], ["g5_updatable_hub_amenity_id", 276]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2215]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.892455"], ["id", 2215]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:23.897337"], ["updated_at", "2016-12-09 20:16:23.897337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:16:23.898854"], ["updated_at", "2016-12-09 20:16:23.898854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2216], ["g5_updatable_hub_amenity_id", 277]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.901200"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.902886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2217]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.906550"], ["id", 277]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2217], ["g5_updatable_hub_amenity_id", 277]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.909319"], ["updated_at", "2016-12-09 20:16:23.909319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.910290"], ["id", 278]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2217], ["g5_updatable_hub_amenity_id", 278]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2217]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.913695"], ["id", 2217]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2217]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:23.918766"], ["updated_at", "2016-12-09 20:16:23.918766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:16:23.920071"], ["updated_at", "2016-12-09 20:16:23.920071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2218], ["g5_updatable_hub_amenity_id", 279]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.922491"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.924157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2219]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.927471"], ["updated_at", "2016-12-09 20:16:23.927471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.928528"], ["id", 280]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2219], ["g5_updatable_hub_amenity_id", 280]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.931030"], ["updated_at", "2016-12-09 20:16:23.931030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.932068"], ["id", 281]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2219], ["g5_updatable_hub_amenity_id", 281]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2219]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.935557"], ["id", 2219]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:23.940255"], ["updated_at", "2016-12-09 20:16:23.940255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:16:23.941794"], ["updated_at", "2016-12-09 20:16:23.941794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2220], ["g5_updatable_hub_amenity_id", 282]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.944501"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.946377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2221]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.949926"], ["updated_at", "2016-12-09 20:16:23.949926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.950824"], ["id", 283]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2221], ["g5_updatable_hub_amenity_id", 283]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.953124"], ["updated_at", "2016-12-09 20:16:23.953124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.954015"], ["id", 284]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2221], ["g5_updatable_hub_amenity_id", 284]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2221]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.957321"], ["id", 2221]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:23.961415"], ["updated_at", "2016-12-09 20:16:23.961415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:16:23.962960"], ["updated_at", "2016-12-09 20:16:23.962960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2222], ["g5_updatable_hub_amenity_id", 285]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.965351"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:23.966965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2223]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:23.970375"], ["updated_at", "2016-12-09 20:16:23.970375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:23.971312"], ["id", 286]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2223], ["g5_updatable_hub_amenity_id", 286]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:23.973675"], ["updated_at", "2016-12-09 20:16:23.973675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:23.974651"], ["id", 287]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2223], ["g5_updatable_hub_amenity_id", 287]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2223]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:23.977877"], ["id", 2223]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:16:23.980489"], ["updated_at", "2016-12-09 20:16:23.980489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (8.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:16:23.981730"], ["updated_at", "2016-12-09 20:16:23.981730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1087]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2224]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:23.994539"], ["updated_at", "2016-12-09 20:16:23.994539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:16:23.996572"], ["updated_at", "2016-12-09 20:16:23.996572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2225], ["g5_updatable_hub_amenity_id", 288]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:23.999162"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:24.000796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2226]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:24.004063"], ["updated_at", "2016-12-09 20:16:24.004063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:24.009275"], ["id", 289]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2226], ["g5_updatable_hub_amenity_id", 289]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:24.012124"], ["updated_at", "2016-12-09 20:16:24.012124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:24.013317"], ["id", 290]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2226], ["g5_updatable_hub_amenity_id", 290]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2226]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:24.016489"], ["id", 2226]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:24.024628"], ["updated_at", "2016-12-09 20:16:24.024628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:16:24.026129"], ["updated_at", "2016-12-09 20:16:24.026129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2227], ["g5_updatable_hub_amenity_id", 291]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:24.028693"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:24.030482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2228]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:24.033850"], ["updated_at", "2016-12-09 20:16:24.033850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:24.034740"], ["id", 292]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2228], ["g5_updatable_hub_amenity_id", 292]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:24.037300"], ["updated_at", "2016-12-09 20:16:24.037300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:24.038222"], ["id", 293]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2228], ["g5_updatable_hub_amenity_id", 293]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2228]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:24.041351"], ["id", 2228]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:24.046673"], ["updated_at", "2016-12-09 20:16:24.046673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:16:24.048145"], ["updated_at", "2016-12-09 20:16:24.048145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2229], ["g5_updatable_hub_amenity_id", 294]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:24.050435"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:24.052263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2230]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:24.055788"], ["updated_at", "2016-12-09 20:16:24.055788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:24.056764"], ["id", 295]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2230], ["g5_updatable_hub_amenity_id", 295]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:24.059475"], ["id", 294]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2230], ["g5_updatable_hub_amenity_id", 294]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2230]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:24.062893"], ["id", 2230]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:16:24.065299"], ["updated_at", "2016-12-09 20:16:24.065299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:16:24.066495"], ["updated_at", "2016-12-09 20:16:24.066495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1088]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2231]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:24.069229"], ["updated_at", "2016-12-09 20:16:24.069229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:16:24.070535"], ["updated_at", "2016-12-09 20:16:24.070535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2232], ["g5_updatable_hub_amenity_id", 296]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:24.072854"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:24.074615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2233]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:24.078018"], ["updated_at", "2016-12-09 20:16:24.078018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:24.078918"], ["id", 297]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2233], ["g5_updatable_hub_amenity_id", 297]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:24.081422"], ["updated_at", "2016-12-09 20:16:24.081422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:24.082322"], ["id", 298]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2233], ["g5_updatable_hub_amenity_id", 298]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2233]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:24.085359"], ["id", 2233]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:24.090060"], ["updated_at", "2016-12-09 20:16:24.090060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:16:24.091490"], ["updated_at", "2016-12-09 20:16:24.091490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2234], ["g5_updatable_hub_amenity_id", 299]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:24.094286"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:24.096106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2235]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:24.099467"], ["updated_at", "2016-12-09 20:16:24.099467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:24.100378"], ["id", 300]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2235], ["g5_updatable_hub_amenity_id", 300]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:24.102696"], ["updated_at", "2016-12-09 20:16:24.102696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:24.103573"], ["id", 301]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2235], ["g5_updatable_hub_amenity_id", 301]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2235]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:24.106720"], ["id", 2235]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:24.111459"], ["updated_at", "2016-12-09 20:16:24.111459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:16:24.113040"], ["updated_at", "2016-12-09 20:16:24.113040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2236], ["g5_updatable_hub_amenity_id", 302]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:24.115382"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:24.116956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2237]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:24.120244"], ["updated_at", "2016-12-09 20:16:24.120244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:24.121209"], ["id", 303]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2237], ["g5_updatable_hub_amenity_id", 303]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:24.123568"], ["updated_at", "2016-12-09 20:16:24.123568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:24.124447"], ["id", 304]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2237], ["g5_updatable_hub_amenity_id", 304]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2237]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:24.127654"], ["id", 2237]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:24.134254"], ["updated_at", "2016-12-09 20:16:24.134254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:24.138913"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:24.140580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2239]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:24.144243"], ["updated_at", "2016-12-09 20:16:24.144243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:24.145222"], ["id", 305]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2239], ["g5_updatable_hub_amenity_id", 305]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:24.147796"], ["updated_at", "2016-12-09 20:16:24.147796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:24.148677"], ["id", 306]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2239], ["g5_updatable_hub_amenity_id", 306]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2239]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:24.151713"], ["id", 2239]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2238]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:24.158262"], ["updated_at", "2016-12-09 20:16:24.158262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:24.163210"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:24.165038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2241]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:24.168805"], ["updated_at", "2016-12-09 20:16:24.168805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:24.169850"], ["id", 307]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2241], ["g5_updatable_hub_amenity_id", 307]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:24.173362"], ["updated_at", "2016-12-09 20:16:24.173362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:24.174331"], ["id", 308]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2241], ["g5_updatable_hub_amenity_id", 308]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2241]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:24.177900"], ["id", 2241]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:16:24.180546"], ["updated_at", "2016-12-09 20:16:24.180546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:16:24.181856"], ["updated_at", "2016-12-09 20:16:24.181856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1089]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2242]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:24.184878"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:24.186711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2243]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:24.190568"], ["updated_at", "2016-12-09 20:16:24.190568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:24.191567"], ["id", 309]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2243], ["g5_updatable_hub_amenity_id", 309]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:24.194373"], ["updated_at", "2016-12-09 20:16:24.194373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:24.195301"], ["id", 310]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2243], ["g5_updatable_hub_amenity_id", 310]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2243]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:24.198885"], ["id", 2243]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:24.205376"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:24.207088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2244]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:16:24.211234"], ["updated_at", "2016-12-09 20:16:24.211234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:24.212153"], ["id", 311]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2244], ["g5_updatable_hub_amenity_id", 311]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:24.214619"], ["updated_at", "2016-12-09 20:16:24.214619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:24.215477"], ["id", 312]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2244], ["g5_updatable_hub_amenity_id", 312]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2244]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:24.221722"], ["id", 2244]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:16:33.129969"], ["updated_at", "2016-12-09 20:16:33.129969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:16:33.149063"], ["updated_at", "2016-12-09 20:16:33.149063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2245], ["g5_updatable_hub_amenity_id", 313]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:16:33.166079"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:16:33.168806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2246]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:16:33.175825"], ["id", 313]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2246], ["g5_updatable_hub_amenity_id", 313]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:16:33.179704"], ["updated_at", "2016-12-09 20:16:33.179704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:16:33.180768"], ["id", 314]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2246], ["g5_updatable_hub_amenity_id", 314]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2246]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:16:33.188596"], ["id", 2246]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:17:56.891986"], ["updated_at", "2016-12-09 20:17:56.891986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:17:56.909130"], ["updated_at", "2016-12-09 20:17:56.909130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2247], ["g5_updatable_hub_amenity_id", 315]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:17:56.926040"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2247]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2247]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:17:56.935547"], ["id", 315]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2247], ["g5_updatable_hub_amenity_id", 315]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:17:56.938559"], ["updated_at", "2016-12-09 20:17:56.938559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:17:56.939940"], ["id", 316]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2247], ["g5_updatable_hub_amenity_id", 316]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2247]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:17:56.947278"], ["id", 2247]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:17:56.951745"], ["updated_at", "2016-12-09 20:17:56.951745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:17:56.953208"], ["updated_at", "2016-12-09 20:17:56.953208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2248], ["g5_updatable_hub_amenity_id", 317]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:17:56.955760"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2248]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2248]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:17:56.962095"], ["updated_at", "2016-12-09 20:17:56.962095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:17:56.963269"], ["id", 318]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2248], ["g5_updatable_hub_amenity_id", 318]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:17:56.966077"], ["updated_at", "2016-12-09 20:17:56.966077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:17:56.967063"], ["id", 319]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2248], ["g5_updatable_hub_amenity_id", 319]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2248]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:17:56.970441"], ["id", 2248]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2248]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:17:56.983000"], ["updated_at", "2016-12-09 20:17:56.983000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:17:56.985010"], ["updated_at", "2016-12-09 20:17:56.985010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2249], ["g5_updatable_hub_amenity_id", 320]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:17:56.987836"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2249]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2249]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:17:56.993926"], ["updated_at", "2016-12-09 20:17:56.993926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:17:56.995001"], ["id", 321]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2249], ["g5_updatable_hub_amenity_id", 321]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:17:56.997696"], ["updated_at", "2016-12-09 20:17:56.997696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:17:56.998743"], ["id", 322]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2249], ["g5_updatable_hub_amenity_id", 322]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2249]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:17:57.002475"], ["id", 2249]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:17:57.007846"], ["updated_at", "2016-12-09 20:17:57.007846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:17:57.009341"], ["updated_at", "2016-12-09 20:17:57.009341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2250], ["g5_updatable_hub_amenity_id", 323]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:17:57.011870"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2250]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:17:57.018015"], ["updated_at", "2016-12-09 20:17:57.018015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:17:57.019017"], ["id", 324]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2250], ["g5_updatable_hub_amenity_id", 324]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:17:57.021383"], ["updated_at", "2016-12-09 20:17:57.021383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:17:57.022629"], ["id", 325]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2250], ["g5_updatable_hub_amenity_id", 325]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2250]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:17:57.025811"], ["id", 2250]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:17:57.034585"], ["updated_at", "2016-12-09 20:17:57.034585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:17:57.036382"], ["updated_at", "2016-12-09 20:17:57.036382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2251], ["g5_updatable_hub_amenity_id", 326]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:17:57.039163"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2251]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2251]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:17:57.046283"], ["updated_at", "2016-12-09 20:17:57.046283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:17:57.047496"], ["id", 327]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2251], ["g5_updatable_hub_amenity_id", 327]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:17:57.051096"], ["updated_at", "2016-12-09 20:17:57.051096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:17:57.052399"], ["id", 328]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2251], ["g5_updatable_hub_amenity_id", 328]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2251]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:17:57.055764"], ["id", 2251]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:17:57.061637"], ["updated_at", "2016-12-09 20:17:57.061637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:17:57.063496"], ["updated_at", "2016-12-09 20:17:57.063496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1090]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2252]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:17:57.067373"], ["updated_at", "2016-12-09 20:17:57.067373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:17:57.068872"], ["updated_at", "2016-12-09 20:17:57.068872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2253], ["g5_updatable_hub_amenity_id", 329]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:17:57.071504"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2253]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2253]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:17:57.078223"], ["updated_at", "2016-12-09 20:17:57.078223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:17:57.079190"], ["id", 330]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2253], ["g5_updatable_hub_amenity_id", 330]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:17:57.081781"], ["updated_at", "2016-12-09 20:17:57.081781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:17:57.082779"], ["id", 331]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2253], ["g5_updatable_hub_amenity_id", 331]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2253]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:17:57.086459"], ["id", 2253]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:17:57.091718"], ["updated_at", "2016-12-09 20:17:57.091718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:17:57.093229"], ["updated_at", "2016-12-09 20:17:57.093229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2254], ["g5_updatable_hub_amenity_id", 332]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:17:57.095710"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2254]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2254]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:17:57.102098"], ["updated_at", "2016-12-09 20:17:57.102098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:17:57.103077"], ["id", 333]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2254], ["g5_updatable_hub_amenity_id", 333]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:17:57.105635"], ["id", 332]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2254], ["g5_updatable_hub_amenity_id", 332]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2254]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:17:57.109326"], ["id", 2254]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:17:57.114304"], ["updated_at", "2016-12-09 20:17:57.114304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:17:57.115886"], ["updated_at", "2016-12-09 20:17:57.115886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2255], ["g5_updatable_hub_amenity_id", 334]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:17:57.118424"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2255]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2255]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:17:57.124884"], ["updated_at", "2016-12-09 20:17:57.124884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:17:57.125841"], ["id", 335]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2255], ["g5_updatable_hub_amenity_id", 335]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:17:57.128243"], ["updated_at", "2016-12-09 20:17:57.128243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:17:57.129164"], ["id", 336]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2255], ["g5_updatable_hub_amenity_id", 336]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2255]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:17:57.132865"], ["id", 2255]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:17:57.135621"], ["updated_at", "2016-12-09 20:17:57.135621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:17:57.137039"], ["updated_at", "2016-12-09 20:17:57.137039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1091]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2256]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:17:57.140259"], ["updated_at", "2016-12-09 20:17:57.140259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:17:57.142073"], ["updated_at", "2016-12-09 20:17:57.142073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2257], ["g5_updatable_hub_amenity_id", 337]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:17:57.144601"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2257]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2257]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:17:57.151149"], ["updated_at", "2016-12-09 20:17:57.151149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:17:57.152122"], ["id", 338]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2257], ["g5_updatable_hub_amenity_id", 338]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:17:57.154830"], ["updated_at", "2016-12-09 20:17:57.154830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:17:57.155977"], ["id", 339]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2257], ["g5_updatable_hub_amenity_id", 339]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2257]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:17:57.158991"], ["id", 2257]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:17:57.168935"], ["updated_at", "2016-12-09 20:17:57.168935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:17:57.170665"], ["updated_at", "2016-12-09 20:17:57.170665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2258], ["g5_updatable_hub_amenity_id", 340]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:17:57.173557"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2258]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2258]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:17:57.179603"], ["updated_at", "2016-12-09 20:17:57.179603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:17:57.180584"], ["id", 341]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2258], ["g5_updatable_hub_amenity_id", 341]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:17:57.183128"], ["updated_at", "2016-12-09 20:17:57.183128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:17:57.184031"], ["id", 342]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2258], ["g5_updatable_hub_amenity_id", 342]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2258]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:17:57.187621"], ["id", 2258]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:18:22.952702"], ["updated_at", "2016-12-09 20:18:22.952702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:18:22.971390"], ["updated_at", "2016-12-09 20:18:22.971390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2259], ["g5_updatable_hub_amenity_id", 343]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:18:22.980793"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2259]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2259]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:18:22.997548"], ["id", 343]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2259], ["g5_updatable_hub_amenity_id", 343]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:18:23.000243"], ["updated_at", "2016-12-09 20:18:23.000243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:18:23.001282"], ["id", 344]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2259], ["g5_updatable_hub_amenity_id", 344]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2259]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:18:23.009392"], ["id", 2259]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.379020"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.382967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2260]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.398463"], ["updated_at", "2016-12-09 20:19:14.398463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.400743"], ["id", 345]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2260], ["g5_updatable_hub_amenity_id", 345]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.419611"], ["updated_at", "2016-12-09 20:19:14.419611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.421092"], ["id", 346]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2260], ["g5_updatable_hub_amenity_id", 346]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2260]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.432523"], ["id", 2260]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.442042"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.443979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2261]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.450699"], ["updated_at", "2016-12-09 20:19:14.450699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.452698"], ["id", 347]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2261], ["g5_updatable_hub_amenity_id", 347]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.456999"], ["updated_at", "2016-12-09 20:19:14.456999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.458422"], ["id", 348]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2261], ["g5_updatable_hub_amenity_id", 348]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2261]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.463485"], ["id", 2261]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:19:14.470710"], ["updated_at", "2016-12-09 20:19:14.470710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.472749"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.474663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2263]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.479338"], ["updated_at", "2016-12-09 20:19:14.479338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.480475"], ["id", 349]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2263], ["g5_updatable_hub_amenity_id", 349]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.483582"], ["updated_at", "2016-12-09 20:19:14.483582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.484913"], ["id", 350]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2263], ["g5_updatable_hub_amenity_id", 350]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2263]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.488498"], ["id", 2263]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:19:14.500489"], ["updated_at", "2016-12-09 20:19:14.500489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:19:14.506301"], ["updated_at", "2016-12-09 20:19:14.506301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.509938"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.511660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2266]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.515501"], ["updated_at", "2016-12-09 20:19:14.515501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.516497"], ["id", 351]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2266], ["g5_updatable_hub_amenity_id", 351]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.519444"], ["updated_at", "2016-12-09 20:19:14.519444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.520352"], ["id", 352]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2266], ["g5_updatable_hub_amenity_id", 352]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2266]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.523715"], ["id", 2266]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.528086"], ["updated_at", "2016-12-09 20:19:14.528086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:19:14.529660"], ["updated_at", "2016-12-09 20:19:14.529660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2267], ["g5_updatable_hub_amenity_id", 353]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.532330"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2267]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2267]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.539134"], ["id", 353]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2267], ["g5_updatable_hub_amenity_id", 353]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.541840"], ["updated_at", "2016-12-09 20:19:14.541840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.542823"], ["id", 354]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2267], ["g5_updatable_hub_amenity_id", 354]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2267]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.546235"], ["id", 2267]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2267]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.551618"], ["updated_at", "2016-12-09 20:19:14.551618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:19:14.552977"], ["updated_at", "2016-12-09 20:19:14.552977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2268], ["g5_updatable_hub_amenity_id", 355]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.555516"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2268]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2268]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.561711"], ["updated_at", "2016-12-09 20:19:14.561711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.562773"], ["id", 356]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2268], ["g5_updatable_hub_amenity_id", 356]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.565477"], ["updated_at", "2016-12-09 20:19:14.565477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.566811"], ["id", 357]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2268], ["g5_updatable_hub_amenity_id", 357]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2268]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.571255"], ["id", 2268]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.575245"], ["updated_at", "2016-12-09 20:19:14.575245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:19:14.576922"], ["updated_at", "2016-12-09 20:19:14.576922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2269], ["g5_updatable_hub_amenity_id", 358]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.580075"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2269]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2269]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.586133"], ["updated_at", "2016-12-09 20:19:14.586133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.587069"], ["id", 359]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2269], ["g5_updatable_hub_amenity_id", 359]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.589407"], ["updated_at", "2016-12-09 20:19:14.589407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.590342"], ["id", 360]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2269], ["g5_updatable_hub_amenity_id", 360]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2269]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.593683"], ["id", 2269]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.598550"], ["updated_at", "2016-12-09 20:19:14.598550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:19:14.600022"], ["updated_at", "2016-12-09 20:19:14.600022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2270], ["g5_updatable_hub_amenity_id", 361]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.602686"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2270]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2270]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.608955"], ["updated_at", "2016-12-09 20:19:14.608955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.610049"], ["id", 362]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2270], ["g5_updatable_hub_amenity_id", 362]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.612540"], ["updated_at", "2016-12-09 20:19:14.612540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.613456"], ["id", 363]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2270], ["g5_updatable_hub_amenity_id", 363]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2270]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.616601"], ["id", 2270]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.626822"], ["updated_at", "2016-12-09 20:19:14.626822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:19:14.628743"], ["updated_at", "2016-12-09 20:19:14.628743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2271], ["g5_updatable_hub_amenity_id", 364]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.631335"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2271]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2271]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.637985"], ["updated_at", "2016-12-09 20:19:14.637985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.638979"], ["id", 365]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2271], ["g5_updatable_hub_amenity_id", 365]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.641418"], ["updated_at", "2016-12-09 20:19:14.641418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.642362"], ["id", 366]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2271], ["g5_updatable_hub_amenity_id", 366]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2271]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.645530"], ["id", 2271]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:19:14.655399"], ["updated_at", "2016-12-09 20:19:14.655399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:19:14.657382"], ["updated_at", "2016-12-09 20:19:14.657382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1092]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2272]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.661465"], ["updated_at", "2016-12-09 20:19:14.661465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:19:14.663058"], ["updated_at", "2016-12-09 20:19:14.663058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2273], ["g5_updatable_hub_amenity_id", 367]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.665550"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2273]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2273]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.672390"], ["updated_at", "2016-12-09 20:19:14.672390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.673407"], ["id", 368]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2273], ["g5_updatable_hub_amenity_id", 368]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.675826"], ["updated_at", "2016-12-09 20:19:14.675826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.676834"], ["id", 369]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2273], ["g5_updatable_hub_amenity_id", 369]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2273]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.680174"], ["id", 2273]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.684906"], ["updated_at", "2016-12-09 20:19:14.684906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:19:14.686369"], ["updated_at", "2016-12-09 20:19:14.686369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2274], ["g5_updatable_hub_amenity_id", 370]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.688755"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2274]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2274]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.694500"], ["updated_at", "2016-12-09 20:19:14.694500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.695434"], ["id", 371]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2274], ["g5_updatable_hub_amenity_id", 371]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.697882"], ["id", 370]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2274], ["g5_updatable_hub_amenity_id", 370]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2274]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.701121"], ["id", 2274]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.705872"], ["updated_at", "2016-12-09 20:19:14.705872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:19:14.707320"], ["updated_at", "2016-12-09 20:19:14.707320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2275], ["g5_updatable_hub_amenity_id", 372]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.709743"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2275]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2275]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.715571"], ["updated_at", "2016-12-09 20:19:14.715571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.716726"], ["id", 373]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2275], ["g5_updatable_hub_amenity_id", 373]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.719143"], ["updated_at", "2016-12-09 20:19:14.719143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.720122"], ["id", 374]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2275], ["g5_updatable_hub_amenity_id", 374]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2275]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.723136"], ["id", 2275]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.728318"], ["updated_at", "2016-12-09 20:19:14.728318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:19:14.730001"], ["updated_at", "2016-12-09 20:19:14.730001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2276], ["g5_updatable_hub_amenity_id", 375]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.732481"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2276]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2276]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.739899"], ["updated_at", "2016-12-09 20:19:14.739899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.741112"], ["id", 376]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2276], ["g5_updatable_hub_amenity_id", 376]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.743914"], ["updated_at", "2016-12-09 20:19:14.743914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.744810"], ["id", 377]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2276], ["g5_updatable_hub_amenity_id", 377]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2276]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.747963"], ["id", 2276]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:19:14.750349"], ["updated_at", "2016-12-09 20:19:14.750349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:19:14.751782"], ["updated_at", "2016-12-09 20:19:14.751782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1093]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2277]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.754551"], ["updated_at", "2016-12-09 20:19:14.754551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:19:14.755939"], ["updated_at", "2016-12-09 20:19:14.755939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2278], ["g5_updatable_hub_amenity_id", 378]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.758518"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2278]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2278]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.764514"], ["updated_at", "2016-12-09 20:19:14.764514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.765603"], ["id", 379]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2278], ["g5_updatable_hub_amenity_id", 379]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.768267"], ["updated_at", "2016-12-09 20:19:14.768267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.769319"], ["id", 380]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2278], ["g5_updatable_hub_amenity_id", 380]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2278]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.772555"], ["id", 2278]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:19:14.777444"], ["updated_at", "2016-12-09 20:19:14.777444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.779697"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.781321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2280]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.785005"], ["updated_at", "2016-12-09 20:19:14.785005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.785934"], ["id", 381]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2280], ["g5_updatable_hub_amenity_id", 381]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.788267"], ["updated_at", "2016-12-09 20:19:14.788267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.789144"], ["id", 382]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2280], ["g5_updatable_hub_amenity_id", 382]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2280]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.792463"], ["id", 2280]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:19:14.795847"], ["updated_at", "2016-12-09 20:19:14.795847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:19:14.797918"], ["updated_at", "2016-12-09 20:19:14.797918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.799257"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.800988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2283]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.804817"], ["updated_at", "2016-12-09 20:19:14.804817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.806158"], ["id", 383]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2283], ["g5_updatable_hub_amenity_id", 383]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.809387"], ["updated_at", "2016-12-09 20:19:14.809387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.810580"], ["id", 384]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2283], ["g5_updatable_hub_amenity_id", 384]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2283]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.813650"], ["id", 2283]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:19:14.819316"], ["updated_at", "2016-12-09 20:19:14.819316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.823865"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.825656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2285]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.829370"], ["updated_at", "2016-12-09 20:19:14.829370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.830346"], ["id", 385]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2285], ["g5_updatable_hub_amenity_id", 385]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.832761"], ["updated_at", "2016-12-09 20:19:14.832761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.834058"], ["id", 386]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2285], ["g5_updatable_hub_amenity_id", 386]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2285]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.837482"], ["id", 2285]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2284]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:19:14.844498"], ["updated_at", "2016-12-09 20:19:14.844498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.849307"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.851263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2287]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.854527"], ["updated_at", "2016-12-09 20:19:14.854527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.855416"], ["id", 387]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2287], ["g5_updatable_hub_amenity_id", 387]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.857725"], ["updated_at", "2016-12-09 20:19:14.857725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.858666"], ["id", 388]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2287], ["g5_updatable_hub_amenity_id", 388]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2287]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.861787"], ["id", 2287]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:19:14.868126"], ["updated_at", "2016-12-09 20:19:14.868126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:19:14.869837"], ["updated_at", "2016-12-09 20:19:14.869837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1094]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2288]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.872958"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.874795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2289]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.878887"], ["updated_at", "2016-12-09 20:19:14.878887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.879974"], ["id", 389]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2289], ["g5_updatable_hub_amenity_id", 389]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.882347"], ["updated_at", "2016-12-09 20:19:14.882347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.883280"], ["id", 390]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2289], ["g5_updatable_hub_amenity_id", 390]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2289]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.886582"], ["id", 2289]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.890745"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.892542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2290]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.896035"], ["updated_at", "2016-12-09 20:19:14.896035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.896919"], ["id", 391]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2290], ["g5_updatable_hub_amenity_id", 391]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.899223"], ["updated_at", "2016-12-09 20:19:14.899223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.900106"], ["id", 392]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2290], ["g5_updatable_hub_amenity_id", 392]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2290]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.903461"], ["id", 2290]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.909078"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.910801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2291]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.914941"], ["updated_at", "2016-12-09 20:19:14.914941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.915947"], ["id", 393]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2291], ["g5_updatable_hub_amenity_id", 393]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.918704"], ["updated_at", "2016-12-09 20:19:14.918704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.919687"], ["id", 394]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2291], ["g5_updatable_hub_amenity_id", 394]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2291]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.922948"], ["id", 2291]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2291]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2291]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.929303"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.930991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2292]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.934721"], ["updated_at", "2016-12-09 20:19:14.934721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.935684"], ["id", 395]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2292], ["g5_updatable_hub_amenity_id", 395]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.938374"], ["updated_at", "2016-12-09 20:19:14.938374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.939451"], ["id", 396]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2292], ["g5_updatable_hub_amenity_id", 396]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2292]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.942684"], ["id", 2292]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.946626"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.948428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2293]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.952011"], ["updated_at", "2016-12-09 20:19:14.952011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.952918"], ["id", 397]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2293], ["g5_updatable_hub_amenity_id", 397]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.955263"], ["updated_at", "2016-12-09 20:19:14.955263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.956176"], ["id", 398]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2293], ["g5_updatable_hub_amenity_id", 398]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2293]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.959339"], ["id", 2293]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.964012"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.965854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2294]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.970072"], ["updated_at", "2016-12-09 20:19:14.970072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.971026"], ["id", 399]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2294], ["g5_updatable_hub_amenity_id", 399]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.973422"], ["updated_at", "2016-12-09 20:19:14.973422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.974293"], ["id", 400]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2294], ["g5_updatable_hub_amenity_id", 400]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2294]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.977552"], ["id", 2294]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:14.982372"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:14.984272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2295]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:14.989202"], ["updated_at", "2016-12-09 20:19:14.989202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:14.990237"], ["id", 401]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2295], ["g5_updatable_hub_amenity_id", 401]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:14.992704"], ["updated_at", "2016-12-09 20:19:14.992704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:14.993714"], ["id", 402]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2295], ["g5_updatable_hub_amenity_id", 402]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2295]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:14.996812"], ["id", 2295]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:15.001439"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:15.003162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2296]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:15.006583"], ["updated_at", "2016-12-09 20:19:15.006583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:15.007626"], ["id", 403]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2296], ["g5_updatable_hub_amenity_id", 403]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:15.010393"], ["updated_at", "2016-12-09 20:19:15.010393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:15.011294"], ["id", 404]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2296], ["g5_updatable_hub_amenity_id", 404]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2296]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:15.014337"], ["id", 2296]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:15.019258"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:15.021109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2297]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:15.024901"], ["updated_at", "2016-12-09 20:19:15.024901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:15.025812"], ["id", 405]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2297], ["g5_updatable_hub_amenity_id", 405]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:15.028575"], ["updated_at", "2016-12-09 20:19:15.028575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:15.029511"], ["id", 406]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2297], ["g5_updatable_hub_amenity_id", 406]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2297]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:15.032586"], ["id", 2297]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:15.037210"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:15.038845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2298]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:15.042385"], ["updated_at", "2016-12-09 20:19:15.042385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:15.043355"], ["id", 407]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2298], ["g5_updatable_hub_amenity_id", 407]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:15.045868"], ["updated_at", "2016-12-09 20:19:15.045868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:15.046864"], ["id", 408]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2298], ["g5_updatable_hub_amenity_id", 408]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2298]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:15.050055"], ["id", 2298]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:15.055068"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:15.057029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2299]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:15.060805"], ["updated_at", "2016-12-09 20:19:15.060805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:15.061866"], ["id", 409]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2299], ["g5_updatable_hub_amenity_id", 409]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:15.064276"], ["updated_at", "2016-12-09 20:19:15.064276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:15.065179"], ["id", 410]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2299], ["g5_updatable_hub_amenity_id", 410]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2299]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:15.068876"], ["id", 2299]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:19:15.071154"], ["updated_at", "2016-12-09 20:19:15.071154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:19:15.072397"], ["updated_at", "2016-12-09 20:19:15.072397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1095]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2300]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:15.078837"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:15.080774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2301]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:19:15.084592"], ["updated_at", "2016-12-09 20:19:15.084592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:15.085499"], ["id", 411]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2301], ["g5_updatable_hub_amenity_id", 411]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:15.087831"], ["updated_at", "2016-12-09 20:19:15.087831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:15.088692"], ["id", 412]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2301], ["g5_updatable_hub_amenity_id", 412]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2301]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:15.091898"], ["id", 2301]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:27.235549"], ["updated_at", "2016-12-09 20:19:27.235549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:19:27.251812"], ["updated_at", "2016-12-09 20:19:27.251812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2302], ["g5_updatable_hub_amenity_id", 413]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:27.261836"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2302]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2302]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:27.280591"], ["id", 413]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2302], ["g5_updatable_hub_amenity_id", 413]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:27.283568"], ["updated_at", "2016-12-09 20:19:27.283568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:27.284605"], ["id", 414]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2302], ["g5_updatable_hub_amenity_id", 414]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2302]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:27.293493"], ["id", 2302]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:19:45.293547"], ["updated_at", "2016-12-09 20:19:45.293547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:19:45.309178"], ["updated_at", "2016-12-09 20:19:45.309178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2303], ["g5_updatable_hub_amenity_id", 415]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:19:45.327181"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2303]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2303]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:19:45.338445"], ["id", 415]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2303], ["g5_updatable_hub_amenity_id", 415]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:19:45.341547"], ["updated_at", "2016-12-09 20:19:45.341547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:19:45.342683"], ["id", 416]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2303], ["g5_updatable_hub_amenity_id", 416]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2303]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:19:45.350485"], ["id", 2303]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:20:10.044281"], ["updated_at", "2016-12-09 20:20:10.044281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.053057"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.056079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2305]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.072365"], ["updated_at", "2016-12-09 20:20:10.072365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.074521"], ["id", 417]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2305], ["g5_updatable_hub_amenity_id", 417]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.091131"], ["updated_at", "2016-12-09 20:20:10.091131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.092171"], ["id", 418]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2305], ["g5_updatable_hub_amenity_id", 418]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2305]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.099907"], ["id", 2305]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:20:10.110558"], ["updated_at", "2016-12-09 20:20:10.110558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.112655"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.114414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2307]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.118230"], ["updated_at", "2016-12-09 20:20:10.118230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.119331"], ["id", 419]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2307], ["g5_updatable_hub_amenity_id", 419]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.121999"], ["updated_at", "2016-12-09 20:20:10.121999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.122989"], ["id", 420]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2307], ["g5_updatable_hub_amenity_id", 420]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2307]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.126413"], ["id", 2307]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:20:10.130093"], ["updated_at", "2016-12-09 20:20:10.130093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.131669"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.133531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2309]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.137159"], ["updated_at", "2016-12-09 20:20:10.137159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.138157"], ["id", 421]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2309], ["g5_updatable_hub_amenity_id", 421]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.140964"], ["updated_at", "2016-12-09 20:20:10.140964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.141986"], ["id", 422]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2309], ["g5_updatable_hub_amenity_id", 422]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2309]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.145312"], ["id", 2309]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:20:10.149365"], ["updated_at", "2016-12-09 20:20:10.149365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.152057"], ["updated_at", "2016-12-09 20:20:10.152057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:20:10.153721"], ["updated_at", "2016-12-09 20:20:10.153721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2311], ["g5_updatable_hub_amenity_id", 423]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.156458"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2311]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2311]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.162714"], ["id", 423]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2311], ["g5_updatable_hub_amenity_id", 423]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.165550"], ["updated_at", "2016-12-09 20:20:10.165550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.166685"], ["id", 424]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2311], ["g5_updatable_hub_amenity_id", 424]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2311]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.170181"], ["id", 2311]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.174871"], ["updated_at", "2016-12-09 20:20:10.174871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:20:10.176347"], ["updated_at", "2016-12-09 20:20:10.176347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2312], ["g5_updatable_hub_amenity_id", 425]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.178961"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2312]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2312]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.184943"], ["updated_at", "2016-12-09 20:20:10.184943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.186073"], ["id", 426]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2312], ["g5_updatable_hub_amenity_id", 426]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.188389"], ["updated_at", "2016-12-09 20:20:10.188389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.189343"], ["id", 427]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2312], ["g5_updatable_hub_amenity_id", 427]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2312]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.192826"], ["id", 2312]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2312]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.198302"], ["updated_at", "2016-12-09 20:20:10.198302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:20:10.200088"], ["updated_at", "2016-12-09 20:20:10.200088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2313], ["g5_updatable_hub_amenity_id", 428]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.202841"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2313]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2313]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.208624"], ["updated_at", "2016-12-09 20:20:10.208624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.209579"], ["id", 429]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2313], ["g5_updatable_hub_amenity_id", 429]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.212147"], ["updated_at", "2016-12-09 20:20:10.212147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.213100"], ["id", 430]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2313], ["g5_updatable_hub_amenity_id", 430]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2313]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.216340"], ["id", 2313]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.220267"], ["updated_at", "2016-12-09 20:20:10.220267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:20:10.221703"], ["updated_at", "2016-12-09 20:20:10.221703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2314], ["g5_updatable_hub_amenity_id", 431]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.224207"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2314]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2314]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.230125"], ["updated_at", "2016-12-09 20:20:10.230125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.231070"], ["id", 432]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2314], ["g5_updatable_hub_amenity_id", 432]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.233703"], ["updated_at", "2016-12-09 20:20:10.233703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.234645"], ["id", 433]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2314], ["g5_updatable_hub_amenity_id", 433]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2314]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.237802"], ["id", 2314]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.242493"], ["updated_at", "2016-12-09 20:20:10.242493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:20:10.243864"], ["updated_at", "2016-12-09 20:20:10.243864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2315], ["g5_updatable_hub_amenity_id", 434]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.246914"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2315]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2315]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.254571"], ["updated_at", "2016-12-09 20:20:10.254571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.255595"], ["id", 435]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2315], ["g5_updatable_hub_amenity_id", 435]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.258012"], ["updated_at", "2016-12-09 20:20:10.258012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.259005"], ["id", 436]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2315], ["g5_updatable_hub_amenity_id", 436]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2315]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.262307"], ["id", 2315]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.271034"], ["updated_at", "2016-12-09 20:20:10.271034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:20:10.272545"], ["updated_at", "2016-12-09 20:20:10.272545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2316], ["g5_updatable_hub_amenity_id", 437]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.275081"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2316]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2316]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.281221"], ["updated_at", "2016-12-09 20:20:10.281221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.282306"], ["id", 438]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2316], ["g5_updatable_hub_amenity_id", 438]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.284814"], ["updated_at", "2016-12-09 20:20:10.284814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.285706"], ["id", 439]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2316], ["g5_updatable_hub_amenity_id", 439]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2316]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.288833"], ["id", 2316]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:20:10.294517"], ["updated_at", "2016-12-09 20:20:10.294517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:20:10.296201"], ["updated_at", "2016-12-09 20:20:10.296201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1096]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2317]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.300278"], ["updated_at", "2016-12-09 20:20:10.300278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:20:10.301822"], ["updated_at", "2016-12-09 20:20:10.301822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2318], ["g5_updatable_hub_amenity_id", 440]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.304293"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2318]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2318]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.314674"], ["updated_at", "2016-12-09 20:20:10.314674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.315905"], ["id", 441]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2318], ["g5_updatable_hub_amenity_id", 441]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.318696"], ["id", 440]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (8.6ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2318], ["g5_updatable_hub_amenity_id", 440]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2318]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.331197"], ["id", 2318]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.336394"], ["updated_at", "2016-12-09 20:20:10.336394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:20:10.337854"], ["updated_at", "2016-12-09 20:20:10.337854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2319], ["g5_updatable_hub_amenity_id", 442]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.340461"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2319]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2319]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.346238"], ["updated_at", "2016-12-09 20:20:10.346238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.347368"], ["id", 443]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2319], ["g5_updatable_hub_amenity_id", 443]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.350251"], ["updated_at", "2016-12-09 20:20:10.350251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.351187"], ["id", 444]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2319], ["g5_updatable_hub_amenity_id", 444]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2319]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.354413"], ["id", 2319]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.358946"], ["updated_at", "2016-12-09 20:20:10.358946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:20:10.360349"], ["updated_at", "2016-12-09 20:20:10.360349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2320], ["g5_updatable_hub_amenity_id", 445]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.362774"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2320]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2320]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.369074"], ["updated_at", "2016-12-09 20:20:10.369074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.370045"], ["id", 446]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2320], ["g5_updatable_hub_amenity_id", 446]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.372370"], ["updated_at", "2016-12-09 20:20:10.372370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.373271"], ["id", 447]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2320], ["g5_updatable_hub_amenity_id", 447]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2320]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.376288"], ["id", 2320]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:20:10.378582"], ["updated_at", "2016-12-09 20:20:10.378582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:20:10.379950"], ["updated_at", "2016-12-09 20:20:10.379950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1097]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2321]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.382941"], ["updated_at", "2016-12-09 20:20:10.382941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:20:10.384424"], ["updated_at", "2016-12-09 20:20:10.384424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2322], ["g5_updatable_hub_amenity_id", 448]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.386862"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2322]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2322]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.392143"], ["updated_at", "2016-12-09 20:20:10.392143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.393087"], ["id", 449]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2322], ["g5_updatable_hub_amenity_id", 449]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.395700"], ["updated_at", "2016-12-09 20:20:10.395700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.397100"], ["id", 450]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2322], ["g5_updatable_hub_amenity_id", 450]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2322]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.400858"], ["id", 2322]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.405796"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.407415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2323]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.410835"], ["updated_at", "2016-12-09 20:20:10.410835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.411942"], ["id", 451]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2323], ["g5_updatable_hub_amenity_id", 451]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.414612"], ["updated_at", "2016-12-09 20:20:10.414612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.415592"], ["id", 452]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2323], ["g5_updatable_hub_amenity_id", 452]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2323]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.418764"], ["id", 2323]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.422511"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.424976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2324]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.428984"], ["updated_at", "2016-12-09 20:20:10.428984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.430295"], ["id", 453]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2324], ["g5_updatable_hub_amenity_id", 453]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.432978"], ["updated_at", "2016-12-09 20:20:10.432978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.433930"], ["id", 454]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2324], ["g5_updatable_hub_amenity_id", 454]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2324]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.437063"], ["id", 2324]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.441624"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.443201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2325]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.447209"], ["updated_at", "2016-12-09 20:20:10.447209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.448299"], ["id", 455]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2325], ["g5_updatable_hub_amenity_id", 455]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.451149"], ["updated_at", "2016-12-09 20:20:10.451149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.452081"], ["id", 456]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2325], ["g5_updatable_hub_amenity_id", 456]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2325]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.455119"], ["id", 2325]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2325]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2325]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.460990"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.462652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2326]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.467000"], ["updated_at", "2016-12-09 20:20:10.467000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.467967"], ["id", 457]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2326], ["g5_updatable_hub_amenity_id", 457]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.470397"], ["updated_at", "2016-12-09 20:20:10.470397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.471322"], ["id", 458]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2326], ["g5_updatable_hub_amenity_id", 458]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2326]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.474404"], ["id", 2326]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.480424"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.482316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2327]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.486028"], ["updated_at", "2016-12-09 20:20:10.486028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.486953"], ["id", 459]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2327], ["g5_updatable_hub_amenity_id", 459]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.489408"], ["updated_at", "2016-12-09 20:20:10.489408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.490319"], ["id", 460]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2327], ["g5_updatable_hub_amenity_id", 460]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2327]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.493460"], ["id", 2327]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.498862"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.500766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2328]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.504448"], ["updated_at", "2016-12-09 20:20:10.504448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.505439"], ["id", 461]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2328], ["g5_updatable_hub_amenity_id", 461]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.507876"], ["updated_at", "2016-12-09 20:20:10.507876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.508802"], ["id", 462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2328], ["g5_updatable_hub_amenity_id", 462]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2328]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.511884"], ["id", 2328]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.517409"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.519613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2329]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.523445"], ["updated_at", "2016-12-09 20:20:10.523445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.524410"], ["id", 463]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2329], ["g5_updatable_hub_amenity_id", 463]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.526640"], ["updated_at", "2016-12-09 20:20:10.526640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.527604"], ["id", 464]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2329], ["g5_updatable_hub_amenity_id", 464]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2329]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.530739"], ["id", 2329]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.539402"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.541109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2330]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.544685"], ["updated_at", "2016-12-09 20:20:10.544685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.545972"], ["id", 465]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2330], ["g5_updatable_hub_amenity_id", 465]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.548781"], ["updated_at", "2016-12-09 20:20:10.548781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.549951"], ["id", 466]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2330], ["g5_updatable_hub_amenity_id", 466]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2330]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.553144"], ["id", 2330]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.558019"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.559628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2331]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.563088"], ["updated_at", "2016-12-09 20:20:10.563088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.564404"], ["id", 467]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2331], ["g5_updatable_hub_amenity_id", 467]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.567348"], ["updated_at", "2016-12-09 20:20:10.567348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.568299"], ["id", 468]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2331], ["g5_updatable_hub_amenity_id", 468]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2331]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.571324"], ["id", 2331]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.575695"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.577333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2332]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.580808"], ["updated_at", "2016-12-09 20:20:10.580808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.581857"], ["id", 469]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2332], ["g5_updatable_hub_amenity_id", 469]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.584220"], ["updated_at", "2016-12-09 20:20:10.584220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.585087"], ["id", 470]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2332], ["g5_updatable_hub_amenity_id", 470]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2332]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.588318"], ["id", 2332]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.593029"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.594704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2333]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.599107"], ["updated_at", "2016-12-09 20:20:10.599107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.600344"], ["id", 471]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2333], ["g5_updatable_hub_amenity_id", 471]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.603599"], ["updated_at", "2016-12-09 20:20:10.603599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.605126"], ["id", 472]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2333], ["g5_updatable_hub_amenity_id", 472]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2333]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.608447"], ["id", 2333]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:20:10.610815"], ["updated_at", "2016-12-09 20:20:10.610815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:20:10.612259"], ["updated_at", "2016-12-09 20:20:10.612259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1098]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2334]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.615515"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.617300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2335]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.620912"], ["updated_at", "2016-12-09 20:20:10.620912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.621831"], ["id", 473]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2335], ["g5_updatable_hub_amenity_id", 473]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.624171"], ["updated_at", "2016-12-09 20:20:10.624171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.625046"], ["id", 474]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2335], ["g5_updatable_hub_amenity_id", 474]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2335]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.628019"], ["id", 2335]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:20:10.634329"], ["updated_at", "2016-12-09 20:20:10.634329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:20:10.638827"], ["updated_at", "2016-12-09 20:20:10.638827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.641929"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.643561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2338]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.647496"], ["updated_at", "2016-12-09 20:20:10.647496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.648626"], ["id", 475]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2338], ["g5_updatable_hub_amenity_id", 475]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.651429"], ["updated_at", "2016-12-09 20:20:10.651429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.652409"], ["id", 476]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2338], ["g5_updatable_hub_amenity_id", 476]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2338]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.655520"], ["id", 2338]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:20:10.660855"], ["updated_at", "2016-12-09 20:20:10.660855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.665475"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.667275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2340]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.670661"], ["updated_at", "2016-12-09 20:20:10.670661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.671577"], ["id", 477]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2340], ["g5_updatable_hub_amenity_id", 477]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.673976"], ["updated_at", "2016-12-09 20:20:10.673976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.674901"], ["id", 478]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2340], ["g5_updatable_hub_amenity_id", 478]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2340]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.678013"], ["id", 2340]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2339]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:20:10.684826"], ["updated_at", "2016-12-09 20:20:10.684826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.689282"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.690990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2342]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.694475"], ["updated_at", "2016-12-09 20:20:10.694475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.695634"], ["id", 479]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2342], ["g5_updatable_hub_amenity_id", 479]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.698584"], ["updated_at", "2016-12-09 20:20:10.698584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.699673"], ["id", 480]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2342], ["g5_updatable_hub_amenity_id", 480]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2342]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.703001"], ["id", 2342]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:20:10.705513"], ["updated_at", "2016-12-09 20:20:10.705513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:20:10.706781"], ["updated_at", "2016-12-09 20:20:10.706781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1099]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2343]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.710401"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.712164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2344]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.716509"], ["updated_at", "2016-12-09 20:20:10.716509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.717654"], ["id", 481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2344], ["g5_updatable_hub_amenity_id", 481]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.720135"], ["updated_at", "2016-12-09 20:20:10.720135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.721064"], ["id", 482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2344], ["g5_updatable_hub_amenity_id", 482]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2344]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.724361"], ["id", 2344]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:10.733676"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:10.735535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2345]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:20:10.739143"], ["updated_at", "2016-12-09 20:20:10.739143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:10.740192"], ["id", 483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2345], ["g5_updatable_hub_amenity_id", 483]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:10.742861"], ["updated_at", "2016-12-09 20:20:10.742861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:10.743863"], ["id", 484]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2345], ["g5_updatable_hub_amenity_id", 484]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:10.747840"], ["id", 2345]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:20:19.659411"], ["updated_at", "2016-12-09 20:20:19.659411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:20:19.675692"], ["updated_at", "2016-12-09 20:20:19.675692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2346], ["g5_updatable_hub_amenity_id", 485]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:20:19.693014"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2346]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2346]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:20:19.704531"], ["id", 485]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2346], ["g5_updatable_hub_amenity_id", 485]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:20:19.707792"], ["updated_at", "2016-12-09 20:20:19.707792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:20:19.709108"], ["id", 486]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2346], ["g5_updatable_hub_amenity_id", 486]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2346]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:20:19.720255"], ["id", 2346]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:21:59.406853"], ["updated_at", "2016-12-09 20:21:59.406853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:21:59.422974"], ["updated_at", "2016-12-09 20:21:59.422974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2347], ["g5_updatable_hub_amenity_id", 487]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:21:59.430424"], ["updated_at", "2016-12-09 20:21:59.430424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:21:59.431930"], ["updated_at", "2016-12-09 20:21:59.431930"]]  (7.5ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2348], ["g5_updatable_hub_amenity_id", 488]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:21:59.443057"], ["updated_at", "2016-12-09 20:21:59.443057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:21:59.444745"], ["updated_at", "2016-12-09 20:21:59.444745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2349], ["g5_updatable_hub_amenity_id", 489]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:21:59.449042"], ["updated_at", "2016-12-09 20:21:59.449042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:21:59.450872"], ["updated_at", "2016-12-09 20:21:59.450872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2350], ["g5_updatable_hub_amenity_id", 490]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:37.624562"], ["updated_at", "2016-12-09 20:22:37.624562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:22:37.642945"], ["updated_at", "2016-12-09 20:22:37.642945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2351], ["g5_updatable_hub_amenity_id", 491]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:37.660746"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2351]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2351]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:37.670627"], ["id", 491]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2351], ["g5_updatable_hub_amenity_id", 491]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:37.673383"], ["updated_at", "2016-12-09 20:22:37.673383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:37.674435"], ["id", 492]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2351], ["g5_updatable_hub_amenity_id", 492]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2351]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:37.682095"], ["id", 2351]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:37.691115"], ["updated_at", "2016-12-09 20:22:37.691115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:22:37.692573"], ["updated_at", "2016-12-09 20:22:37.692573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2352], ["g5_updatable_hub_amenity_id", 493]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:37.695153"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2352]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2352]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:37.701205"], ["updated_at", "2016-12-09 20:22:37.701205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:37.702354"], ["id", 494]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2352], ["g5_updatable_hub_amenity_id", 494]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:37.704818"], ["updated_at", "2016-12-09 20:22:37.704818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:37.705756"], ["id", 495]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2352], ["g5_updatable_hub_amenity_id", 495]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2352]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:37.709134"], ["id", 2352]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:37.714178"], ["updated_at", "2016-12-09 20:22:37.714178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:22:37.715705"], ["updated_at", "2016-12-09 20:22:37.715705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2353], ["g5_updatable_hub_amenity_id", 496]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:37.718629"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2353]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2353]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:37.724724"], ["updated_at", "2016-12-09 20:22:37.724724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:37.725854"], ["id", 497]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2353], ["g5_updatable_hub_amenity_id", 497]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:37.728395"], ["updated_at", "2016-12-09 20:22:37.728395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:37.729366"], ["id", 498]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2353], ["g5_updatable_hub_amenity_id", 498]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2353]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:37.732928"], ["id", 2353]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 20:22:37.739103"], ["updated_at", "2016-12-09 20:22:37.739103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:22:37.740674"], ["updated_at", "2016-12-09 20:22:37.740674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1100]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2354]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:37.744144"], ["updated_at", "2016-12-09 20:22:37.744144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:22:37.745755"], ["updated_at", "2016-12-09 20:22:37.745755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2355], ["g5_updatable_hub_amenity_id", 499]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:37.749072"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2355]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2355]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:37.755353"], ["updated_at", "2016-12-09 20:22:37.755353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:37.756330"], ["id", 500]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2355], ["g5_updatable_hub_amenity_id", 500]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:37.758601"], ["updated_at", "2016-12-09 20:22:37.758601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:37.759538"], ["id", 501]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2355], ["g5_updatable_hub_amenity_id", 501]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2355]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:37.762902"], ["id", 2355]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.659212"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.662932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2356]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.680700"], ["updated_at", "2016-12-09 20:22:44.680700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.682965"], ["id", 502]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2356], ["g5_updatable_hub_amenity_id", 502]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.700760"], ["updated_at", "2016-12-09 20:22:44.700760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.701875"], ["id", 503]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2356], ["g5_updatable_hub_amenity_id", 503]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2356]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.709705"], ["id", 2356]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.717602"], ["updated_at", "2016-12-09 20:22:44.717602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:22:44.719663"], ["updated_at", "2016-12-09 20:22:44.719663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2357], ["g5_updatable_hub_amenity_id", 504]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.722787"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2357]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2357]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.731592"], ["id", 504]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2357], ["g5_updatable_hub_amenity_id", 504]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.734717"], ["updated_at", "2016-12-09 20:22:44.734717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.735941"], ["id", 505]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2357], ["g5_updatable_hub_amenity_id", 505]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2357]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.739888"], ["id", 2357]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2357]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.745913"], ["updated_at", "2016-12-09 20:22:44.745913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:22:44.747905"], ["updated_at", "2016-12-09 20:22:44.747905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2358], ["g5_updatable_hub_amenity_id", 506]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.750693"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2358]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2358]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.757253"], ["updated_at", "2016-12-09 20:22:44.757253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.758315"], ["id", 507]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2358], ["g5_updatable_hub_amenity_id", 507]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.760838"], ["updated_at", "2016-12-09 20:22:44.760838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.761860"], ["id", 508]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2358], ["g5_updatable_hub_amenity_id", 508]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2358]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.765079"], ["id", 2358]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.769877"], ["updated_at", "2016-12-09 20:22:44.769877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:22:44.771617"], ["updated_at", "2016-12-09 20:22:44.771617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2359], ["g5_updatable_hub_amenity_id", 509]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.774305"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2359]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2359]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.780542"], ["updated_at", "2016-12-09 20:22:44.780542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.781555"], ["id", 510]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2359], ["g5_updatable_hub_amenity_id", 510]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.783978"], ["updated_at", "2016-12-09 20:22:44.783978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.785019"], ["id", 511]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2359], ["g5_updatable_hub_amenity_id", 511]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2359]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.788560"], ["id", 2359]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.792459"], ["updated_at", "2016-12-09 20:22:44.792459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:22:44.793869"], ["updated_at", "2016-12-09 20:22:44.793869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2360], ["g5_updatable_hub_amenity_id", 512]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.796475"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2360]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2360]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.802489"], ["updated_at", "2016-12-09 20:22:44.802489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.803696"], ["id", 513]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2360], ["g5_updatable_hub_amenity_id", 513]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.806114"], ["updated_at", "2016-12-09 20:22:44.806114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.806993"], ["id", 514]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2360], ["g5_updatable_hub_amenity_id", 514]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2360]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.810210"], ["id", 2360]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.819207"], ["updated_at", "2016-12-09 20:22:44.819207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:22:44.820944"], ["updated_at", "2016-12-09 20:22:44.820944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2361], ["g5_updatable_hub_amenity_id", 515]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.823799"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2361]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2361]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.829915"], ["updated_at", "2016-12-09 20:22:44.829915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.830909"], ["id", 516]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2361], ["g5_updatable_hub_amenity_id", 516]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.833160"], ["updated_at", "2016-12-09 20:22:44.833160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.834331"], ["id", 517]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2361], ["g5_updatable_hub_amenity_id", 517]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2361]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.837731"], ["id", 2361]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 20:22:44.843654"], ["updated_at", "2016-12-09 20:22:44.843654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:22:44.845133"], ["updated_at", "2016-12-09 20:22:44.845133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1101]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2362]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.848475"], ["updated_at", "2016-12-09 20:22:44.848475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:22:44.849874"], ["updated_at", "2016-12-09 20:22:44.849874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2363], ["g5_updatable_hub_amenity_id", 518]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.852723"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2363]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2363]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.859724"], ["updated_at", "2016-12-09 20:22:44.859724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.860774"], ["id", 519]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2363], ["g5_updatable_hub_amenity_id", 519]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.863207"], ["updated_at", "2016-12-09 20:22:44.863207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.864127"], ["id", 520]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2363], ["g5_updatable_hub_amenity_id", 520]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2363]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.867381"], ["id", 2363]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.872395"], ["updated_at", "2016-12-09 20:22:44.872395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:22:44.874054"], ["updated_at", "2016-12-09 20:22:44.874054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2364], ["g5_updatable_hub_amenity_id", 521]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.876679"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2364]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2364]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.882367"], ["updated_at", "2016-12-09 20:22:44.882367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.883322"], ["id", 522]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2364], ["g5_updatable_hub_amenity_id", 522]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.886568"], ["id", 521]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2364], ["g5_updatable_hub_amenity_id", 521]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2364]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.890179"], ["id", 2364]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.894965"], ["updated_at", "2016-12-09 20:22:44.894965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:22:44.896423"], ["updated_at", "2016-12-09 20:22:44.896423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2365], ["g5_updatable_hub_amenity_id", 523]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.898908"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2365]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2365]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.904838"], ["updated_at", "2016-12-09 20:22:44.904838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.905806"], ["id", 524]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2365], ["g5_updatable_hub_amenity_id", 524]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.908130"], ["updated_at", "2016-12-09 20:22:44.908130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.909079"], ["id", 525]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2365], ["g5_updatable_hub_amenity_id", 525]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2365]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.912206"], ["id", 2365]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.916852"], ["updated_at", "2016-12-09 20:22:44.916852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:22:44.918449"], ["updated_at", "2016-12-09 20:22:44.918449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2366], ["g5_updatable_hub_amenity_id", 526]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.921286"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2366]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2366]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.927450"], ["updated_at", "2016-12-09 20:22:44.927450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.933108"], ["id", 527]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2366], ["g5_updatable_hub_amenity_id", 527]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.935930"], ["updated_at", "2016-12-09 20:22:44.935930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.936970"], ["id", 528]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2366], ["g5_updatable_hub_amenity_id", 528]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2366]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.940577"], ["id", 2366]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:22:44.942997"], ["updated_at", "2016-12-09 20:22:44.942997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:22:44.944273"], ["updated_at", "2016-12-09 20:22:44.944273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1102]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2367]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.947417"], ["updated_at", "2016-12-09 20:22:44.947417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:22:44.948876"], ["updated_at", "2016-12-09 20:22:44.948876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2368], ["g5_updatable_hub_amenity_id", 529]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.951249"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2368]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2368]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.957034"], ["updated_at", "2016-12-09 20:22:44.957034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.957967"], ["id", 530]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2368], ["g5_updatable_hub_amenity_id", 530]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.960382"], ["updated_at", "2016-12-09 20:22:44.960382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.961375"], ["id", 531]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2368], ["g5_updatable_hub_amenity_id", 531]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2368]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.964293"], ["id", 2368]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:22:44.968959"], ["updated_at", "2016-12-09 20:22:44.968959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.971342"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.973000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2370]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.976826"], ["updated_at", "2016-12-09 20:22:44.976826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.977760"], ["id", 532]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2370], ["g5_updatable_hub_amenity_id", 532]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.980220"], ["updated_at", "2016-12-09 20:22:44.980220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.981114"], ["id", 533]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2370], ["g5_updatable_hub_amenity_id", 533]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2370]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:44.984129"], ["id", 2370]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:22:44.988208"], ["updated_at", "2016-12-09 20:22:44.988208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:44.989860"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:44.991477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2372]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:44.994721"], ["updated_at", "2016-12-09 20:22:44.994721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:44.995651"], ["id", 534]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2372], ["g5_updatable_hub_amenity_id", 534]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:44.998051"], ["updated_at", "2016-12-09 20:22:44.998051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:44.998971"], ["id", 535]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2372], ["g5_updatable_hub_amenity_id", 535]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2372]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.002342"], ["id", 2372]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:22:45.011429"], ["updated_at", "2016-12-09 20:22:45.011429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:22:45.015376"], ["updated_at", "2016-12-09 20:22:45.015376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.020266"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.022237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2375]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.026333"], ["updated_at", "2016-12-09 20:22:45.026333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.027293"], ["id", 536]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2375], ["g5_updatable_hub_amenity_id", 536]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.029663"], ["updated_at", "2016-12-09 20:22:45.029663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.030542"], ["id", 537]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2375], ["g5_updatable_hub_amenity_id", 537]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2375]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.033544"], ["id", 2375]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2374]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:22:45.040925"], ["updated_at", "2016-12-09 20:22:45.040925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.045502"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.047210"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2377]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.051115"], ["updated_at", "2016-12-09 20:22:45.051115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.052204"], ["id", 538]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2377], ["g5_updatable_hub_amenity_id", 538]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.054567"], ["updated_at", "2016-12-09 20:22:45.054567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.055532"], ["id", 539]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2377], ["g5_updatable_hub_amenity_id", 539]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2377]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.058514"], ["id", 2377]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:22:45.060790"], ["updated_at", "2016-12-09 20:22:45.060790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:22:45.062060"], ["updated_at", "2016-12-09 20:22:45.062060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1103]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2378]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:22:45.066354"], ["updated_at", "2016-12-09 20:22:45.066354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:22:45.071349"], ["updated_at", "2016-12-09 20:22:45.071349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.074743"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.076559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2381]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.080319"], ["updated_at", "2016-12-09 20:22:45.080319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.081251"], ["id", 540]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2381], ["g5_updatable_hub_amenity_id", 540]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.083762"], ["updated_at", "2016-12-09 20:22:45.083762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.084931"], ["id", 541]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2381], ["g5_updatable_hub_amenity_id", 541]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2381]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.088453"], ["id", 2381]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.092668"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.094522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2382]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.098060"], ["updated_at", "2016-12-09 20:22:45.098060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.098994"], ["id", 542]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2382], ["g5_updatable_hub_amenity_id", 542]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.101472"], ["updated_at", "2016-12-09 20:22:45.101472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.102657"], ["id", 543]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2382], ["g5_updatable_hub_amenity_id", 543]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2382]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.105844"], ["id", 2382]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2382]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2382]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.112022"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.113733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2383]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.117105"], ["updated_at", "2016-12-09 20:22:45.117105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.118424"], ["id", 544]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2383], ["g5_updatable_hub_amenity_id", 544]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.121062"], ["updated_at", "2016-12-09 20:22:45.121062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.122075"], ["id", 545]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2383], ["g5_updatable_hub_amenity_id", 545]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2383]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.125270"], ["id", 2383]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.134050"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.136011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2384]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.140026"], ["updated_at", "2016-12-09 20:22:45.140026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.140995"], ["id", 546]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2384], ["g5_updatable_hub_amenity_id", 546]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.143405"], ["updated_at", "2016-12-09 20:22:45.143405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.144381"], ["id", 547]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2384], ["g5_updatable_hub_amenity_id", 547]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2384]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.147261"], ["id", 2384]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.151067"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.152851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2385]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.156368"], ["updated_at", "2016-12-09 20:22:45.156368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.157287"], ["id", 548]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2385], ["g5_updatable_hub_amenity_id", 548]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.159579"], ["updated_at", "2016-12-09 20:22:45.159579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.160486"], ["id", 549]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2385], ["g5_updatable_hub_amenity_id", 549]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2385]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.163524"], ["id", 2385]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.169846"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.171927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2386]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.176003"], ["updated_at", "2016-12-09 20:22:45.176003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.176927"], ["id", 550]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2386], ["g5_updatable_hub_amenity_id", 550]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.179236"], ["updated_at", "2016-12-09 20:22:45.179236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.180112"], ["id", 551]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2386], ["g5_updatable_hub_amenity_id", 551]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2386]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.183179"], ["id", 2386]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (8.7ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.188102"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.189931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2387]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.202575"], ["updated_at", "2016-12-09 20:22:45.202575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.203545"], ["id", 552]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2387], ["g5_updatable_hub_amenity_id", 552]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.205992"], ["updated_at", "2016-12-09 20:22:45.205992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.206881"], ["id", 553]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2387], ["g5_updatable_hub_amenity_id", 553]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2387]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.209891"], ["id", 2387]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.214462"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.216202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2388]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.220999"], ["updated_at", "2016-12-09 20:22:45.220999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.222507"], ["id", 554]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2388], ["g5_updatable_hub_amenity_id", 554]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.225626"], ["updated_at", "2016-12-09 20:22:45.225626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.226567"], ["id", 555]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2388], ["g5_updatable_hub_amenity_id", 555]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2388]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.229668"], ["id", 2388]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.234008"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.235946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2389]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.239708"], ["updated_at", "2016-12-09 20:22:45.239708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.240648"], ["id", 556]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2389], ["g5_updatable_hub_amenity_id", 556]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.242979"], ["updated_at", "2016-12-09 20:22:45.242979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.243883"], ["id", 557]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2389], ["g5_updatable_hub_amenity_id", 557]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2389]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.246892"], ["id", 2389]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.251674"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.253617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2390]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.257159"], ["updated_at", "2016-12-09 20:22:45.257159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.258091"], ["id", 558]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2390], ["g5_updatable_hub_amenity_id", 558]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.260363"], ["updated_at", "2016-12-09 20:22:45.260363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.261280"], ["id", 559]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2390], ["g5_updatable_hub_amenity_id", 559]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2390]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.264335"], ["id", 2390]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.268847"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.270526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2391]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.274094"], ["updated_at", "2016-12-09 20:22:45.274094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.275199"], ["id", 560]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2391], ["g5_updatable_hub_amenity_id", 560]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.277583"], ["updated_at", "2016-12-09 20:22:45.277583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.278489"], ["id", 561]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2391], ["g5_updatable_hub_amenity_id", 561]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2391]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.281689"], ["id", 2391]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.286203"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.287827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2392]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.291640"], ["updated_at", "2016-12-09 20:22:45.291640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.292575"], ["id", 562]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2392], ["g5_updatable_hub_amenity_id", 562]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.294913"], ["updated_at", "2016-12-09 20:22:45.294913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.295786"], ["id", 563]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2392], ["g5_updatable_hub_amenity_id", 563]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2392]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.299074"], ["id", 2392]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:22:45.301517"], ["updated_at", "2016-12-09 20:22:45.301517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:22:45.302736"], ["updated_at", "2016-12-09 20:22:45.302736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1104]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2393]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.305772"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.307750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2394]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.311298"], ["updated_at", "2016-12-09 20:22:45.311298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.312213"], ["id", 564]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2394], ["g5_updatable_hub_amenity_id", 564]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.314722"], ["updated_at", "2016-12-09 20:22:45.314722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.315660"], ["id", 565]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2394], ["g5_updatable_hub_amenity_id", 565]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2394]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.318999"], ["id", 2394]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:22:45.323827"], ["updated_at", "2016-12-09 20:22:45.323827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.325659"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.327455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2396]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.331070"], ["updated_at", "2016-12-09 20:22:45.331070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.332062"], ["id", 566]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2396], ["g5_updatable_hub_amenity_id", 566]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.334584"], ["updated_at", "2016-12-09 20:22:45.334584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.335796"], ["id", 567]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2396], ["g5_updatable_hub_amenity_id", 567]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2396]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.339308"], ["id", 2396]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:22:45.344450"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:22:45.350264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2397]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:22:45.354839"], ["updated_at", "2016-12-09 20:22:45.354839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:22:45.355883"], ["id", 568]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2397], ["g5_updatable_hub_amenity_id", 568]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:22:45.358712"], ["updated_at", "2016-12-09 20:22:45.358712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:22:45.359728"], ["id", 569]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2397], ["g5_updatable_hub_amenity_id", 569]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2397]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:22:45.362915"], ["id", 2397]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:24:39.385446"], ["updated_at", "2016-12-09 20:24:39.385446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:24:39.391952"], ["updated_at", "2016-12-09 20:24:39.391952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:24:39.398673"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:24:39.400668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2400]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:24:39.426564"], ["updated_at", "2016-12-09 20:24:39.426564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:24:39.428829"], ["id", 570]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2400], ["g5_updatable_hub_amenity_id", 570]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:24:39.437263"], ["updated_at", "2016-12-09 20:24:39.437263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:24:39.438232"], ["id", 571]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2400], ["g5_updatable_hub_amenity_id", 571]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2400]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:24:39.445924"], ["id", 2400]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:28:27.376144"], ["updated_at", "2016-12-09 20:28:27.376144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:28:27.386515"], ["updated_at", "2016-12-09 20:28:27.386515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:28:27.395449"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:28:27.398420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2403]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:28:27.423999"], ["updated_at", "2016-12-09 20:28:27.423999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:28:27.426485"], ["id", 572]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2403], ["g5_updatable_hub_amenity_id", 572]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:28:27.436154"], ["updated_at", "2016-12-09 20:28:27.436154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:28:27.437206"], ["id", 573]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2403], ["g5_updatable_hub_amenity_id", 573]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2403]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:28:27.445174"], ["id", 2403]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:28:54.172395"], ["updated_at", "2016-12-09 20:28:54.172395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:28:54.180043"], ["updated_at", "2016-12-09 20:28:54.180043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:28:54.187242"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:28:54.189162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2406]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:28:54.216357"], ["updated_at", "2016-12-09 20:28:54.216357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:28:54.218769"], ["id", 574]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2406], ["g5_updatable_hub_amenity_id", 574]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:28:54.228388"], ["updated_at", "2016-12-09 20:28:54.228388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:28:54.229635"], ["id", 575]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2406], ["g5_updatable_hub_amenity_id", 575]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2406]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:28:54.237826"], ["id", 2406]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:52.837717"], ["updated_at", "2016-12-09 20:29:52.837717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:29:52.844343"], ["updated_at", "2016-12-09 20:29:52.844343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:52.850866"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:52.852799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2409]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:52.879343"], ["updated_at", "2016-12-09 20:29:52.879343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:52.883799"], ["id", 576]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2409], ["g5_updatable_hub_amenity_id", 576]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:52.894331"], ["updated_at", "2016-12-09 20:29:52.894331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:52.895728"], ["id", 577]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2409], ["g5_updatable_hub_amenity_id", 577]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2409]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:52.904795"], ["id", 2409]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2407]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2407]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.540948"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.545652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2410]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.560983"], ["updated_at", "2016-12-09 20:29:59.560983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.563377"], ["id", 578]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2410], ["g5_updatable_hub_amenity_id", 578]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.582076"], ["updated_at", "2016-12-09 20:29:59.582076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.583460"], ["id", 579]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2410], ["g5_updatable_hub_amenity_id", 579]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2410]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.591651"], ["id", 2410]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.596059"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.597870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2411]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.601616"], ["updated_at", "2016-12-09 20:29:59.601616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.602604"], ["id", 580]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2411], ["g5_updatable_hub_amenity_id", 580]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.605080"], ["updated_at", "2016-12-09 20:29:59.605080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.606062"], ["id", 581]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2411], ["g5_updatable_hub_amenity_id", 581]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2411]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.609303"], ["id", 2411]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.615137"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.616915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2412]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.621186"], ["updated_at", "2016-12-09 20:29:59.621186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.622273"], ["id", 582]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2412], ["g5_updatable_hub_amenity_id", 582]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.624873"], ["updated_at", "2016-12-09 20:29:59.624873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.625860"], ["id", 583]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2412], ["g5_updatable_hub_amenity_id", 583]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2412]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.629502"], ["id", 2412]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.635038"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.636869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2413]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.640531"], ["updated_at", "2016-12-09 20:29:59.640531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.641468"], ["id", 584]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2413], ["g5_updatable_hub_amenity_id", 584]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.643803"], ["updated_at", "2016-12-09 20:29:59.643803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.644699"], ["id", 585]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2413], ["g5_updatable_hub_amenity_id", 585]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2413]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.648151"], ["id", 2413]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2413]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2413]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.654722"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.656561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2414]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.660086"], ["updated_at", "2016-12-09 20:29:59.660086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.661020"], ["id", 586]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2414], ["g5_updatable_hub_amenity_id", 586]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.663422"], ["updated_at", "2016-12-09 20:29:59.663422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.664302"], ["id", 587]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2414], ["g5_updatable_hub_amenity_id", 587]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2414]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.667842"], ["id", 2414]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.673637"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.675487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2415]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.679173"], ["updated_at", "2016-12-09 20:29:59.679173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.680242"], ["id", 588]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2415], ["g5_updatable_hub_amenity_id", 588]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.682748"], ["updated_at", "2016-12-09 20:29:59.682748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.683652"], ["id", 589]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2415], ["g5_updatable_hub_amenity_id", 589]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2415]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.686978"], ["id", 2415]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.691854"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.693558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2416]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.697063"], ["updated_at", "2016-12-09 20:29:59.697063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.697979"], ["id", 590]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2416], ["g5_updatable_hub_amenity_id", 590]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.700308"], ["updated_at", "2016-12-09 20:29:59.700308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.701527"], ["id", 591]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2416], ["g5_updatable_hub_amenity_id", 591]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2416]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.705025"], ["id", 2416]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.711209"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.713632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2417]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.718770"], ["updated_at", "2016-12-09 20:29:59.718770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.720916"], ["id", 592]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2417], ["g5_updatable_hub_amenity_id", 592]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.726094"], ["updated_at", "2016-12-09 20:29:59.726094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.727530"], ["id", 593]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2417], ["g5_updatable_hub_amenity_id", 593]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2417]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.731801"], ["id", 2417]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.738163"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.740376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2418]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.744906"], ["updated_at", "2016-12-09 20:29:59.744906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.746019"], ["id", 594]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2418], ["g5_updatable_hub_amenity_id", 594]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.749102"], ["updated_at", "2016-12-09 20:29:59.749102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.750272"], ["id", 595]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2418], ["g5_updatable_hub_amenity_id", 595]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2418]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.754490"], ["id", 2418]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.760022"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.761865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2419]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.766109"], ["updated_at", "2016-12-09 20:29:59.766109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.767132"], ["id", 596]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2419], ["g5_updatable_hub_amenity_id", 596]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.770718"], ["updated_at", "2016-12-09 20:29:59.770718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.771955"], ["id", 597]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2419], ["g5_updatable_hub_amenity_id", 597]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2419]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.775740"], ["id", 2419]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.781063"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.783091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2420]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.787982"], ["updated_at", "2016-12-09 20:29:59.787982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.789006"], ["id", 598]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2420], ["g5_updatable_hub_amenity_id", 598]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.791515"], ["updated_at", "2016-12-09 20:29:59.791515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.792869"], ["id", 599]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2420], ["g5_updatable_hub_amenity_id", 599]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2420]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.796343"], ["id", 2420]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.801937"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.804438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2421]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.808562"], ["updated_at", "2016-12-09 20:29:59.808562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.809662"], ["id", 600]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2421], ["g5_updatable_hub_amenity_id", 600]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.818372"], ["updated_at", "2016-12-09 20:29:59.818372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.819878"], ["id", 601]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2421], ["g5_updatable_hub_amenity_id", 601]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2421]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.826505"], ["id", 2421]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:29:59.832986"], ["updated_at", "2016-12-09 20:29:59.832986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:29:59.834956"], ["updated_at", "2016-12-09 20:29:59.834956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1105]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2422]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:29:59.840631"], ["updated_at", "2016-12-09 20:29:59.840631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.845759"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.847419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2424]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.851848"], ["updated_at", "2016-12-09 20:29:59.851848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.852831"], ["id", 602]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2424], ["g5_updatable_hub_amenity_id", 602]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.855568"], ["updated_at", "2016-12-09 20:29:59.855568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.856620"], ["id", 603]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2424], ["g5_updatable_hub_amenity_id", 603]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2424]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.860326"], ["id", 2424]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2423]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:29:59.874709"], ["updated_at", "2016-12-09 20:29:59.874709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.879950"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.881808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2426]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.886313"], ["updated_at", "2016-12-09 20:29:59.886313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.887410"], ["id", 604]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2426], ["g5_updatable_hub_amenity_id", 604]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.890154"], ["updated_at", "2016-12-09 20:29:59.890154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.891091"], ["id", 605]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2426], ["g5_updatable_hub_amenity_id", 605]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2426]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.894759"], ["id", 2426]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:29:59.897538"], ["updated_at", "2016-12-09 20:29:59.897538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:29:59.899069"], ["updated_at", "2016-12-09 20:29:59.899069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1106]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2427]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.904809"], ["updated_at", "2016-12-09 20:29:59.904809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:29:59.910205"], ["updated_at", "2016-12-09 20:29:59.910205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.913568"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.915270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2430]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.919173"], ["updated_at", "2016-12-09 20:29:59.919173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.920201"], ["id", 606]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2430], ["g5_updatable_hub_amenity_id", 606]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.922976"], ["updated_at", "2016-12-09 20:29:59.922976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.924124"], ["id", 607]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2430], ["g5_updatable_hub_amenity_id", 607]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2430]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.927888"], ["id", 2430]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2428]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2428]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:29:59.935469"], ["updated_at", "2016-12-09 20:29:59.935469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.937143"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.939045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2432]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.942385"], ["updated_at", "2016-12-09 20:29:59.942385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.943291"], ["id", 608]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2432], ["g5_updatable_hub_amenity_id", 608]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.945674"], ["updated_at", "2016-12-09 20:29:59.945674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.946562"], ["id", 609]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2432], ["g5_updatable_hub_amenity_id", 609]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2432]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.950298"], ["id", 2432]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:29:59.954590"], ["updated_at", "2016-12-09 20:29:59.954590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.956748"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.958502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2434]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.962183"], ["updated_at", "2016-12-09 20:29:59.962183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.963171"], ["id", 610]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2434], ["g5_updatable_hub_amenity_id", 610]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.966156"], ["updated_at", "2016-12-09 20:29:59.966156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.967077"], ["id", 611]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2434], ["g5_updatable_hub_amenity_id", 611]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2434]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.970844"], ["id", 2434]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:29:59.974536"], ["updated_at", "2016-12-09 20:29:59.974536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.976158"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.977836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2436]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:29:59.981165"], ["updated_at", "2016-12-09 20:29:59.981165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:29:59.982068"], ["id", 612]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2436], ["g5_updatable_hub_amenity_id", 612]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:29:59.984995"], ["updated_at", "2016-12-09 20:29:59.984995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:29:59.986072"], ["id", 613]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2436], ["g5_updatable_hub_amenity_id", 613]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2436]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:29:59.989350"], ["id", 2436]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:29:59.992739"], ["updated_at", "2016-12-09 20:29:59.992739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:29:59.995094"], ["updated_at", "2016-12-09 20:29:59.995094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:29:59.996507"], ["updated_at", "2016-12-09 20:29:59.996507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2438], ["g5_updatable_hub_amenity_id", 614]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:29:59.999135"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2438]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2438]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.007038"], ["id", 614]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2438], ["g5_updatable_hub_amenity_id", 614]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:00.010161"], ["updated_at", "2016-12-09 20:30:00.010161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.012082"], ["id", 615]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2438], ["g5_updatable_hub_amenity_id", 615]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2438]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.016592"], ["id", 2438]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:00.021176"], ["updated_at", "2016-12-09 20:30:00.021176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:30:00.023094"], ["updated_at", "2016-12-09 20:30:00.023094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2439], ["g5_updatable_hub_amenity_id", 616]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:00.026298"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2439]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2439]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:00.031936"], ["updated_at", "2016-12-09 20:30:00.031936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.032995"], ["id", 617]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2439], ["g5_updatable_hub_amenity_id", 617]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:00.040057"], ["updated_at", "2016-12-09 20:30:00.040057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.041063"], ["id", 618]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2439], ["g5_updatable_hub_amenity_id", 618]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2439]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.044311"], ["id", 2439]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:00.048884"], ["updated_at", "2016-12-09 20:30:00.048884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:30:00.050261"], ["updated_at", "2016-12-09 20:30:00.050261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2440], ["g5_updatable_hub_amenity_id", 619]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:00.052906"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2440]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2440]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:00.058988"], ["updated_at", "2016-12-09 20:30:00.058988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.059967"], ["id", 620]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2440], ["g5_updatable_hub_amenity_id", 620]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:00.062442"], ["updated_at", "2016-12-09 20:30:00.062442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.063297"], ["id", 621]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2440], ["g5_updatable_hub_amenity_id", 621]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2440]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.066274"], ["id", 2440]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2440]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:00.071869"], ["updated_at", "2016-12-09 20:30:00.071869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:30:00.073516"], ["updated_at", "2016-12-09 20:30:00.073516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2441], ["g5_updatable_hub_amenity_id", 622]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:00.076012"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2441]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2441]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:00.082194"], ["updated_at", "2016-12-09 20:30:00.082194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.083152"], ["id", 623]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2441], ["g5_updatable_hub_amenity_id", 623]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:00.086187"], ["updated_at", "2016-12-09 20:30:00.086187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.087407"], ["id", 624]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2441], ["g5_updatable_hub_amenity_id", 624]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2441]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.091637"], ["id", 2441]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:30:00.093911"], ["updated_at", "2016-12-09 20:30:00.093911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:00.095217"], ["updated_at", "2016-12-09 20:30:00.095217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1107]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2442]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:00.098082"], ["updated_at", "2016-12-09 20:30:00.098082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:30:00.099438"], ["updated_at", "2016-12-09 20:30:00.099438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2443], ["g5_updatable_hub_amenity_id", 625]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:00.102213"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2443]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2443]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:00.108078"], ["updated_at", "2016-12-09 20:30:00.108078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.109011"], ["id", 626]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2443], ["g5_updatable_hub_amenity_id", 626]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:00.111298"], ["updated_at", "2016-12-09 20:30:00.111298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.112194"], ["id", 627]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2443], ["g5_updatable_hub_amenity_id", 627]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2443]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.115415"], ["id", 2443]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:00.124210"], ["updated_at", "2016-12-09 20:30:00.124210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:30:00.125777"], ["updated_at", "2016-12-09 20:30:00.125777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2444], ["g5_updatable_hub_amenity_id", 628]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:00.128309"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2444]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2444]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:00.134913"], ["updated_at", "2016-12-09 20:30:00.134913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.136102"], ["id", 629]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2444], ["g5_updatable_hub_amenity_id", 629]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:00.138654"], ["updated_at", "2016-12-09 20:30:00.138654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.139657"], ["id", 630]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2444], ["g5_updatable_hub_amenity_id", 630]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2444]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.142727"], ["id", 2444]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:00.147509"], ["updated_at", "2016-12-09 20:30:00.147509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:30:00.148848"], ["updated_at", "2016-12-09 20:30:00.148848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2445], ["g5_updatable_hub_amenity_id", 631]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:00.151303"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2445]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2445]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:00.156911"], ["updated_at", "2016-12-09 20:30:00.156911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.157835"], ["id", 632]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2445], ["g5_updatable_hub_amenity_id", 632]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.160542"], ["id", 631]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2445], ["g5_updatable_hub_amenity_id", 631]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2445]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.164054"], ["id", 2445]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 20:30:00.166435"], ["updated_at", "2016-12-09 20:30:00.166435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:00.167879"], ["updated_at", "2016-12-09 20:30:00.167879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1108]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2446]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:00.170793"], ["updated_at", "2016-12-09 20:30:00.170793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:30:00.172502"], ["updated_at", "2016-12-09 20:30:00.172502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2447], ["g5_updatable_hub_amenity_id", 633]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:00.175156"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2447]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2447]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:00.182188"], ["updated_at", "2016-12-09 20:30:00.182188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.183207"], ["id", 634]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2447], ["g5_updatable_hub_amenity_id", 634]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:00.185946"], ["updated_at", "2016-12-09 20:30:00.185946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.186931"], ["id", 635]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2447], ["g5_updatable_hub_amenity_id", 635]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2447]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.190288"], ["id", 2447]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:00.194957"], ["updated_at", "2016-12-09 20:30:00.194957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:30:00.196387"], ["updated_at", "2016-12-09 20:30:00.196387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2448], ["g5_updatable_hub_amenity_id", 636]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:00.198812"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2448]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2448]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:00.204821"], ["updated_at", "2016-12-09 20:30:00.204821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.205913"], ["id", 637]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2448], ["g5_updatable_hub_amenity_id", 637]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:00.208281"], ["updated_at", "2016-12-09 20:30:00.208281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.209284"], ["id", 638]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2448], ["g5_updatable_hub_amenity_id", 638]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2448]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.212569"], ["id", 2448]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:00.217321"], ["updated_at", "2016-12-09 20:30:00.217321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:30:00.219000"], ["updated_at", "2016-12-09 20:30:00.219000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2449], ["g5_updatable_hub_amenity_id", 639]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:00.221671"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2449]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2449]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:00.227738"], ["updated_at", "2016-12-09 20:30:00.227738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.228761"], ["id", 640]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2449], ["g5_updatable_hub_amenity_id", 640]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:00.231375"], ["updated_at", "2016-12-09 20:30:00.231375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.232369"], ["id", 641]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2449], ["g5_updatable_hub_amenity_id", 641]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2449]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.235711"], ["id", 2449]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:00.240703"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:00.242719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2450]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:00.246597"], ["updated_at", "2016-12-09 20:30:00.246597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.247606"], ["id", 642]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2450], ["g5_updatable_hub_amenity_id", 642]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:00.249989"], ["updated_at", "2016-12-09 20:30:00.249989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.251200"], ["id", 643]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2450], ["g5_updatable_hub_amenity_id", 643]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2450]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.254063"], ["id", 2450]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:00.265921"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:00.268001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2451]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:00.272379"], ["updated_at", "2016-12-09 20:30:00.272379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:00.273632"], ["id", 644]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2451], ["g5_updatable_hub_amenity_id", 644]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:00.276108"], ["updated_at", "2016-12-09 20:30:00.276108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:00.277006"], ["id", 645]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2451], ["g5_updatable_hub_amenity_id", 645]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2451]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:00.279971"], ["id", 2451]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.299116"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.303104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2452]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.320465"], ["updated_at", "2016-12-09 20:30:36.320465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.323204"], ["id", 646]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2452], ["g5_updatable_hub_amenity_id", 646]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.341582"], ["updated_at", "2016-12-09 20:30:36.341582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.342678"], ["id", 647]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2452], ["g5_updatable_hub_amenity_id", 647]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2452]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.351322"], ["id", 2452]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:30:36.358649"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:30:36.361140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.367011"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.368815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2454]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.372777"], ["updated_at", "2016-12-09 20:30:36.372777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.375107"], ["id", 648]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2454], ["g5_updatable_hub_amenity_id", 648]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.378304"], ["updated_at", "2016-12-09 20:30:36.378304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.379344"], ["id", 649]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2454], ["g5_updatable_hub_amenity_id", 649]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2454]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.382915"], ["id", 2454]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2453]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:30:36.394038"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:30:36.396475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.401817"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.403646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2456]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.407644"], ["updated_at", "2016-12-09 20:30:36.407644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.408719"], ["id", 650]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2456], ["g5_updatable_hub_amenity_id", 650]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.411438"], ["updated_at", "2016-12-09 20:30:36.411438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.412575"], ["id", 651]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2456], ["g5_updatable_hub_amenity_id", 651]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2456]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.416579"], ["id", 2456]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:30:36.422397"], ["updated_at", "2016-12-09 20:30:36.422397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:36.424163"], ["updated_at", "2016-12-09 20:30:36.424163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1109]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2457]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:36.428063"], ["updated_at", "2016-12-09 20:30:36.428063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.430635"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.432814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2459]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.437012"], ["updated_at", "2016-12-09 20:30:36.437012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.438261"], ["id", 652]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2459], ["g5_updatable_hub_amenity_id", 652]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.441943"], ["updated_at", "2016-12-09 20:30:36.441943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.443367"], ["id", 653]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2459], ["g5_updatable_hub_amenity_id", 653]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2459]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.447299"], ["id", 2459]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:36.451328"], ["updated_at", "2016-12-09 20:30:36.451328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:36.454036"], ["updated_at", "2016-12-09 20:30:36.454036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.455850"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.457676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2462]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.461601"], ["updated_at", "2016-12-09 20:30:36.461601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.462804"], ["id", 654]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2462], ["g5_updatable_hub_amenity_id", 654]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.466134"], ["updated_at", "2016-12-09 20:30:36.466134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.467375"], ["id", 655]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2462], ["g5_updatable_hub_amenity_id", 655]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2462]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.471156"], ["id", 2462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.475310"], ["updated_at", "2016-12-09 20:30:36.475310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:30:36.477591"], ["updated_at", "2016-12-09 20:30:36.477591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2463], ["g5_updatable_hub_amenity_id", 656]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.481206"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2463]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2463]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.488686"], ["id", 656]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2463], ["g5_updatable_hub_amenity_id", 656]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.491232"], ["updated_at", "2016-12-09 20:30:36.491232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.492187"], ["id", 657]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2463], ["g5_updatable_hub_amenity_id", 657]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2463]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.495736"], ["id", 2463]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.500262"], ["updated_at", "2016-12-09 20:30:36.500262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:30:36.501991"], ["updated_at", "2016-12-09 20:30:36.501991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2464], ["g5_updatable_hub_amenity_id", 658]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.504833"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2464]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2464]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.511044"], ["updated_at", "2016-12-09 20:30:36.511044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.512186"], ["id", 659]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2464], ["g5_updatable_hub_amenity_id", 659]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.515110"], ["updated_at", "2016-12-09 20:30:36.515110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.516449"], ["id", 660]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2464], ["g5_updatable_hub_amenity_id", 660]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2464]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.520338"], ["id", 2464]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.525378"], ["updated_at", "2016-12-09 20:30:36.525378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:30:36.527035"], ["updated_at", "2016-12-09 20:30:36.527035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2465], ["g5_updatable_hub_amenity_id", 661]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.529843"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2465]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2465]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.536786"], ["updated_at", "2016-12-09 20:30:36.536786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.538081"], ["id", 662]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2465], ["g5_updatable_hub_amenity_id", 662]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.541011"], ["updated_at", "2016-12-09 20:30:36.541011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.542097"], ["id", 663]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2465], ["g5_updatable_hub_amenity_id", 663]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2465]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.545603"], ["id", 2465]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2465]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.552447"], ["updated_at", "2016-12-09 20:30:36.552447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:30:36.554104"], ["updated_at", "2016-12-09 20:30:36.554104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2466], ["g5_updatable_hub_amenity_id", 664]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.557073"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2466]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2466]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.564149"], ["updated_at", "2016-12-09 20:30:36.564149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.565632"], ["id", 665]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2466], ["g5_updatable_hub_amenity_id", 665]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.568784"], ["updated_at", "2016-12-09 20:30:36.568784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.569944"], ["id", 666]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2466], ["g5_updatable_hub_amenity_id", 666]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2466]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.573625"], ["id", 2466]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.583995"], ["updated_at", "2016-12-09 20:30:36.583995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:30:36.586022"], ["updated_at", "2016-12-09 20:30:36.586022"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2467], ["g5_updatable_hub_amenity_id", 667]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.589310"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2467]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2467]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.595771"], ["updated_at", "2016-12-09 20:30:36.595771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.596869"], ["id", 668]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2467], ["g5_updatable_hub_amenity_id", 668]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.599778"], ["updated_at", "2016-12-09 20:30:36.599778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.600854"], ["id", 669]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2467], ["g5_updatable_hub_amenity_id", 669]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2467]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.604405"], ["id", 2467]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:30:36.606837"], ["updated_at", "2016-12-09 20:30:36.606837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:36.608258"], ["updated_at", "2016-12-09 20:30:36.608258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1110]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2468]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.611353"], ["updated_at", "2016-12-09 20:30:36.611353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:30:36.613068"], ["updated_at", "2016-12-09 20:30:36.613068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2469], ["g5_updatable_hub_amenity_id", 670]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.616301"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2469]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2469]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.623811"], ["updated_at", "2016-12-09 20:30:36.623811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.624878"], ["id", 671]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2469], ["g5_updatable_hub_amenity_id", 671]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.627277"], ["updated_at", "2016-12-09 20:30:36.627277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.628337"], ["id", 672]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2469], ["g5_updatable_hub_amenity_id", 672]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2469]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.631600"], ["id", 2469]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.636850"], ["updated_at", "2016-12-09 20:30:36.636850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:30:36.638462"], ["updated_at", "2016-12-09 20:30:36.638462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2470], ["g5_updatable_hub_amenity_id", 673]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.641151"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2470]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2470]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.646988"], ["updated_at", "2016-12-09 20:30:36.646988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.648060"], ["id", 674]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2470], ["g5_updatable_hub_amenity_id", 674]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.651276"], ["id", 673]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2470], ["g5_updatable_hub_amenity_id", 673]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2470]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.654835"], ["id", 2470]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.663496"], ["updated_at", "2016-12-09 20:30:36.663496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:30:36.665462"], ["updated_at", "2016-12-09 20:30:36.665462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2471], ["g5_updatable_hub_amenity_id", 675]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.668937"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2471]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2471]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.675514"], ["updated_at", "2016-12-09 20:30:36.675514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.676660"], ["id", 676]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2471], ["g5_updatable_hub_amenity_id", 676]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.679362"], ["updated_at", "2016-12-09 20:30:36.679362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.680361"], ["id", 677]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2471], ["g5_updatable_hub_amenity_id", 677]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2471]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.683754"], ["id", 2471]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.688909"], ["updated_at", "2016-12-09 20:30:36.688909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:30:36.690508"], ["updated_at", "2016-12-09 20:30:36.690508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2472], ["g5_updatable_hub_amenity_id", 678]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.693025"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2472]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2472]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.699240"], ["updated_at", "2016-12-09 20:30:36.699240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.700402"], ["id", 679]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2472], ["g5_updatable_hub_amenity_id", 679]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.703119"], ["updated_at", "2016-12-09 20:30:36.703119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.704112"], ["id", 680]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2472], ["g5_updatable_hub_amenity_id", 680]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2472]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.707523"], ["id", 2472]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:30:36.710353"], ["updated_at", "2016-12-09 20:30:36.710353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:36.711762"], ["updated_at", "2016-12-09 20:30:36.711762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1111]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2473]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.715277"], ["updated_at", "2016-12-09 20:30:36.715277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:30:36.717266"], ["updated_at", "2016-12-09 20:30:36.717266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2474], ["g5_updatable_hub_amenity_id", 681]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.720392"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2474]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2474]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.726317"], ["updated_at", "2016-12-09 20:30:36.726317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.727269"], ["id", 682]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2474], ["g5_updatable_hub_amenity_id", 682]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.729757"], ["updated_at", "2016-12-09 20:30:36.729757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.730690"], ["id", 683]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2474], ["g5_updatable_hub_amenity_id", 683]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2474]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.734372"], ["id", 2474]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.741095"], ["updated_at", "2016-12-09 20:30:36.741095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:30:36.746020"], ["updated_at", "2016-12-09 20:30:36.746020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.749884"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.751775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2477]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.755766"], ["updated_at", "2016-12-09 20:30:36.755766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.756887"], ["id", 684]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2477], ["g5_updatable_hub_amenity_id", 684]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.759737"], ["updated_at", "2016-12-09 20:30:36.759737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.760798"], ["id", 685]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2477], ["g5_updatable_hub_amenity_id", 685]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2477]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.765190"], ["id", 2477]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2475]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2475]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.774990"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.776985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2478]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.780902"], ["updated_at", "2016-12-09 20:30:36.780902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.782115"], ["id", 686]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2478], ["g5_updatable_hub_amenity_id", 686]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.785599"], ["updated_at", "2016-12-09 20:30:36.785599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.786736"], ["id", 687]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2478], ["g5_updatable_hub_amenity_id", 687]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2478]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.790772"], ["id", 2478]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (8.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.795207"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.796961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2479]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.809190"], ["updated_at", "2016-12-09 20:30:36.809190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.810203"], ["id", 688]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2479], ["g5_updatable_hub_amenity_id", 688]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.812729"], ["updated_at", "2016-12-09 20:30:36.812729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.813659"], ["id", 689]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2479], ["g5_updatable_hub_amenity_id", 689]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2479]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.822262"], ["id", 2479]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2479]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2479]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.829278"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.831575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2480]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.835972"], ["updated_at", "2016-12-09 20:30:36.835972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.837098"], ["id", 690]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2480], ["g5_updatable_hub_amenity_id", 690]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.839809"], ["updated_at", "2016-12-09 20:30:36.839809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.840848"], ["id", 691]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2480], ["g5_updatable_hub_amenity_id", 691]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2480]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.844218"], ["id", 2480]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.850551"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.852520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2481]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.856680"], ["updated_at", "2016-12-09 20:30:36.856680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.857813"], ["id", 692]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2481], ["g5_updatable_hub_amenity_id", 692]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.860509"], ["updated_at", "2016-12-09 20:30:36.860509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.861556"], ["id", 693]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2481], ["g5_updatable_hub_amenity_id", 693]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2481]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.865427"], ["id", 2481]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.870944"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.872668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2482]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.876629"], ["updated_at", "2016-12-09 20:30:36.876629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.877694"], ["id", 694]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2482], ["g5_updatable_hub_amenity_id", 694]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.880620"], ["updated_at", "2016-12-09 20:30:36.880620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.881707"], ["id", 695]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2482], ["g5_updatable_hub_amenity_id", 695]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2482]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.885478"], ["id", 2482]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (8.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.890578"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.892402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2483]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.904850"], ["updated_at", "2016-12-09 20:30:36.904850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.905959"], ["id", 696]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2483], ["g5_updatable_hub_amenity_id", 696]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.909110"], ["updated_at", "2016-12-09 20:30:36.909110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.910440"], ["id", 697]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2483], ["g5_updatable_hub_amenity_id", 697]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2483]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.915593"], ["id", 2483]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.921454"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.923197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2484]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.926797"], ["updated_at", "2016-12-09 20:30:36.926797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.927744"], ["id", 698]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2484], ["g5_updatable_hub_amenity_id", 698]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.930305"], ["updated_at", "2016-12-09 20:30:36.930305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.931324"], ["id", 699]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2484], ["g5_updatable_hub_amenity_id", 699]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2484]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.935665"], ["id", 2484]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.941085"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.942874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2485]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.946739"], ["updated_at", "2016-12-09 20:30:36.946739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.947810"], ["id", 700]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2485], ["g5_updatable_hub_amenity_id", 700]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.950817"], ["updated_at", "2016-12-09 20:30:36.950817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.951927"], ["id", 701]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2485], ["g5_updatable_hub_amenity_id", 701]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2485]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.955151"], ["id", 2485]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.959594"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.961517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2486]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.965916"], ["updated_at", "2016-12-09 20:30:36.965916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.966967"], ["id", 702]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2486], ["g5_updatable_hub_amenity_id", 702]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.969722"], ["updated_at", "2016-12-09 20:30:36.969722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.970627"], ["id", 703]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2486], ["g5_updatable_hub_amenity_id", 703]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2486]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.973703"], ["id", 2486]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:36.978532"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:36.980222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2487]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:36.986428"], ["updated_at", "2016-12-09 20:30:36.986428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:36.987665"], ["id", 704]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2487], ["g5_updatable_hub_amenity_id", 704]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:36.990608"], ["updated_at", "2016-12-09 20:30:36.990608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:36.991574"], ["id", 705]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2487], ["g5_updatable_hub_amenity_id", 705]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2487]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:36.994631"], ["id", 2487]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:30:36.997017"], ["updated_at", "2016-12-09 20:30:36.997017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:36.998388"], ["updated_at", "2016-12-09 20:30:36.998388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1112]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2488]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:37.001555"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:37.003233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2489]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:37.006756"], ["updated_at", "2016-12-09 20:30:37.006756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:37.007692"], ["id", 706]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2489], ["g5_updatable_hub_amenity_id", 706]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:37.010017"], ["updated_at", "2016-12-09 20:30:37.010017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:37.010920"], ["id", 707]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2489], ["g5_updatable_hub_amenity_id", 707]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2489]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:37.014297"], ["id", 2489]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:37.019704"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:37.021404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2490]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:37.025184"], ["updated_at", "2016-12-09 20:30:37.025184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:37.026100"], ["id", 708]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2490], ["g5_updatable_hub_amenity_id", 708]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:37.028509"], ["updated_at", "2016-12-09 20:30:37.028509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:37.029486"], ["id", 709]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2490], ["g5_updatable_hub_amenity_id", 709]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2490]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:37.032814"], ["id", 2490]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:30:37.037923"], ["updated_at", "2016-12-09 20:30:37.037923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:37.039525"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:37.041197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2492]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:37.044599"], ["updated_at", "2016-12-09 20:30:37.044599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:37.045659"], ["id", 710]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2492], ["g5_updatable_hub_amenity_id", 710]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:37.047976"], ["updated_at", "2016-12-09 20:30:37.047976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:37.049123"], ["id", 711]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2492], ["g5_updatable_hub_amenity_id", 711]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2492]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:37.055410"], ["id", 2492]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:37.059979"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:37.061709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2493]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:37.065787"], ["updated_at", "2016-12-09 20:30:37.065787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:37.066853"], ["id", 712]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2493], ["g5_updatable_hub_amenity_id", 712]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:37.069578"], ["updated_at", "2016-12-09 20:30:37.069578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:37.070516"], ["id", 713]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2493], ["g5_updatable_hub_amenity_id", 713]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2493]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:37.073675"], ["id", 2493]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.317961"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.321673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2494]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.337490"], ["updated_at", "2016-12-09 20:30:54.337490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.340538"], ["id", 714]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2494], ["g5_updatable_hub_amenity_id", 714]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.358168"], ["updated_at", "2016-12-09 20:30:54.358168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.359259"], ["id", 715]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2494], ["g5_updatable_hub_amenity_id", 715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2494]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.367407"], ["id", 2494]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:54.375521"], ["updated_at", "2016-12-09 20:30:54.375521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.378334"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.380077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2496]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.384013"], ["updated_at", "2016-12-09 20:30:54.384013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.384992"], ["id", 716]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2496], ["g5_updatable_hub_amenity_id", 716]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.387681"], ["updated_at", "2016-12-09 20:30:54.387681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.388747"], ["id", 717]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2496], ["g5_updatable_hub_amenity_id", 717]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2496]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.392477"], ["id", 2496]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:54.396475"], ["updated_at", "2016-12-09 20:30:54.396475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.398466"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.400292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2498]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.404265"], ["updated_at", "2016-12-09 20:30:54.404265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.405396"], ["id", 718]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2498], ["g5_updatable_hub_amenity_id", 718]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.408255"], ["updated_at", "2016-12-09 20:30:54.408255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.409383"], ["id", 719]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2498], ["g5_updatable_hub_amenity_id", 719]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2498]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.413259"], ["id", 2498]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:54.424196"], ["updated_at", "2016-12-09 20:30:54.424196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.427880"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.429834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2500]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.434201"], ["updated_at", "2016-12-09 20:30:54.434201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.435588"], ["id", 720]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2500], ["g5_updatable_hub_amenity_id", 720]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.438902"], ["updated_at", "2016-12-09 20:30:54.438902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.440390"], ["id", 721]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2500], ["g5_updatable_hub_amenity_id", 721]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2500]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.445196"], ["id", 2500]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.449857"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.451768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2501]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.455607"], ["updated_at", "2016-12-09 20:30:54.455607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.456887"], ["id", 722]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2501], ["g5_updatable_hub_amenity_id", 722]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.460008"], ["updated_at", "2016-12-09 20:30:54.460008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.461099"], ["id", 723]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2501], ["g5_updatable_hub_amenity_id", 723]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2501]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.464860"], ["id", 2501]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.471457"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.473236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2502]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.477417"], ["updated_at", "2016-12-09 20:30:54.477417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.478631"], ["id", 724]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2502], ["g5_updatable_hub_amenity_id", 724]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.481651"], ["updated_at", "2016-12-09 20:30:54.481651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.482743"], ["id", 725]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2502], ["g5_updatable_hub_amenity_id", 725]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2502]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.486462"], ["id", 2502]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.492035"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.494172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2503]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.498313"], ["updated_at", "2016-12-09 20:30:54.498313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.499322"], ["id", 726]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2503], ["g5_updatable_hub_amenity_id", 726]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.501914"], ["updated_at", "2016-12-09 20:30:54.501914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.502884"], ["id", 727]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2503], ["g5_updatable_hub_amenity_id", 727]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2503]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.506281"], ["id", 2503]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2503]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2503]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.513311"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.515278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2504]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.519280"], ["updated_at", "2016-12-09 20:30:54.519280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.520382"], ["id", 728]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2504], ["g5_updatable_hub_amenity_id", 728]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.523137"], ["updated_at", "2016-12-09 20:30:54.523137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.524203"], ["id", 729]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2504], ["g5_updatable_hub_amenity_id", 729]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2504]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.527944"], ["id", 2504]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.533251"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.535426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2505]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.540005"], ["updated_at", "2016-12-09 20:30:54.540005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.541173"], ["id", 730]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2505], ["g5_updatable_hub_amenity_id", 730]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.544413"], ["updated_at", "2016-12-09 20:30:54.544413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.545430"], ["id", 731]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2505], ["g5_updatable_hub_amenity_id", 731]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2505]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.549287"], ["id", 2505]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.554222"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.556044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2506]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.560135"], ["updated_at", "2016-12-09 20:30:54.560135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.561291"], ["id", 732]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2506], ["g5_updatable_hub_amenity_id", 732]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.564700"], ["updated_at", "2016-12-09 20:30:54.564700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.565762"], ["id", 733]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2506], ["g5_updatable_hub_amenity_id", 733]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2506]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.569170"], ["id", 2506]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.573960"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.576109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2507]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.580555"], ["updated_at", "2016-12-09 20:30:54.580555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.581740"], ["id", 734]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2507], ["g5_updatable_hub_amenity_id", 734]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.584481"], ["updated_at", "2016-12-09 20:30:54.584481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.585590"], ["id", 735]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2507], ["g5_updatable_hub_amenity_id", 735]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2507]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.589606"], ["id", 2507]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.599791"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.602182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2508]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.606220"], ["updated_at", "2016-12-09 20:30:54.606220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.607322"], ["id", 736]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2508], ["g5_updatable_hub_amenity_id", 736]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.610233"], ["updated_at", "2016-12-09 20:30:54.610233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.611328"], ["id", 737]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2508], ["g5_updatable_hub_amenity_id", 737]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2508]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.615006"], ["id", 2508]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.620196"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.622425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2509]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.627132"], ["updated_at", "2016-12-09 20:30:54.627132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.628180"], ["id", 738]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2509], ["g5_updatable_hub_amenity_id", 738]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.630684"], ["updated_at", "2016-12-09 20:30:54.630684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.631797"], ["id", 739]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2509], ["g5_updatable_hub_amenity_id", 739]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2509]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.635152"], ["id", 2509]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:30:54.641169"], ["updated_at", "2016-12-09 20:30:54.641169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:54.643106"], ["updated_at", "2016-12-09 20:30:54.643106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1113]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2510]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (9.8ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.647103"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.649179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2511]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.663031"], ["updated_at", "2016-12-09 20:30:54.663031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.664315"], ["id", 740]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2511], ["g5_updatable_hub_amenity_id", 740]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.667180"], ["updated_at", "2016-12-09 20:30:54.667180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.668183"], ["id", 741]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2511], ["g5_updatable_hub_amenity_id", 741]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2511]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.671624"], ["id", 2511]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.676771"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.678639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2512]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.682660"], ["updated_at", "2016-12-09 20:30:54.682660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.683779"], ["id", 742]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2512], ["g5_updatable_hub_amenity_id", 742]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.686581"], ["updated_at", "2016-12-09 20:30:54.686581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.687652"], ["id", 743]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2512], ["g5_updatable_hub_amenity_id", 743]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2512]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.691050"], ["id", 2512]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:30:54.696075"], ["updated_at", "2016-12-09 20:30:54.696075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.698131"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.699888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2514]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.703640"], ["updated_at", "2016-12-09 20:30:54.703640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.704840"], ["id", 744]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2514], ["g5_updatable_hub_amenity_id", 744]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.707628"], ["updated_at", "2016-12-09 20:30:54.707628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.708704"], ["id", 745]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2514], ["g5_updatable_hub_amenity_id", 745]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2514]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.712224"], ["id", 2514]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.718529"], ["updated_at", "2016-12-09 20:30:54.718529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:30:54.723501"], ["updated_at", "2016-12-09 20:30:54.723501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.727255"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.729030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2517]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.733139"], ["updated_at", "2016-12-09 20:30:54.733139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.734207"], ["id", 746]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2517], ["g5_updatable_hub_amenity_id", 746]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.737116"], ["updated_at", "2016-12-09 20:30:54.737116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.738280"], ["id", 747]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2517], ["g5_updatable_hub_amenity_id", 747]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2517]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.742116"], ["id", 2517]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2515]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2515]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.750642"], ["updated_at", "2016-12-09 20:30:54.750642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:30:54.752351"], ["updated_at", "2016-12-09 20:30:54.752351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2518], ["g5_updatable_hub_amenity_id", 748]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.755151"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2518]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2518]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.762239"], ["id", 748]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2518], ["g5_updatable_hub_amenity_id", 748]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.765484"], ["updated_at", "2016-12-09 20:30:54.765484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.766541"], ["id", 749]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2518], ["g5_updatable_hub_amenity_id", 749]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2518]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.769998"], ["id", 2518]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.774111"], ["updated_at", "2016-12-09 20:30:54.774111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:30:54.775801"], ["updated_at", "2016-12-09 20:30:54.775801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2519], ["g5_updatable_hub_amenity_id", 750]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.778845"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2519]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2519]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.785334"], ["updated_at", "2016-12-09 20:30:54.785334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.786583"], ["id", 751]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2519], ["g5_updatable_hub_amenity_id", 751]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.789611"], ["updated_at", "2016-12-09 20:30:54.789611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.790658"], ["id", 752]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2519], ["g5_updatable_hub_amenity_id", 752]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2519]]  (0.1ms) SAVEPOINT active_record_1 SQL (8.5ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.794528"], ["id", 2519]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2519]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.809381"], ["updated_at", "2016-12-09 20:30:54.809381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:30:54.811167"], ["updated_at", "2016-12-09 20:30:54.811167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2520], ["g5_updatable_hub_amenity_id", 753]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.814234"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2520]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2520]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.820905"], ["updated_at", "2016-12-09 20:30:54.820905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.822056"], ["id", 754]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2520], ["g5_updatable_hub_amenity_id", 754]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.824831"], ["updated_at", "2016-12-09 20:30:54.824831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.826045"], ["id", 755]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2520], ["g5_updatable_hub_amenity_id", 755]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2520]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.830124"], ["id", 2520]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.835129"], ["updated_at", "2016-12-09 20:30:54.835129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:30:54.836939"], ["updated_at", "2016-12-09 20:30:54.836939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2521], ["g5_updatable_hub_amenity_id", 756]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.839957"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2521]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2521]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.851650"], ["updated_at", "2016-12-09 20:30:54.851650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.852967"], ["id", 757]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2521], ["g5_updatable_hub_amenity_id", 757]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.855763"], ["updated_at", "2016-12-09 20:30:54.855763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.856745"], ["id", 758]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2521], ["g5_updatable_hub_amenity_id", 758]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2521]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.860185"], ["id", 2521]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.865710"], ["updated_at", "2016-12-09 20:30:54.865710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:30:54.867421"], ["updated_at", "2016-12-09 20:30:54.867421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2522], ["g5_updatable_hub_amenity_id", 759]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.870166"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2522]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2522]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.876697"], ["updated_at", "2016-12-09 20:30:54.876697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.877834"], ["id", 760]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2522], ["g5_updatable_hub_amenity_id", 760]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.880586"], ["updated_at", "2016-12-09 20:30:54.880586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.881782"], ["id", 761]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2522], ["g5_updatable_hub_amenity_id", 761]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2522]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.885447"], ["id", 2522]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.890577"], ["updated_at", "2016-12-09 20:30:54.890577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:30:54.892245"], ["updated_at", "2016-12-09 20:30:54.892245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2523], ["g5_updatable_hub_amenity_id", 762]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.895415"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2523]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2523]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.902159"], ["updated_at", "2016-12-09 20:30:54.902159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.903135"], ["id", 763]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2523], ["g5_updatable_hub_amenity_id", 763]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.905647"], ["updated_at", "2016-12-09 20:30:54.905647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.906831"], ["id", 764]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2523], ["g5_updatable_hub_amenity_id", 764]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2523]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.910526"], ["id", 2523]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.919754"], ["updated_at", "2016-12-09 20:30:54.919754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:30:54.921421"], ["updated_at", "2016-12-09 20:30:54.921421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2524], ["g5_updatable_hub_amenity_id", 765]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.924364"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2524]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2524]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.930737"], ["updated_at", "2016-12-09 20:30:54.930737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.931903"], ["id", 766]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2524], ["g5_updatable_hub_amenity_id", 766]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.934859"], ["id", 765]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2524], ["g5_updatable_hub_amenity_id", 765]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2524]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.938792"], ["id", 2524]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.944573"], ["updated_at", "2016-12-09 20:30:54.944573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:30:54.946216"], ["updated_at", "2016-12-09 20:30:54.946216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2525], ["g5_updatable_hub_amenity_id", 767]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.948950"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2525]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2525]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.954627"], ["updated_at", "2016-12-09 20:30:54.954627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.955715"], ["id", 768]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2525], ["g5_updatable_hub_amenity_id", 768]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.958240"], ["updated_at", "2016-12-09 20:30:54.958240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.959325"], ["id", 769]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2525], ["g5_updatable_hub_amenity_id", 769]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2525]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.963030"], ["id", 2525]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.968335"], ["updated_at", "2016-12-09 20:30:54.968335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:30:54.969954"], ["updated_at", "2016-12-09 20:30:54.969954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2526], ["g5_updatable_hub_amenity_id", 770]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:54.972830"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2526]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2526]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:54.978949"], ["updated_at", "2016-12-09 20:30:54.978949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:54.980078"], ["id", 771]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2526], ["g5_updatable_hub_amenity_id", 771]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:54.983726"], ["updated_at", "2016-12-09 20:30:54.983726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:54.985259"], ["id", 772]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2526], ["g5_updatable_hub_amenity_id", 772]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2526]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:54.989329"], ["id", 2526]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:30:54.991933"], ["updated_at", "2016-12-09 20:30:54.991933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:54.993711"], ["updated_at", "2016-12-09 20:30:54.993711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1114]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2527]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:54.997460"], ["updated_at", "2016-12-09 20:30:54.997460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:30:54.999157"], ["updated_at", "2016-12-09 20:30:54.999157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2528], ["g5_updatable_hub_amenity_id", 773]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:55.001769"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2528]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2528]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:55.007772"], ["updated_at", "2016-12-09 20:30:55.007772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:55.008896"], ["id", 774]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2528], ["g5_updatable_hub_amenity_id", 774]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:55.011780"], ["updated_at", "2016-12-09 20:30:55.011780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:55.012798"], ["id", 775]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2528], ["g5_updatable_hub_amenity_id", 775]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2528]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:55.016600"], ["id", 2528]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:30:55.019131"], ["updated_at", "2016-12-09 20:30:55.019131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:55.020514"], ["updated_at", "2016-12-09 20:30:55.020514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1115]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2529]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:30:55.023023"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:30:55.025136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:55.032645"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2530]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2530]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:55.039551"], ["updated_at", "2016-12-09 20:30:55.039551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:55.040660"], ["id", 776]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2530], ["g5_updatable_hub_amenity_id", 776]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:55.043653"], ["updated_at", "2016-12-09 20:30:55.043653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:55.044794"], ["id", 777]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2530], ["g5_updatable_hub_amenity_id", 777]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2530]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:55.048780"], ["id", 2530]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2530]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:30:55.053120"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:30:55.055419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:55.062542"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2531]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2531]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:55.071439"], ["updated_at", "2016-12-09 20:30:55.071439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:55.072374"], ["id", 778]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2531], ["g5_updatable_hub_amenity_id", 778]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:55.074626"], ["updated_at", "2016-12-09 20:30:55.074626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:55.075733"], ["id", 779]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2531], ["g5_updatable_hub_amenity_id", 779]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2531]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:55.078918"], ["id", 2531]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:30:55.081457"], ["updated_at", "2016-12-09 20:30:55.081457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:30:55.082677"], ["updated_at", "2016-12-09 20:30:55.082677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1116]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2532]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:30:55.086955"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:30:55.088820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2533]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:30:55.092347"], ["updated_at", "2016-12-09 20:30:55.092347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:30:55.093520"], ["id", 780]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2533], ["g5_updatable_hub_amenity_id", 780]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:30:55.096055"], ["updated_at", "2016-12-09 20:30:55.096055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:30:55.096975"], ["id", 781]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2533], ["g5_updatable_hub_amenity_id", 781]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2533]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:30:55.100233"], ["id", 2533]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:31:03.636953"], ["updated_at", "2016-12-09 20:31:03.636953"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:03.645224"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:03.648736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2535]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:03.664267"], ["updated_at", "2016-12-09 20:31:03.664267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:03.666508"], ["id", 782]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2535], ["g5_updatable_hub_amenity_id", 782]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:03.683782"], ["updated_at", "2016-12-09 20:31:03.683782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:03.684862"], ["id", 783]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2535], ["g5_updatable_hub_amenity_id", 783]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2535]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:03.692413"], ["id", 2535]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:31:21.610755"], ["updated_at", "2016-12-09 20:31:21.610755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:21.617927"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:21.620843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2537]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:21.638821"], ["updated_at", "2016-12-09 20:31:21.638821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:21.641142"], ["id", 784]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2537], ["g5_updatable_hub_amenity_id", 784]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:21.657863"], ["updated_at", "2016-12-09 20:31:21.657863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:21.658980"], ["id", 785]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2537], ["g5_updatable_hub_amenity_id", 785]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2537]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:21.666452"], ["id", 2537]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:48.804277"], ["updated_at", "2016-12-09 20:31:48.804277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:48.812024"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:48.814539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2539]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (8.5ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:48.831008"], ["updated_at", "2016-12-09 20:31:48.831008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:48.842121"], ["id", 786]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2539], ["g5_updatable_hub_amenity_id", 786]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:48.862789"], ["updated_at", "2016-12-09 20:31:48.862789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:48.863958"], ["id", 787]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2539], ["g5_updatable_hub_amenity_id", 787]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2539]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:48.872316"], ["id", 2539]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2538]] SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2538]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.131262"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.135038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2540]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.151981"], ["updated_at", "2016-12-09 20:31:55.151981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.154066"], ["id", 788]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2540], ["g5_updatable_hub_amenity_id", 788]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.172361"], ["updated_at", "2016-12-09 20:31:55.172361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.173432"], ["id", 789]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2540], ["g5_updatable_hub_amenity_id", 789]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2540]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.181550"], ["id", 2540]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.187654"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.189428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2541]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.193897"], ["updated_at", "2016-12-09 20:31:55.193897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.194944"], ["id", 790]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2541], ["g5_updatable_hub_amenity_id", 790]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.197485"], ["updated_at", "2016-12-09 20:31:55.197485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.198433"], ["id", 791]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2541], ["g5_updatable_hub_amenity_id", 791]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2541]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.201801"], ["id", 2541]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:31:55.206359"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:31:55.208791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.216267"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2542]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2542]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.222243"], ["updated_at", "2016-12-09 20:31:55.222243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.223297"], ["id", 792]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2542], ["g5_updatable_hub_amenity_id", 792]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.226122"], ["updated_at", "2016-12-09 20:31:55.226122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.227123"], ["id", 793]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2542], ["g5_updatable_hub_amenity_id", 793]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2542]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.230504"], ["id", 2542]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2542]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:31:55.234834"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:31:55.237046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.244440"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2543]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2543]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.250876"], ["updated_at", "2016-12-09 20:31:55.250876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.251877"], ["id", 794]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (8.5ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2543], ["g5_updatable_hub_amenity_id", 794]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.263258"], ["updated_at", "2016-12-09 20:31:55.263258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.264310"], ["id", 795]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2543], ["g5_updatable_hub_amenity_id", 795]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2543]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.267803"], ["id", 2543]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:31:55.273491"], ["updated_at", "2016-12-09 20:31:55.273491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:31:55.275098"], ["updated_at", "2016-12-09 20:31:55.275098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1117]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2544]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.281669"], ["updated_at", "2016-12-09 20:31:55.281669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:31:55.286719"], ["updated_at", "2016-12-09 20:31:55.286719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.290376"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.292266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2547]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.296850"], ["updated_at", "2016-12-09 20:31:55.296850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.297866"], ["id", 796]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2547], ["g5_updatable_hub_amenity_id", 796]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.300358"], ["updated_at", "2016-12-09 20:31:55.300358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.301426"], ["id", 797]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2547], ["g5_updatable_hub_amenity_id", 797]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2547]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.304852"], ["id", 2547]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2545]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2545]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:31:55.313721"], ["updated_at", "2016-12-09 20:31:55.313721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:31:55.316088"], ["updated_at", "2016-12-09 20:31:55.316088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.317636"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.319567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2550]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.323678"], ["updated_at", "2016-12-09 20:31:55.323678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.324724"], ["id", 798]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2550], ["g5_updatable_hub_amenity_id", 798]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.327475"], ["updated_at", "2016-12-09 20:31:55.327475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.328410"], ["id", 799]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2550], ["g5_updatable_hub_amenity_id", 799]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2550]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.331897"], ["id", 2550]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:31:55.343180"], ["updated_at", "2016-12-09 20:31:55.343180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.345312"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.347168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2552]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.351050"], ["updated_at", "2016-12-09 20:31:55.351050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.352014"], ["id", 800]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2552], ["g5_updatable_hub_amenity_id", 800]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.354597"], ["updated_at", "2016-12-09 20:31:55.354597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.355677"], ["id", 801]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2552], ["g5_updatable_hub_amenity_id", 801]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2552]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.358881"], ["id", 2552]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.362921"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.364978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2553]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.369116"], ["updated_at", "2016-12-09 20:31:55.369116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.370125"], ["id", 802]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2553], ["g5_updatable_hub_amenity_id", 802]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.372770"], ["updated_at", "2016-12-09 20:31:55.372770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.373808"], ["id", 803]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2553], ["g5_updatable_hub_amenity_id", 803]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2553]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.377249"], ["id", 2553]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.380891"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.386716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2554]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.391449"], ["updated_at", "2016-12-09 20:31:55.391449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.392892"], ["id", 804]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2554], ["g5_updatable_hub_amenity_id", 804]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.395798"], ["updated_at", "2016-12-09 20:31:55.395798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.396728"], ["id", 805]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2554], ["g5_updatable_hub_amenity_id", 805]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2554]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.399955"], ["id", 2554]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2554]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2554]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.406139"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.407887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2555]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.411868"], ["updated_at", "2016-12-09 20:31:55.411868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.412804"], ["id", 806]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2555], ["g5_updatable_hub_amenity_id", 806]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.415147"], ["updated_at", "2016-12-09 20:31:55.415147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.416096"], ["id", 807]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2555], ["g5_updatable_hub_amenity_id", 807]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2555]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.419191"], ["id", 2555]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.425155"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.427018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2556]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.430527"], ["updated_at", "2016-12-09 20:31:55.430527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.431446"], ["id", 808]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2556], ["g5_updatable_hub_amenity_id", 808]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.433824"], ["updated_at", "2016-12-09 20:31:55.433824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.434836"], ["id", 809]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2556], ["g5_updatable_hub_amenity_id", 809]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2556]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.438078"], ["id", 2556]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.443217"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.445123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2557]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.448983"], ["updated_at", "2016-12-09 20:31:55.448983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.449887"], ["id", 810]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2557], ["g5_updatable_hub_amenity_id", 810]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.452231"], ["updated_at", "2016-12-09 20:31:55.452231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.453131"], ["id", 811]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2557], ["g5_updatable_hub_amenity_id", 811]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2557]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.456305"], ["id", 2557]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:31:55.458667"], ["updated_at", "2016-12-09 20:31:55.458667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:31:55.460340"], ["updated_at", "2016-12-09 20:31:55.460340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1118]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2558]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.464341"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.466110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2559]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.469741"], ["updated_at", "2016-12-09 20:31:55.469741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.470679"], ["id", 812]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2559], ["g5_updatable_hub_amenity_id", 812]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.473329"], ["updated_at", "2016-12-09 20:31:55.473329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.474305"], ["id", 813]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2559], ["g5_updatable_hub_amenity_id", 813]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2559]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.477769"], ["id", 2559]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.482513"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.484337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2560]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.487836"], ["updated_at", "2016-12-09 20:31:55.487836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.488751"], ["id", 814]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2560], ["g5_updatable_hub_amenity_id", 814]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.491531"], ["updated_at", "2016-12-09 20:31:55.491531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.492764"], ["id", 815]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2560], ["g5_updatable_hub_amenity_id", 815]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2560]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.496461"], ["id", 2560]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.501009"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.502660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2561]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.506194"], ["updated_at", "2016-12-09 20:31:55.506194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.507190"], ["id", 816]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2561], ["g5_updatable_hub_amenity_id", 816]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.509761"], ["updated_at", "2016-12-09 20:31:55.509761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.510757"], ["id", 817]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2561], ["g5_updatable_hub_amenity_id", 817]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2561]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.513964"], ["id", 2561]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.518477"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.520274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2562]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.524032"], ["updated_at", "2016-12-09 20:31:55.524032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.524959"], ["id", 818]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2562], ["g5_updatable_hub_amenity_id", 818]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.527681"], ["updated_at", "2016-12-09 20:31:55.527681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.528588"], ["id", 819]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2562], ["g5_updatable_hub_amenity_id", 819]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2562]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.531722"], ["id", 2562]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.536641"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.538914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2563]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.543225"], ["updated_at", "2016-12-09 20:31:55.543225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.544419"], ["id", 820]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2563], ["g5_updatable_hub_amenity_id", 820]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.547036"], ["updated_at", "2016-12-09 20:31:55.547036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.547991"], ["id", 821]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2563], ["g5_updatable_hub_amenity_id", 821]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2563]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.551381"], ["id", 2563]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.556227"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.557925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2564]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.562172"], ["updated_at", "2016-12-09 20:31:55.562172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.563307"], ["id", 822]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2564], ["g5_updatable_hub_amenity_id", 822]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.566112"], ["updated_at", "2016-12-09 20:31:55.566112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.567266"], ["id", 823]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2564], ["g5_updatable_hub_amenity_id", 823]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2564]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.570426"], ["id", 2564]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.575345"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.577598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2565]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.581905"], ["updated_at", "2016-12-09 20:31:55.581905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.582851"], ["id", 824]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2565], ["g5_updatable_hub_amenity_id", 824]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.585283"], ["updated_at", "2016-12-09 20:31:55.585283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.586178"], ["id", 825]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2565], ["g5_updatable_hub_amenity_id", 825]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2565]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.589500"], ["id", 2565]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.594860"], ["updated_at", "2016-12-09 20:31:55.594860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.596522"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.601955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2567]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.606373"], ["updated_at", "2016-12-09 20:31:55.606373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.607477"], ["id", 826]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2567], ["g5_updatable_hub_amenity_id", 826]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.610274"], ["updated_at", "2016-12-09 20:31:55.610274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.611430"], ["id", 827]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2567], ["g5_updatable_hub_amenity_id", 827]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2567]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.614855"], ["id", 2567]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2566]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2566]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.620580"], ["updated_at", "2016-12-09 20:31:55.620580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:31:55.622158"], ["updated_at", "2016-12-09 20:31:55.622158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2568], ["g5_updatable_hub_amenity_id", 828]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.625353"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2568]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2568]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.631728"], ["id", 828]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2568], ["g5_updatable_hub_amenity_id", 828]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.634126"], ["updated_at", "2016-12-09 20:31:55.634126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.635250"], ["id", 829]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2568], ["g5_updatable_hub_amenity_id", 829]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2568]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.639458"], ["id", 2568]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.645140"], ["updated_at", "2016-12-09 20:31:55.645140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:31:55.646782"], ["updated_at", "2016-12-09 20:31:55.646782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2569], ["g5_updatable_hub_amenity_id", 830]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.649478"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2569]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2569]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.655581"], ["updated_at", "2016-12-09 20:31:55.655581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.656489"], ["id", 831]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2569], ["g5_updatable_hub_amenity_id", 831]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.658783"], ["updated_at", "2016-12-09 20:31:55.658783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.659974"], ["id", 832]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2569], ["g5_updatable_hub_amenity_id", 832]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2569]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.663245"], ["id", 2569]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.666838"], ["updated_at", "2016-12-09 20:31:55.666838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:31:55.668151"], ["updated_at", "2016-12-09 20:31:55.668151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2570], ["g5_updatable_hub_amenity_id", 833]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.670517"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2570]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2570]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.676527"], ["updated_at", "2016-12-09 20:31:55.676527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.677580"], ["id", 834]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2570], ["g5_updatable_hub_amenity_id", 834]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.679937"], ["updated_at", "2016-12-09 20:31:55.679937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.680862"], ["id", 835]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2570], ["g5_updatable_hub_amenity_id", 835]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2570]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.684085"], ["id", 2570]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2570]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.689212"], ["updated_at", "2016-12-09 20:31:55.689212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:31:55.690563"], ["updated_at", "2016-12-09 20:31:55.690563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2571], ["g5_updatable_hub_amenity_id", 836]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.695000"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2571]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2571]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.701617"], ["updated_at", "2016-12-09 20:31:55.701617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.702667"], ["id", 837]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2571], ["g5_updatable_hub_amenity_id", 837]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.705231"], ["updated_at", "2016-12-09 20:31:55.705231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.706133"], ["id", 838]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2571], ["g5_updatable_hub_amenity_id", 838]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2571]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.709369"], ["id", 2571]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:31:55.712157"], ["updated_at", "2016-12-09 20:31:55.712157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:31:55.713480"], ["updated_at", "2016-12-09 20:31:55.713480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1119]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2572]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.716333"], ["updated_at", "2016-12-09 20:31:55.716333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:31:55.717767"], ["updated_at", "2016-12-09 20:31:55.717767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2573], ["g5_updatable_hub_amenity_id", 839]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.720311"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2573]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2573]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.726513"], ["updated_at", "2016-12-09 20:31:55.726513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.727527"], ["id", 840]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2573], ["g5_updatable_hub_amenity_id", 840]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.729987"], ["updated_at", "2016-12-09 20:31:55.729987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.730875"], ["id", 841]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2573], ["g5_updatable_hub_amenity_id", 841]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.734016"], ["id", 2573]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.738864"], ["updated_at", "2016-12-09 20:31:55.738864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:31:55.740448"], ["updated_at", "2016-12-09 20:31:55.740448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2574], ["g5_updatable_hub_amenity_id", 842]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.743591"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2574]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2574]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.749719"], ["updated_at", "2016-12-09 20:31:55.749719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.750685"], ["id", 843]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2574], ["g5_updatable_hub_amenity_id", 843]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.752972"], ["updated_at", "2016-12-09 20:31:55.752972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.753877"], ["id", 844]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2574], ["g5_updatable_hub_amenity_id", 844]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2574]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.757079"], ["id", 2574]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.766066"], ["updated_at", "2016-12-09 20:31:55.766066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:31:55.767729"], ["updated_at", "2016-12-09 20:31:55.767729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2575], ["g5_updatable_hub_amenity_id", 845]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.770480"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2575]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2575]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.778635"], ["updated_at", "2016-12-09 20:31:55.778635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.779791"], ["id", 846]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2575], ["g5_updatable_hub_amenity_id", 846]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.783330"], ["id", 845]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2575], ["g5_updatable_hub_amenity_id", 845]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2575]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.786875"], ["id", 2575]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:31:55.789563"], ["updated_at", "2016-12-09 20:31:55.789563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:31:55.790952"], ["updated_at", "2016-12-09 20:31:55.790952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1120]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2576]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.794629"], ["updated_at", "2016-12-09 20:31:55.794629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:31:55.796486"], ["updated_at", "2016-12-09 20:31:55.796486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2577], ["g5_updatable_hub_amenity_id", 847]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.799244"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2577]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2577]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.805404"], ["updated_at", "2016-12-09 20:31:55.805404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.806370"], ["id", 848]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2577], ["g5_updatable_hub_amenity_id", 848]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.808885"], ["updated_at", "2016-12-09 20:31:55.808885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.810091"], ["id", 849]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2577], ["g5_updatable_hub_amenity_id", 849]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2577]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.813432"], ["id", 2577]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.819093"], ["updated_at", "2016-12-09 20:31:55.819093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:31:55.821123"], ["updated_at", "2016-12-09 20:31:55.821123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2578], ["g5_updatable_hub_amenity_id", 850]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.823885"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2578]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2578]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.832687"], ["updated_at", "2016-12-09 20:31:55.832687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.833691"], ["id", 851]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2578], ["g5_updatable_hub_amenity_id", 851]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.836266"], ["updated_at", "2016-12-09 20:31:55.836266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.837359"], ["id", 852]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2578], ["g5_updatable_hub_amenity_id", 852]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2578]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.840610"], ["id", 2578]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:31:55.846226"], ["updated_at", "2016-12-09 20:31:55.846226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:31:55.847836"], ["updated_at", "2016-12-09 20:31:55.847836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2579], ["g5_updatable_hub_amenity_id", 853]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:31:55.850341"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2579]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2579]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:31:55.856136"], ["updated_at", "2016-12-09 20:31:55.856136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:31:55.857066"], ["id", 854]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2579], ["g5_updatable_hub_amenity_id", 854]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:31:55.859651"], ["updated_at", "2016-12-09 20:31:55.859651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:31:55.860576"], ["id", 855]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2579], ["g5_updatable_hub_amenity_id", 855]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2579]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:31:55.863795"], ["id", 2579]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:43.953463"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:43.958518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2580]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:43.974091"], ["updated_at", "2016-12-09 20:32:43.974091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:43.976256"], ["id", 856]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2580], ["g5_updatable_hub_amenity_id", 856]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:43.993847"], ["updated_at", "2016-12-09 20:32:43.993847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:43.994875"], ["id", 857]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2580], ["g5_updatable_hub_amenity_id", 857]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2580]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.002439"], ["id", 2580]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:32:44.008528"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:32:44.010984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.017776"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2581]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2581]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.023854"], ["updated_at", "2016-12-09 20:32:44.023854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.024895"], ["id", 858]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2581], ["g5_updatable_hub_amenity_id", 858]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.027564"], ["updated_at", "2016-12-09 20:32:44.027564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.028525"], ["id", 859]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2581], ["g5_updatable_hub_amenity_id", 859]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2581]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.031936"], ["id", 2581]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2581]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:32:44.036323"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:32:44.038760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.045641"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2582]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2582]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.052238"], ["updated_at", "2016-12-09 20:32:44.052238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.053399"], ["id", 860]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2582], ["g5_updatable_hub_amenity_id", 860]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.056771"], ["updated_at", "2016-12-09 20:32:44.056771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.057952"], ["id", 861]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2582], ["g5_updatable_hub_amenity_id", 861]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2582]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.062264"], ["id", 2582]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 20:32:44.067879"], ["updated_at", "2016-12-09 20:32:44.067879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:32:44.069456"], ["updated_at", "2016-12-09 20:32:44.069456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1121]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2583]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.075227"], ["updated_at", "2016-12-09 20:32:44.075227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:32:44.079919"], ["updated_at", "2016-12-09 20:32:44.079919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.083449"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.085216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2586]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.089103"], ["updated_at", "2016-12-09 20:32:44.089103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.090066"], ["id", 862]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2586], ["g5_updatable_hub_amenity_id", 862]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.092566"], ["updated_at", "2016-12-09 20:32:44.092566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.093472"], ["id", 863]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2586], ["g5_updatable_hub_amenity_id", 863]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2586]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.096765"], ["id", 2586]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2584]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2584]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:32:44.105230"], ["updated_at", "2016-12-09 20:32:44.105230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.107198"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.109103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2588]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.112790"], ["updated_at", "2016-12-09 20:32:44.112790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.113751"], ["id", 864]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2588], ["g5_updatable_hub_amenity_id", 864]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.116234"], ["updated_at", "2016-12-09 20:32:44.116234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.117149"], ["id", 865]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2588], ["g5_updatable_hub_amenity_id", 865]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2588]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.120391"], ["id", 2588]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:32:44.131098"], ["updated_at", "2016-12-09 20:32:44.131098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:32:44.133607"], ["updated_at", "2016-12-09 20:32:44.133607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.135256"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.137284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2591]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.141524"], ["updated_at", "2016-12-09 20:32:44.141524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.142757"], ["id", 866]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2591], ["g5_updatable_hub_amenity_id", 866]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.145331"], ["updated_at", "2016-12-09 20:32:44.145331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.146242"], ["id", 867]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2591], ["g5_updatable_hub_amenity_id", 867]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2591]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.150113"], ["id", 2591]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.154004"], ["updated_at", "2016-12-09 20:32:44.154004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.155815"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.157959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2593]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.161772"], ["updated_at", "2016-12-09 20:32:44.161772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.162724"], ["id", 868]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2593], ["g5_updatable_hub_amenity_id", 868]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.165280"], ["updated_at", "2016-12-09 20:32:44.165280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.166294"], ["id", 869]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2593], ["g5_updatable_hub_amenity_id", 869]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2593]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.169779"], ["id", 2593]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2592]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2592]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.175801"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.177710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2594]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.181583"], ["updated_at", "2016-12-09 20:32:44.181583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.182652"], ["id", 870]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2594], ["g5_updatable_hub_amenity_id", 870]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.185251"], ["updated_at", "2016-12-09 20:32:44.185251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.186184"], ["id", 871]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2594], ["g5_updatable_hub_amenity_id", 871]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2594]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.189688"], ["id", 2594]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2594]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2594]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.200643"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.202919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2595]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.207517"], ["updated_at", "2016-12-09 20:32:44.207517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.208469"], ["id", 872]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2595], ["g5_updatable_hub_amenity_id", 872]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.210934"], ["updated_at", "2016-12-09 20:32:44.210934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.211888"], ["id", 873]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2595], ["g5_updatable_hub_amenity_id", 873]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2595]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.215207"], ["id", 2595]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.218865"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.220518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2596]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.224325"], ["updated_at", "2016-12-09 20:32:44.224325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.225265"], ["id", 874]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2596], ["g5_updatable_hub_amenity_id", 874]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.227612"], ["updated_at", "2016-12-09 20:32:44.227612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.228501"], ["id", 875]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2596], ["g5_updatable_hub_amenity_id", 875]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2596]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.231627"], ["id", 2596]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.236136"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.237890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2597]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.242372"], ["updated_at", "2016-12-09 20:32:44.242372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.244019"], ["id", 876]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2597], ["g5_updatable_hub_amenity_id", 876]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.246573"], ["updated_at", "2016-12-09 20:32:44.246573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.247568"], ["id", 877]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2597], ["g5_updatable_hub_amenity_id", 877]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2597]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.251263"], ["id", 2597]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.257847"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.259644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2598]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.263187"], ["updated_at", "2016-12-09 20:32:44.263187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.264142"], ["id", 878]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2598], ["g5_updatable_hub_amenity_id", 878]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.266639"], ["updated_at", "2016-12-09 20:32:44.266639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.267567"], ["id", 879]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2598], ["g5_updatable_hub_amenity_id", 879]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2598]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.270497"], ["id", 2598]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.275461"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.277423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2599]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.281241"], ["updated_at", "2016-12-09 20:32:44.281241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.282231"], ["id", 880]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2599], ["g5_updatable_hub_amenity_id", 880]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.284565"], ["updated_at", "2016-12-09 20:32:44.284565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.285459"], ["id", 881]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2599], ["g5_updatable_hub_amenity_id", 881]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2599]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.288451"], ["id", 2599]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.293288"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.294969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2600]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.298698"], ["updated_at", "2016-12-09 20:32:44.298698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.299729"], ["id", 882]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2600], ["g5_updatable_hub_amenity_id", 882]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.302147"], ["updated_at", "2016-12-09 20:32:44.302147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.303073"], ["id", 883]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2600], ["g5_updatable_hub_amenity_id", 883]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2600]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.306746"], ["id", 2600]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.311387"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.313218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2601]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.316867"], ["updated_at", "2016-12-09 20:32:44.316867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.317820"], ["id", 884]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2601], ["g5_updatable_hub_amenity_id", 884]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.320129"], ["updated_at", "2016-12-09 20:32:44.320129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.321064"], ["id", 885]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2601], ["g5_updatable_hub_amenity_id", 885]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2601]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.324394"], ["id", 2601]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.328909"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.330687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2602]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.334348"], ["updated_at", "2016-12-09 20:32:44.334348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.335260"], ["id", 886]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2602], ["g5_updatable_hub_amenity_id", 886]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.337697"], ["updated_at", "2016-12-09 20:32:44.337697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.339001"], ["id", 887]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2602], ["g5_updatable_hub_amenity_id", 887]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2602]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.342696"], ["id", 2602]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:32:44.344977"], ["updated_at", "2016-12-09 20:32:44.344977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:32:44.346249"], ["updated_at", "2016-12-09 20:32:44.346249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1122]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2603]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.349569"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.351394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2604]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.355398"], ["updated_at", "2016-12-09 20:32:44.355398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.356656"], ["id", 888]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2604], ["g5_updatable_hub_amenity_id", 888]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.359194"], ["updated_at", "2016-12-09 20:32:44.359194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.360153"], ["id", 889]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2604], ["g5_updatable_hub_amenity_id", 889]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2604]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.363402"], ["id", 2604]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.368301"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.371118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2605]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.376085"], ["updated_at", "2016-12-09 20:32:44.376085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.377491"], ["id", 890]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2605], ["g5_updatable_hub_amenity_id", 890]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.381004"], ["updated_at", "2016-12-09 20:32:44.381004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.382279"], ["id", 891]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2605], ["g5_updatable_hub_amenity_id", 891]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2605]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.386809"], ["id", 2605]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.393833"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.396844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2606]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.401901"], ["updated_at", "2016-12-09 20:32:44.401901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.403044"], ["id", 892]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2606], ["g5_updatable_hub_amenity_id", 892]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.406906"], ["updated_at", "2016-12-09 20:32:44.406906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.408276"], ["id", 893]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2606], ["g5_updatable_hub_amenity_id", 893]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2606]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.412679"], ["id", 2606]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.419903"], ["updated_at", "2016-12-09 20:32:44.419903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:32:44.421895"], ["updated_at", "2016-12-09 20:32:44.421895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2607], ["g5_updatable_hub_amenity_id", 894]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.425295"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2607]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2607]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.437740"], ["id", 894]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2607], ["g5_updatable_hub_amenity_id", 894]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.441025"], ["updated_at", "2016-12-09 20:32:44.441025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.442145"], ["id", 895]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2607], ["g5_updatable_hub_amenity_id", 895]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2607]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.446673"], ["id", 2607]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.452168"], ["updated_at", "2016-12-09 20:32:44.452168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:32:44.454182"], ["updated_at", "2016-12-09 20:32:44.454182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2608], ["g5_updatable_hub_amenity_id", 896]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.458134"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2608]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2608]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.465746"], ["updated_at", "2016-12-09 20:32:44.465746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.466722"], ["id", 897]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2608], ["g5_updatable_hub_amenity_id", 897]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.469229"], ["updated_at", "2016-12-09 20:32:44.469229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.470148"], ["id", 898]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2608], ["g5_updatable_hub_amenity_id", 898]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2608]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.473568"], ["id", 2608]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2608]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.479499"], ["updated_at", "2016-12-09 20:32:44.479499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:32:44.480933"], ["updated_at", "2016-12-09 20:32:44.480933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2609], ["g5_updatable_hub_amenity_id", 899]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.483594"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2609]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2609]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.489376"], ["updated_at", "2016-12-09 20:32:44.489376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.490643"], ["id", 900]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2609], ["g5_updatable_hub_amenity_id", 900]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.494243"], ["updated_at", "2016-12-09 20:32:44.494243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.495247"], ["id", 901]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2609], ["g5_updatable_hub_amenity_id", 901]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2609]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.499228"], ["id", 2609]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.504189"], ["updated_at", "2016-12-09 20:32:44.504189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:32:44.505700"], ["updated_at", "2016-12-09 20:32:44.505700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2610], ["g5_updatable_hub_amenity_id", 902]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.508595"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2610]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2610]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.514417"], ["updated_at", "2016-12-09 20:32:44.514417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.515425"], ["id", 903]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2610], ["g5_updatable_hub_amenity_id", 903]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.517711"], ["updated_at", "2016-12-09 20:32:44.517711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.518721"], ["id", 904]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2610], ["g5_updatable_hub_amenity_id", 904]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2610]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.521790"], ["id", 2610]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.526549"], ["updated_at", "2016-12-09 20:32:44.526549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:32:44.527963"], ["updated_at", "2016-12-09 20:32:44.527963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2611], ["g5_updatable_hub_amenity_id", 905]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.530426"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2611]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2611]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.536291"], ["updated_at", "2016-12-09 20:32:44.536291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.537208"], ["id", 906]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2611], ["g5_updatable_hub_amenity_id", 906]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.539933"], ["updated_at", "2016-12-09 20:32:44.539933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.540915"], ["id", 907]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2611], ["g5_updatable_hub_amenity_id", 907]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2611]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.544571"], ["id", 2611]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.549848"], ["updated_at", "2016-12-09 20:32:44.549848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:32:44.551498"], ["updated_at", "2016-12-09 20:32:44.551498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2612], ["g5_updatable_hub_amenity_id", 908]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.554124"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2612]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2612]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.560703"], ["updated_at", "2016-12-09 20:32:44.560703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.561653"], ["id", 909]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2612], ["g5_updatable_hub_amenity_id", 909]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.564001"], ["updated_at", "2016-12-09 20:32:44.564001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.565262"], ["id", 910]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2612], ["g5_updatable_hub_amenity_id", 910]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2612]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.568594"], ["id", 2612]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.576940"], ["updated_at", "2016-12-09 20:32:44.576940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:32:44.578384"], ["updated_at", "2016-12-09 20:32:44.578384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2613], ["g5_updatable_hub_amenity_id", 911]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.580821"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2613]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2613]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.586444"], ["updated_at", "2016-12-09 20:32:44.586444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.587398"], ["id", 912]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2613], ["g5_updatable_hub_amenity_id", 912]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.590148"], ["id", 911]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2613], ["g5_updatable_hub_amenity_id", 911]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2613]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.593841"], ["id", 2613]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.599939"], ["updated_at", "2016-12-09 20:32:44.599939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:32:44.601505"], ["updated_at", "2016-12-09 20:32:44.601505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2614], ["g5_updatable_hub_amenity_id", 913]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.604147"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2614]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2614]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.610414"], ["updated_at", "2016-12-09 20:32:44.610414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.611337"], ["id", 914]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2614], ["g5_updatable_hub_amenity_id", 914]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.613607"], ["updated_at", "2016-12-09 20:32:44.613607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.614591"], ["id", 915]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2614], ["g5_updatable_hub_amenity_id", 915]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2614]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.617889"], ["id", 2614]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:32:44.620305"], ["updated_at", "2016-12-09 20:32:44.620305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:32:44.621516"], ["updated_at", "2016-12-09 20:32:44.621516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1123]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2615]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.624696"], ["updated_at", "2016-12-09 20:32:44.624696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:32:44.626220"], ["updated_at", "2016-12-09 20:32:44.626220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2616], ["g5_updatable_hub_amenity_id", 916]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.628865"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2616]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2616]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.634971"], ["updated_at", "2016-12-09 20:32:44.634971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.635953"], ["id", 917]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2616], ["g5_updatable_hub_amenity_id", 917]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.638993"], ["updated_at", "2016-12-09 20:32:44.638993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.639955"], ["id", 918]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2616], ["g5_updatable_hub_amenity_id", 918]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2616]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.643194"], ["id", 2616]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.648550"], ["updated_at", "2016-12-09 20:32:44.648550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:32:44.650179"], ["updated_at", "2016-12-09 20:32:44.650179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2617], ["g5_updatable_hub_amenity_id", 919]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.652588"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2617]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2617]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.661662"], ["updated_at", "2016-12-09 20:32:44.661662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.662630"], ["id", 920]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2617], ["g5_updatable_hub_amenity_id", 920]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.665126"], ["updated_at", "2016-12-09 20:32:44.665126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.666051"], ["id", 921]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2617], ["g5_updatable_hub_amenity_id", 921]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2617]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.669058"], ["id", 2617]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:32:44.671416"], ["updated_at", "2016-12-09 20:32:44.671416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:32:44.672900"], ["updated_at", "2016-12-09 20:32:44.672900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1124]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2618]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:32:44.677642"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:32:44.679535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2619]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:32:44.683203"], ["updated_at", "2016-12-09 20:32:44.683203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:32:44.684125"], ["id", 922]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2619], ["g5_updatable_hub_amenity_id", 922]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:32:44.686499"], ["updated_at", "2016-12-09 20:32:44.686499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:32:44.687387"], ["id", 923]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2619], ["g5_updatable_hub_amenity_id", 923]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2619]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:32:44.690551"], ["id", 2619]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.639019"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.643015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2620]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.658770"], ["updated_at", "2016-12-09 20:33:17.658770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.661127"], ["id", 924]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2620], ["g5_updatable_hub_amenity_id", 924]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.680271"], ["updated_at", "2016-12-09 20:33:17.680271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.682131"], ["id", 925]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2620], ["g5_updatable_hub_amenity_id", 925]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2620]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.690924"], ["id", 2620]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.697664"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.699475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2621]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.703663"], ["updated_at", "2016-12-09 20:33:17.703663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.704825"], ["id", 926]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2621], ["g5_updatable_hub_amenity_id", 926]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.707675"], ["updated_at", "2016-12-09 20:33:17.707675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.708701"], ["id", 927]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2621], ["g5_updatable_hub_amenity_id", 927]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2621]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.712194"], ["id", 2621]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.719805"], ["updated_at", "2016-12-09 20:33:17.719805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:33:17.725598"], ["updated_at", "2016-12-09 20:33:17.725598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.729292"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.730986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2624]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.734608"], ["updated_at", "2016-12-09 20:33:17.734608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.735635"], ["id", 928]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2624], ["g5_updatable_hub_amenity_id", 928]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.738421"], ["updated_at", "2016-12-09 20:33:17.738421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.739426"], ["id", 929]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2624], ["g5_updatable_hub_amenity_id", 929]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2624]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.743083"], ["id", 2624]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2622]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2622]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.750859"], ["updated_at", "2016-12-09 20:33:17.750859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:33:17.752503"], ["updated_at", "2016-12-09 20:33:17.752503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2625], ["g5_updatable_hub_amenity_id", 930]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.755477"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2625]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2625]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.761934"], ["id", 930]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2625], ["g5_updatable_hub_amenity_id", 930]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.764413"], ["updated_at", "2016-12-09 20:33:17.764413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.765340"], ["id", 931]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2625], ["g5_updatable_hub_amenity_id", 931]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2625]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.768871"], ["id", 2625]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2625]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.775082"], ["updated_at", "2016-12-09 20:33:17.775082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:33:17.776688"], ["updated_at", "2016-12-09 20:33:17.776688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2626], ["g5_updatable_hub_amenity_id", 932]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.779335"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2626]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2626]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.785175"], ["updated_at", "2016-12-09 20:33:17.785175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.786248"], ["id", 933]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2626], ["g5_updatable_hub_amenity_id", 933]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.788591"], ["updated_at", "2016-12-09 20:33:17.788591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.789547"], ["id", 934]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2626], ["g5_updatable_hub_amenity_id", 934]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2626]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.793010"], ["id", 2626]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.797768"], ["updated_at", "2016-12-09 20:33:17.797768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:33:17.799183"], ["updated_at", "2016-12-09 20:33:17.799183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2627], ["g5_updatable_hub_amenity_id", 935]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.801718"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2627]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2627]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.807877"], ["updated_at", "2016-12-09 20:33:17.807877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.808848"], ["id", 936]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2627], ["g5_updatable_hub_amenity_id", 936]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.811162"], ["updated_at", "2016-12-09 20:33:17.811162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.812066"], ["id", 937]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2627], ["g5_updatable_hub_amenity_id", 937]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2627]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.815127"], ["id", 2627]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.819013"], ["updated_at", "2016-12-09 20:33:17.819013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:33:17.820964"], ["updated_at", "2016-12-09 20:33:17.820964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2628], ["g5_updatable_hub_amenity_id", 938]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.823687"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2628]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2628]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.829777"], ["updated_at", "2016-12-09 20:33:17.829777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.830803"], ["id", 939]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2628], ["g5_updatable_hub_amenity_id", 939]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.833084"], ["updated_at", "2016-12-09 20:33:17.833084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.833974"], ["id", 940]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2628], ["g5_updatable_hub_amenity_id", 940]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2628]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.837480"], ["id", 2628]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.842348"], ["updated_at", "2016-12-09 20:33:17.842348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:33:17.843787"], ["updated_at", "2016-12-09 20:33:17.843787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2629], ["g5_updatable_hub_amenity_id", 941]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.846304"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2629]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2629]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.852415"], ["updated_at", "2016-12-09 20:33:17.852415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.853678"], ["id", 942]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2629], ["g5_updatable_hub_amenity_id", 942]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.856135"], ["updated_at", "2016-12-09 20:33:17.856135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.857086"], ["id", 943]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2629], ["g5_updatable_hub_amenity_id", 943]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2629]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.860393"], ["id", 2629]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.865149"], ["updated_at", "2016-12-09 20:33:17.865149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:33:17.866555"], ["updated_at", "2016-12-09 20:33:17.866555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2630], ["g5_updatable_hub_amenity_id", 944]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.869174"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2630]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2630]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.876067"], ["updated_at", "2016-12-09 20:33:17.876067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.877014"], ["id", 945]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2630], ["g5_updatable_hub_amenity_id", 945]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.879427"], ["updated_at", "2016-12-09 20:33:17.879427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.880367"], ["id", 946]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2630], ["g5_updatable_hub_amenity_id", 946]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2630]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.883656"], ["id", 2630]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:33:17.889510"], ["updated_at", "2016-12-09 20:33:17.889510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:33:17.891266"], ["updated_at", "2016-12-09 20:33:17.891266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1125]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2631]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.894758"], ["updated_at", "2016-12-09 20:33:17.894758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:33:17.896905"], ["updated_at", "2016-12-09 20:33:17.896905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2632], ["g5_updatable_hub_amenity_id", 947]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.904477"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2632]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2632]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.911296"], ["updated_at", "2016-12-09 20:33:17.911296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.912278"], ["id", 948]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2632], ["g5_updatable_hub_amenity_id", 948]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.914731"], ["id", 947]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2632], ["g5_updatable_hub_amenity_id", 947]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2632]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.917851"], ["id", 2632]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.927059"], ["updated_at", "2016-12-09 20:33:17.927059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:33:17.928563"], ["updated_at", "2016-12-09 20:33:17.928563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2633], ["g5_updatable_hub_amenity_id", 949]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.931007"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2633]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2633]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.936579"], ["updated_at", "2016-12-09 20:33:17.936579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.937494"], ["id", 950]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2633], ["g5_updatable_hub_amenity_id", 950]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.939965"], ["updated_at", "2016-12-09 20:33:17.939965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.941061"], ["id", 951]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2633], ["g5_updatable_hub_amenity_id", 951]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2633]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.944317"], ["id", 2633]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:33:17.946611"], ["updated_at", "2016-12-09 20:33:17.946611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:33:17.947837"], ["updated_at", "2016-12-09 20:33:17.947837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1126]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2634]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.950622"], ["updated_at", "2016-12-09 20:33:17.950622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:33:17.952051"], ["updated_at", "2016-12-09 20:33:17.952051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2635], ["g5_updatable_hub_amenity_id", 952]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.954698"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2635]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2635]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.960312"], ["updated_at", "2016-12-09 20:33:17.960312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.961242"], ["id", 953]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2635], ["g5_updatable_hub_amenity_id", 953]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.963727"], ["updated_at", "2016-12-09 20:33:17.963727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.964627"], ["id", 954]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2635], ["g5_updatable_hub_amenity_id", 954]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.968169"], ["id", 2635]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:17.973885"], ["updated_at", "2016-12-09 20:33:17.973885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:33:17.975608"], ["updated_at", "2016-12-09 20:33:17.975608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2636], ["g5_updatable_hub_amenity_id", 955]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:17.978110"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2636]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2636]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:17.983701"], ["updated_at", "2016-12-09 20:33:17.983701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:17.984581"], ["id", 956]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2636], ["g5_updatable_hub_amenity_id", 956]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:17.987113"], ["updated_at", "2016-12-09 20:33:17.987113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:17.987992"], ["id", 957]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2636], ["g5_updatable_hub_amenity_id", 957]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2636]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:17.991336"], ["id", 2636]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:33:17.995718"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:33:17.997807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.004513"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2637]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2637]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.011808"], ["updated_at", "2016-12-09 20:33:18.011808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.012965"], ["id", 958]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2637], ["g5_updatable_hub_amenity_id", 958]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.015371"], ["updated_at", "2016-12-09 20:33:18.015371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.016247"], ["id", 959]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2637], ["g5_updatable_hub_amenity_id", 959]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2637]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.019635"], ["id", 2637]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2637]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:33:18.024329"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:33:18.026556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.033350"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2638]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2638]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.039898"], ["updated_at", "2016-12-09 20:33:18.039898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.041000"], ["id", 960]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2638], ["g5_updatable_hub_amenity_id", 960]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.043341"], ["updated_at", "2016-12-09 20:33:18.043341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.044234"], ["id", 961]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2638], ["g5_updatable_hub_amenity_id", 961]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2638]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.047502"], ["id", 2638]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:33:18.049949"], ["updated_at", "2016-12-09 20:33:18.049949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:33:18.051194"], ["updated_at", "2016-12-09 20:33:18.051194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1127]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2639]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:33:18.054489"], ["updated_at", "2016-12-09 20:33:18.054489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.056000"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.057695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2641]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.061354"], ["updated_at", "2016-12-09 20:33:18.061354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.062288"], ["id", 962]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2641], ["g5_updatable_hub_amenity_id", 962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.064617"], ["updated_at", "2016-12-09 20:33:18.064617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.065511"], ["id", 963]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2641], ["g5_updatable_hub_amenity_id", 963]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2641]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.068533"], ["id", 2641]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:33:18.080523"], ["updated_at", "2016-12-09 20:33:18.080523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:33:18.083012"], ["updated_at", "2016-12-09 20:33:18.083012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.084650"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.086754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2644]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.090662"], ["updated_at", "2016-12-09 20:33:18.090662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.091701"], ["id", 964]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2644], ["g5_updatable_hub_amenity_id", 964]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.094254"], ["updated_at", "2016-12-09 20:33:18.094254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.095174"], ["id", 965]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2644], ["g5_updatable_hub_amenity_id", 965]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2644]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.098000"], ["id", 2644]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.101084"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.107096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2645]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.111129"], ["updated_at", "2016-12-09 20:33:18.111129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.112074"], ["id", 966]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2645], ["g5_updatable_hub_amenity_id", 966]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.114356"], ["updated_at", "2016-12-09 20:33:18.114356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.115313"], ["id", 967]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2645], ["g5_updatable_hub_amenity_id", 967]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2645]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.118440"], ["id", 2645]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.122752"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.124489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2646]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.128644"], ["updated_at", "2016-12-09 20:33:18.128644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.129629"], ["id", 968]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2646], ["g5_updatable_hub_amenity_id", 968]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.132035"], ["updated_at", "2016-12-09 20:33:18.132035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.132967"], ["id", 969]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2646], ["g5_updatable_hub_amenity_id", 969]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2646]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.136234"], ["id", 2646]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2646]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2646]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.142276"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.144087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2647]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.147612"], ["updated_at", "2016-12-09 20:33:18.147612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.148535"], ["id", 970]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2647], ["g5_updatable_hub_amenity_id", 970]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.150851"], ["updated_at", "2016-12-09 20:33:18.150851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.151976"], ["id", 971]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2647], ["g5_updatable_hub_amenity_id", 971]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2647]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.155427"], ["id", 2647]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.161173"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.162806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2648]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.166456"], ["updated_at", "2016-12-09 20:33:18.166456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.167512"], ["id", 972]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2648], ["g5_updatable_hub_amenity_id", 972]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.170566"], ["updated_at", "2016-12-09 20:33:18.170566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.171590"], ["id", 973]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2648], ["g5_updatable_hub_amenity_id", 973]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2648]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.174703"], ["id", 2648]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.179849"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.181535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2649]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.184952"], ["updated_at", "2016-12-09 20:33:18.184952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.186120"], ["id", 974]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2649], ["g5_updatable_hub_amenity_id", 974]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.188551"], ["updated_at", "2016-12-09 20:33:18.188551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.189453"], ["id", 975]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2649], ["g5_updatable_hub_amenity_id", 975]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2649]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.192791"], ["id", 2649]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.197526"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.199256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2650]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.202985"], ["updated_at", "2016-12-09 20:33:18.202985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.203920"], ["id", 976]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2650], ["g5_updatable_hub_amenity_id", 976]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.206398"], ["updated_at", "2016-12-09 20:33:18.206398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.207297"], ["id", 977]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2650], ["g5_updatable_hub_amenity_id", 977]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2650]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.210347"], ["id", 2650]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.214692"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.216295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2651]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.220388"], ["updated_at", "2016-12-09 20:33:18.220388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.221474"], ["id", 978]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2651], ["g5_updatable_hub_amenity_id", 978]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.223815"], ["updated_at", "2016-12-09 20:33:18.223815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.224794"], ["id", 979]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2651], ["g5_updatable_hub_amenity_id", 979]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2651]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.228127"], ["id", 2651]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.232801"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.234403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2652]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.238566"], ["updated_at", "2016-12-09 20:33:18.238566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.239720"], ["id", 980]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2652], ["g5_updatable_hub_amenity_id", 980]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.242168"], ["updated_at", "2016-12-09 20:33:18.242168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.243077"], ["id", 981]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2652], ["g5_updatable_hub_amenity_id", 981]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2652]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.246094"], ["id", 2652]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:33:18.248294"], ["updated_at", "2016-12-09 20:33:18.248294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:33:18.249487"], ["updated_at", "2016-12-09 20:33:18.249487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1128]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2653]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.252642"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.254759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2654]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.259411"], ["updated_at", "2016-12-09 20:33:18.259411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.260456"], ["id", 982]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2654], ["g5_updatable_hub_amenity_id", 982]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.263118"], ["updated_at", "2016-12-09 20:33:18.263118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.264051"], ["id", 983]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2654], ["g5_updatable_hub_amenity_id", 983]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2654]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.267233"], ["id", 2654]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.272761"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.274647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2655]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.278757"], ["updated_at", "2016-12-09 20:33:18.278757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.279840"], ["id", 984]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2655], ["g5_updatable_hub_amenity_id", 984]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.282297"], ["updated_at", "2016-12-09 20:33:18.282297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.283197"], ["id", 985]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2655], ["g5_updatable_hub_amenity_id", 985]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2655]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.286612"], ["id", 2655]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.291636"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.293641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2656]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.297315"], ["updated_at", "2016-12-09 20:33:18.297315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.298252"], ["id", 986]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2656], ["g5_updatable_hub_amenity_id", 986]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.300720"], ["updated_at", "2016-12-09 20:33:18.300720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.301634"], ["id", 987]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2656], ["g5_updatable_hub_amenity_id", 987]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2656]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.305116"], ["id", 2656]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.309380"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.313411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2657]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.317259"], ["updated_at", "2016-12-09 20:33:18.317259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.318198"], ["id", 988]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2657], ["g5_updatable_hub_amenity_id", 988]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.321110"], ["updated_at", "2016-12-09 20:33:18.321110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.322071"], ["id", 989]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2657], ["g5_updatable_hub_amenity_id", 989]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2657]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.325347"], ["id", 2657]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (8.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.329890"], ["updated_at", "2016-12-09 20:33:18.329890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:33:18.340430"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:33:18.342327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2659]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:33:18.345918"], ["updated_at", "2016-12-09 20:33:18.345918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:33:18.346874"], ["id", 990]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2659], ["g5_updatable_hub_amenity_id", 990]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:33:18.349348"], ["updated_at", "2016-12-09 20:33:18.349348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:33:18.350273"], ["id", 991]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2659], ["g5_updatable_hub_amenity_id", 991]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2659]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:33:18.353579"], ["id", 2659]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2658]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2658]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:06.938013"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:06.942791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2660]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:06.959020"], ["updated_at", "2016-12-09 20:34:06.959020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:06.961183"], ["id", 992]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2660], ["g5_updatable_hub_amenity_id", 992]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:06.977612"], ["updated_at", "2016-12-09 20:34:06.977612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:06.978670"], ["id", 993]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2660], ["g5_updatable_hub_amenity_id", 993]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2660]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:06.986213"], ["id", 2660]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:06.992740"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:06.994523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2661]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:06.998163"], ["updated_at", "2016-12-09 20:34:06.998163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:06.999151"], ["id", 994]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2661], ["g5_updatable_hub_amenity_id", 994]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.001629"], ["updated_at", "2016-12-09 20:34:07.001629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.002560"], ["id", 995]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2661], ["g5_updatable_hub_amenity_id", 995]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2661]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.006032"], ["id", 2661]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.010787"], ["updated_at", "2016-12-09 20:34:07.010787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:34:07.012444"], ["updated_at", "2016-12-09 20:34:07.012444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2662], ["g5_updatable_hub_amenity_id", 996]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.015117"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2662]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2662]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.021583"], ["id", 996]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2662], ["g5_updatable_hub_amenity_id", 996]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.024204"], ["updated_at", "2016-12-09 20:34:07.024204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.025184"], ["id", 997]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2662], ["g5_updatable_hub_amenity_id", 997]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2662]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.028545"], ["id", 2662]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.032403"], ["updated_at", "2016-12-09 20:34:07.032403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:34:07.034245"], ["updated_at", "2016-12-09 20:34:07.034245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2663], ["g5_updatable_hub_amenity_id", 998]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.038035"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2663]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2663]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.044622"], ["updated_at", "2016-12-09 20:34:07.044622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.045709"], ["id", 999]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2663], ["g5_updatable_hub_amenity_id", 999]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.048011"], ["updated_at", "2016-12-09 20:34:07.048011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.048912"], ["id", 1000]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2663], ["g5_updatable_hub_amenity_id", 1000]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2663]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.052572"], ["id", 2663]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2663]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.057920"], ["updated_at", "2016-12-09 20:34:07.057920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:34:07.059413"], ["updated_at", "2016-12-09 20:34:07.059413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2664], ["g5_updatable_hub_amenity_id", 1001]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.061950"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2664]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2664]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.068172"], ["updated_at", "2016-12-09 20:34:07.068172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.069107"], ["id", 1002]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2664], ["g5_updatable_hub_amenity_id", 1002]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.071403"], ["updated_at", "2016-12-09 20:34:07.071403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.072410"], ["id", 1003]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2664], ["g5_updatable_hub_amenity_id", 1003]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2664]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.075614"], ["id", 2664]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.080434"], ["updated_at", "2016-12-09 20:34:07.080434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:34:07.081806"], ["updated_at", "2016-12-09 20:34:07.081806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2665], ["g5_updatable_hub_amenity_id", 1004]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.084564"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2665]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2665]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.090732"], ["updated_at", "2016-12-09 20:34:07.090732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.091880"], ["id", 1005]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2665], ["g5_updatable_hub_amenity_id", 1005]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.094415"], ["updated_at", "2016-12-09 20:34:07.094415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.095310"], ["id", 1006]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2665], ["g5_updatable_hub_amenity_id", 1006]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2665]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.098429"], ["id", 2665]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.103179"], ["updated_at", "2016-12-09 20:34:07.103179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:34:07.104599"], ["updated_at", "2016-12-09 20:34:07.104599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2666], ["g5_updatable_hub_amenity_id", 1007]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.107238"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2666]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2666]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.113287"], ["updated_at", "2016-12-09 20:34:07.113287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.114238"], ["id", 1008]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2666], ["g5_updatable_hub_amenity_id", 1008]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.116568"], ["updated_at", "2016-12-09 20:34:07.116568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.117696"], ["id", 1009]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2666], ["g5_updatable_hub_amenity_id", 1009]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2666]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.120736"], ["id", 2666]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.129439"], ["updated_at", "2016-12-09 20:34:07.129439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:34:07.130924"], ["updated_at", "2016-12-09 20:34:07.130924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2667], ["g5_updatable_hub_amenity_id", 1010]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.133718"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2667]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2667]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.140154"], ["updated_at", "2016-12-09 20:34:07.140154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.141311"], ["id", 1011]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2667], ["g5_updatable_hub_amenity_id", 1011]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.144249"], ["updated_at", "2016-12-09 20:34:07.144249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.145434"], ["id", 1012]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2667], ["g5_updatable_hub_amenity_id", 1012]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2667]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.148893"], ["id", 2667]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.153868"], ["updated_at", "2016-12-09 20:34:07.153868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:34:07.155337"], ["updated_at", "2016-12-09 20:34:07.155337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2668], ["g5_updatable_hub_amenity_id", 1013]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.157886"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2668]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2668]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.164155"], ["updated_at", "2016-12-09 20:34:07.164155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.165081"], ["id", 1014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2668], ["g5_updatable_hub_amenity_id", 1014]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.168256"], ["id", 1013]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2668], ["g5_updatable_hub_amenity_id", 1013]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2668]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.171854"], ["id", 2668]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.177072"], ["updated_at", "2016-12-09 20:34:07.177072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:34:07.178530"], ["updated_at", "2016-12-09 20:34:07.178530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2669], ["g5_updatable_hub_amenity_id", 1015]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.181054"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2669]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2669]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.187489"], ["updated_at", "2016-12-09 20:34:07.187489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.188585"], ["id", 1016]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2669], ["g5_updatable_hub_amenity_id", 1016]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.191369"], ["updated_at", "2016-12-09 20:34:07.191369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.192400"], ["id", 1017]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2669], ["g5_updatable_hub_amenity_id", 1017]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2669]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.195712"], ["id", 2669]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:34:07.206637"], ["updated_at", "2016-12-09 20:34:07.206637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:07.208402"], ["updated_at", "2016-12-09 20:34:07.208402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1129]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2670]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.211838"], ["updated_at", "2016-12-09 20:34:07.211838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:34:07.213206"], ["updated_at", "2016-12-09 20:34:07.213206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2671], ["g5_updatable_hub_amenity_id", 1018]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.215576"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2671]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2671]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.222774"], ["updated_at", "2016-12-09 20:34:07.222774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.223828"], ["id", 1019]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2671], ["g5_updatable_hub_amenity_id", 1019]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.226276"], ["updated_at", "2016-12-09 20:34:07.226276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.227154"], ["id", 1020]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2671], ["g5_updatable_hub_amenity_id", 1020]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2671]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.230249"], ["id", 2671]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:34:07.232736"], ["updated_at", "2016-12-09 20:34:07.232736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:07.234632"], ["updated_at", "2016-12-09 20:34:07.234632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1130]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2672]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.237806"], ["updated_at", "2016-12-09 20:34:07.237806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:34:07.239350"], ["updated_at", "2016-12-09 20:34:07.239350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2673], ["g5_updatable_hub_amenity_id", 1021]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.242221"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2673]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2673]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.247909"], ["updated_at", "2016-12-09 20:34:07.247909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.248801"], ["id", 1022]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2673], ["g5_updatable_hub_amenity_id", 1022]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.251265"], ["updated_at", "2016-12-09 20:34:07.251265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.252154"], ["id", 1023]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2673], ["g5_updatable_hub_amenity_id", 1023]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2673]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.255285"], ["id", 2673]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:34:07.259363"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:34:07.261435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.267996"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2674]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2674]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.273943"], ["updated_at", "2016-12-09 20:34:07.273943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.274942"], ["id", 1024]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2674], ["g5_updatable_hub_amenity_id", 1024]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.277352"], ["updated_at", "2016-12-09 20:34:07.277352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.278222"], ["id", 1025]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2674], ["g5_updatable_hub_amenity_id", 1025]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2674]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.281233"], ["id", 2674]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2674]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:34:07.285494"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:34:07.287656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.294966"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2675]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2675]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.300852"], ["updated_at", "2016-12-09 20:34:07.300852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.301783"], ["id", 1026]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2675], ["g5_updatable_hub_amenity_id", 1026]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.304049"], ["updated_at", "2016-12-09 20:34:07.304049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.304922"], ["id", 1027]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2675], ["g5_updatable_hub_amenity_id", 1027]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2675]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.308152"], ["id", 2675]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:34:07.310570"], ["updated_at", "2016-12-09 20:34:07.310570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:07.311811"], ["updated_at", "2016-12-09 20:34:07.311811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1131]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2676]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.314786"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.316529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2677]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.320270"], ["updated_at", "2016-12-09 20:34:07.320270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.321188"], ["id", 1028]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2677], ["g5_updatable_hub_amenity_id", 1028]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.323521"], ["updated_at", "2016-12-09 20:34:07.323521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.324405"], ["id", 1029]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2677], ["g5_updatable_hub_amenity_id", 1029]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2677]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.327487"], ["id", 2677]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.332163"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.334070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2678]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.337747"], ["updated_at", "2016-12-09 20:34:07.337747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.338752"], ["id", 1030]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2678], ["g5_updatable_hub_amenity_id", 1030]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.341305"], ["updated_at", "2016-12-09 20:34:07.341305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.342333"], ["id", 1031]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2678], ["g5_updatable_hub_amenity_id", 1031]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2678]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.345811"], ["id", 2678]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.349698"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.351437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2679]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.355306"], ["updated_at", "2016-12-09 20:34:07.355306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.356316"], ["id", 1032]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2679], ["g5_updatable_hub_amenity_id", 1032]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.358957"], ["updated_at", "2016-12-09 20:34:07.358957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.359832"], ["id", 1033]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2679], ["g5_updatable_hub_amenity_id", 1033]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2679]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.362868"], ["id", 2679]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2679]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2679]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.369898"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.371889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2680]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.376423"], ["updated_at", "2016-12-09 20:34:07.376423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.377644"], ["id", 1034]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2680], ["g5_updatable_hub_amenity_id", 1034]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.380476"], ["updated_at", "2016-12-09 20:34:07.380476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.381537"], ["id", 1035]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2680], ["g5_updatable_hub_amenity_id", 1035]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2680]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.385211"], ["id", 2680]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.393622"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.395836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2681]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.399899"], ["updated_at", "2016-12-09 20:34:07.399899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.400994"], ["id", 1036]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2681], ["g5_updatable_hub_amenity_id", 1036]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.403642"], ["updated_at", "2016-12-09 20:34:07.403642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.404674"], ["id", 1037]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2681], ["g5_updatable_hub_amenity_id", 1037]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2681]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.413244"], ["id", 2681]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.418602"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.420434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2682]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.424365"], ["updated_at", "2016-12-09 20:34:07.424365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.425332"], ["id", 1038]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2682], ["g5_updatable_hub_amenity_id", 1038]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.427827"], ["updated_at", "2016-12-09 20:34:07.427827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.428786"], ["id", 1039]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2682], ["g5_updatable_hub_amenity_id", 1039]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2682]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.431717"], ["id", 2682]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.436218"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.438066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2683]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.442267"], ["updated_at", "2016-12-09 20:34:07.442267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.443235"], ["id", 1040]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2683], ["g5_updatable_hub_amenity_id", 1040]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.445653"], ["updated_at", "2016-12-09 20:34:07.445653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.446549"], ["id", 1041]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2683], ["g5_updatable_hub_amenity_id", 1041]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2683]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.449922"], ["id", 2683]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.454512"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.456169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2684]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.459789"], ["updated_at", "2016-12-09 20:34:07.459789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.460739"], ["id", 1042]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2684], ["g5_updatable_hub_amenity_id", 1042]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.463121"], ["updated_at", "2016-12-09 20:34:07.463121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.463995"], ["id", 1043]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2684], ["g5_updatable_hub_amenity_id", 1043]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2684]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.467100"], ["id", 2684]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.471624"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.473328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2685]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.476991"], ["updated_at", "2016-12-09 20:34:07.476991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.477980"], ["id", 1044]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2685], ["g5_updatable_hub_amenity_id", 1044]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.480214"], ["updated_at", "2016-12-09 20:34:07.480214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.481102"], ["id", 1045]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2685], ["g5_updatable_hub_amenity_id", 1045]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2685]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.484310"], ["id", 2685]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 20:34:07.486435"], ["updated_at", "2016-12-09 20:34:07.486435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:07.487794"], ["updated_at", "2016-12-09 20:34:07.487794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1132]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2686]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.490938"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.492888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2687]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.496582"], ["updated_at", "2016-12-09 20:34:07.496582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.497533"], ["id", 1046]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2687], ["g5_updatable_hub_amenity_id", 1046]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.500131"], ["updated_at", "2016-12-09 20:34:07.500131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.501293"], ["id", 1047]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2687], ["g5_updatable_hub_amenity_id", 1047]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2687]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.504568"], ["id", 2687]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.509357"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.511176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2688]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.514707"], ["updated_at", "2016-12-09 20:34:07.514707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.515598"], ["id", 1048]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2688], ["g5_updatable_hub_amenity_id", 1048]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.518020"], ["updated_at", "2016-12-09 20:34:07.518020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.518920"], ["id", 1049]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2688], ["g5_updatable_hub_amenity_id", 1049]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2688]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.521911"], ["id", 2688]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.527020"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.528899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2689]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.532793"], ["updated_at", "2016-12-09 20:34:07.532793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.533949"], ["id", 1050]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2689], ["g5_updatable_hub_amenity_id", 1050]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.536241"], ["updated_at", "2016-12-09 20:34:07.536241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.537338"], ["id", 1051]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2689], ["g5_updatable_hub_amenity_id", 1051]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2689]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.540766"], ["id", 2689]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.545981"], ["updated_at", "2016-12-09 20:34:07.545981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.547537"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.549130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2691]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.552796"], ["updated_at", "2016-12-09 20:34:07.552796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.553701"], ["id", 1052]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2691], ["g5_updatable_hub_amenity_id", 1052]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.556088"], ["updated_at", "2016-12-09 20:34:07.556088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.557059"], ["id", 1053]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2691], ["g5_updatable_hub_amenity_id", 1053]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2691]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.560269"], ["id", 2691]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2690]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2690]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.569223"], ["updated_at", "2016-12-09 20:34:07.569223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:34:07.575209"], ["updated_at", "2016-12-09 20:34:07.575209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.579014"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:07.580708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2694]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.584736"], ["updated_at", "2016-12-09 20:34:07.584736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.585712"], ["id", 1054]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2694], ["g5_updatable_hub_amenity_id", 1054]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.588235"], ["updated_at", "2016-12-09 20:34:07.588235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.589244"], ["id", 1055]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2694], ["g5_updatable_hub_amenity_id", 1055]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2694]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.593000"], ["id", 2694]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2692]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2692]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:07.600089"], ["updated_at", "2016-12-09 20:34:07.600089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.602412"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2695]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2695]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.608743"], ["updated_at", "2016-12-09 20:34:07.608743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.609668"], ["id", 1056]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2695], ["g5_updatable_hub_amenity_id", 1056]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.615028"], ["updated_at", "2016-12-09 20:34:07.615028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.616035"], ["id", 1057]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2695], ["g5_updatable_hub_amenity_id", 1057]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2695]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.619156"], ["id", 2695]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:07.622473"], ["updated_at", "2016-12-09 20:34:07.622473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:07.624831"], ["updated_at", "2016-12-09 20:34:07.624831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:07.626443"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2697]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2697]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:07.631928"], ["updated_at", "2016-12-09 20:34:07.631928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:07.632850"], ["id", 1058]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2697], ["g5_updatable_hub_amenity_id", 1058]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:07.635348"], ["updated_at", "2016-12-09 20:34:07.635348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:07.636240"], ["id", 1059]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2697], ["g5_updatable_hub_amenity_id", 1059]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2697]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:07.639498"], ["id", 2697]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.358463"], ["updated_at", "2016-12-09 20:34:39.358463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:34:39.366333"], ["updated_at", "2016-12-09 20:34:39.366333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.374664"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.376543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2700]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.401928"], ["updated_at", "2016-12-09 20:34:39.401928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.404411"], ["id", 1060]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2700], ["g5_updatable_hub_amenity_id", 1060]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.413775"], ["updated_at", "2016-12-09 20:34:39.413775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.415057"], ["id", 1061]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2700], ["g5_updatable_hub_amenity_id", 1061]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2700]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.423426"], ["id", 2700]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (5.5ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.2ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2698]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2698]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:39.440849"], ["updated_at", "2016-12-09 20:34:39.440849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.442934"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2701]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2701]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.450213"], ["updated_at", "2016-12-09 20:34:39.450213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.451330"], ["id", 1062]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2701], ["g5_updatable_hub_amenity_id", 1062]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.453982"], ["updated_at", "2016-12-09 20:34:39.453982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.454966"], ["id", 1063]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2701], ["g5_updatable_hub_amenity_id", 1063]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2701]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.458724"], ["id", 2701]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:39.463002"], ["updated_at", "2016-12-09 20:34:39.463002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:39.466412"], ["updated_at", "2016-12-09 20:34:39.466412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.468575"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2703]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2703]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.475694"], ["updated_at", "2016-12-09 20:34:39.475694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.476835"], ["id", 1064]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2703], ["g5_updatable_hub_amenity_id", 1064]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.479681"], ["updated_at", "2016-12-09 20:34:39.479681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.480785"], ["id", 1065]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2703], ["g5_updatable_hub_amenity_id", 1065]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2703]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.484875"], ["id", 2703]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.489244"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.491135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2704]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.495254"], ["updated_at", "2016-12-09 20:34:39.495254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.496378"], ["id", 1066]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2704], ["g5_updatable_hub_amenity_id", 1066]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.499473"], ["updated_at", "2016-12-09 20:34:39.499473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.500557"], ["id", 1067]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2704], ["g5_updatable_hub_amenity_id", 1067]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2704]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.504404"], ["id", 2704]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.509492"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.511256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2705]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.515744"], ["updated_at", "2016-12-09 20:34:39.515744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.516919"], ["id", 1068]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2705], ["g5_updatable_hub_amenity_id", 1068]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.519626"], ["updated_at", "2016-12-09 20:34:39.519626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.520698"], ["id", 1069]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2705], ["g5_updatable_hub_amenity_id", 1069]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2705]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.524635"], ["id", 2705]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2705]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2705]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.531847"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.533747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2706]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.538190"], ["updated_at", "2016-12-09 20:34:39.538190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.539447"], ["id", 1070]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2706], ["g5_updatable_hub_amenity_id", 1070]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.542318"], ["updated_at", "2016-12-09 20:34:39.542318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.543496"], ["id", 1071]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2706], ["g5_updatable_hub_amenity_id", 1071]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2706]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.547466"], ["id", 2706]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.555340"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.557267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2707]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.561434"], ["updated_at", "2016-12-09 20:34:39.561434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.562468"], ["id", 1072]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2707], ["g5_updatable_hub_amenity_id", 1072]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.565340"], ["updated_at", "2016-12-09 20:34:39.565340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.566575"], ["id", 1073]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2707], ["g5_updatable_hub_amenity_id", 1073]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2707]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.570472"], ["id", 2707]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.575296"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.577262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2708]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.581457"], ["updated_at", "2016-12-09 20:34:39.581457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.582746"], ["id", 1074]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2708], ["g5_updatable_hub_amenity_id", 1074]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.585474"], ["updated_at", "2016-12-09 20:34:39.585474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.586623"], ["id", 1075]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2708], ["g5_updatable_hub_amenity_id", 1075]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2708]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.590398"], ["id", 2708]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.595939"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.598121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2709]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.602434"], ["updated_at", "2016-12-09 20:34:39.602434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.603585"], ["id", 1076]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2709], ["g5_updatable_hub_amenity_id", 1076]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.606587"], ["updated_at", "2016-12-09 20:34:39.606587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.607681"], ["id", 1077]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2709], ["g5_updatable_hub_amenity_id", 1077]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2709]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.611448"], ["id", 2709]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.618460"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.620638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2710]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.625302"], ["updated_at", "2016-12-09 20:34:39.625302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.626474"], ["id", 1078]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2710], ["g5_updatable_hub_amenity_id", 1078]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.629198"], ["updated_at", "2016-12-09 20:34:39.629198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.630298"], ["id", 1079]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2710], ["g5_updatable_hub_amenity_id", 1079]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2710]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.636731"], ["id", 2710]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:34:39.644018"], ["updated_at", "2016-12-09 20:34:39.644018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:39.646108"], ["updated_at", "2016-12-09 20:34:39.646108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1133]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2711]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.651110"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.652996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2712]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.657337"], ["updated_at", "2016-12-09 20:34:39.657337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.658554"], ["id", 1080]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2712], ["g5_updatable_hub_amenity_id", 1080]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.661615"], ["updated_at", "2016-12-09 20:34:39.661615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.662677"], ["id", 1081]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2712], ["g5_updatable_hub_amenity_id", 1081]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2712]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.671736"], ["id", 2712]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.676932"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.678771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2713]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.683140"], ["updated_at", "2016-12-09 20:34:39.683140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.684314"], ["id", 1082]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2713], ["g5_updatable_hub_amenity_id", 1082]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.687103"], ["updated_at", "2016-12-09 20:34:39.687103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.688183"], ["id", 1083]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2713], ["g5_updatable_hub_amenity_id", 1083]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2713]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.691687"], ["id", 2713]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.696642"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.698777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2714]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.702804"], ["updated_at", "2016-12-09 20:34:39.702804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.703893"], ["id", 1084]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2714], ["g5_updatable_hub_amenity_id", 1084]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.706631"], ["updated_at", "2016-12-09 20:34:39.706631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.707640"], ["id", 1085]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2714], ["g5_updatable_hub_amenity_id", 1085]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2714]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.711136"], ["id", 2714]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.716558"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.718481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2715]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.722957"], ["updated_at", "2016-12-09 20:34:39.722957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.724121"], ["id", 1086]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2715], ["g5_updatable_hub_amenity_id", 1086]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.726834"], ["updated_at", "2016-12-09 20:34:39.726834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.727899"], ["id", 1087]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2715], ["g5_updatable_hub_amenity_id", 1087]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2715]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.731536"], ["id", 2715]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.736952"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.738732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2716]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.742659"], ["updated_at", "2016-12-09 20:34:39.742659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.743790"], ["id", 1088]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2716], ["g5_updatable_hub_amenity_id", 1088]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.746647"], ["updated_at", "2016-12-09 20:34:39.746647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.748030"], ["id", 1089]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2716], ["g5_updatable_hub_amenity_id", 1089]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2716]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.752052"], ["id", 2716]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.757513"], ["updated_at", "2016-12-09 20:34:39.757513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.759293"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.761031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2718]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.765245"], ["updated_at", "2016-12-09 20:34:39.765245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.766495"], ["id", 1090]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2718], ["g5_updatable_hub_amenity_id", 1090]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.769535"], ["updated_at", "2016-12-09 20:34:39.769535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.770699"], ["id", 1091]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2718], ["g5_updatable_hub_amenity_id", 1091]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2718]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.774622"], ["id", 2718]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2717]] SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2717]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:34:39.780871"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:34:39.783436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.790967"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2719]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2719]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.798523"], ["updated_at", "2016-12-09 20:34:39.798523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.799935"], ["id", 1092]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2719], ["g5_updatable_hub_amenity_id", 1092]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.802648"], ["updated_at", "2016-12-09 20:34:39.802648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.803996"], ["id", 1093]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2719], ["g5_updatable_hub_amenity_id", 1093]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2719]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.807632"], ["id", 2719]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2719]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:34:39.811677"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:34:39.814240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.821612"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2720]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2720]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.828618"], ["updated_at", "2016-12-09 20:34:39.828618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.829598"], ["id", 1094]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2720], ["g5_updatable_hub_amenity_id", 1094]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.832159"], ["updated_at", "2016-12-09 20:34:39.832159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.833045"], ["id", 1095]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2720], ["g5_updatable_hub_amenity_id", 1095]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2720]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.836311"], ["id", 2720]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:34:39.838817"], ["updated_at", "2016-12-09 20:34:39.838817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:39.840108"], ["updated_at", "2016-12-09 20:34:39.840108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1134]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2721]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.843215"], ["updated_at", "2016-12-09 20:34:39.843215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:34:39.844764"], ["updated_at", "2016-12-09 20:34:39.844764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2722], ["g5_updatable_hub_amenity_id", 1096]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.847392"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2722]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2722]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.854175"], ["id", 1096]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2722], ["g5_updatable_hub_amenity_id", 1096]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.856646"], ["updated_at", "2016-12-09 20:34:39.856646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.857551"], ["id", 1097]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2722], ["g5_updatable_hub_amenity_id", 1097]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2722]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.860633"], ["id", 2722]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2722]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.866275"], ["updated_at", "2016-12-09 20:34:39.866275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:34:39.867905"], ["updated_at", "2016-12-09 20:34:39.867905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2723], ["g5_updatable_hub_amenity_id", 1098]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.870667"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2723]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2723]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.877358"], ["updated_at", "2016-12-09 20:34:39.877358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.878323"], ["id", 1099]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2723], ["g5_updatable_hub_amenity_id", 1099]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.880538"], ["updated_at", "2016-12-09 20:34:39.880538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.881681"], ["id", 1100]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2723], ["g5_updatable_hub_amenity_id", 1100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2723]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.888548"], ["id", 2723]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.893322"], ["updated_at", "2016-12-09 20:34:39.893322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:34:39.894724"], ["updated_at", "2016-12-09 20:34:39.894724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2724], ["g5_updatable_hub_amenity_id", 1101]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.897094"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2724]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2724]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.903015"], ["updated_at", "2016-12-09 20:34:39.903015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.904010"], ["id", 1102]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2724], ["g5_updatable_hub_amenity_id", 1102]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.906226"], ["updated_at", "2016-12-09 20:34:39.906226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.907124"], ["id", 1103]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2724], ["g5_updatable_hub_amenity_id", 1103]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2724]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.910215"], ["id", 2724]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.913939"], ["updated_at", "2016-12-09 20:34:39.913939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:34:39.915960"], ["updated_at", "2016-12-09 20:34:39.915960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2725], ["g5_updatable_hub_amenity_id", 1104]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.918821"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2725]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2725]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.924875"], ["updated_at", "2016-12-09 20:34:39.924875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.925862"], ["id", 1105]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2725], ["g5_updatable_hub_amenity_id", 1105]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.928249"], ["updated_at", "2016-12-09 20:34:39.928249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.929147"], ["id", 1106]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2725], ["g5_updatable_hub_amenity_id", 1106]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2725]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.932489"], ["id", 2725]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.940641"], ["updated_at", "2016-12-09 20:34:39.940641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:34:39.942136"], ["updated_at", "2016-12-09 20:34:39.942136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2726], ["g5_updatable_hub_amenity_id", 1107]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.944920"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2726]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2726]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.950908"], ["updated_at", "2016-12-09 20:34:39.950908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.951950"], ["id", 1108]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2726], ["g5_updatable_hub_amenity_id", 1108]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.954517"], ["updated_at", "2016-12-09 20:34:39.954517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.955426"], ["id", 1109]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2726], ["g5_updatable_hub_amenity_id", 1109]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2726]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.958452"], ["id", 2726]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:34:39.960778"], ["updated_at", "2016-12-09 20:34:39.960778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:39.961954"], ["updated_at", "2016-12-09 20:34:39.961954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1135]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2727]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.965028"], ["updated_at", "2016-12-09 20:34:39.965028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:34:39.966623"], ["updated_at", "2016-12-09 20:34:39.966623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2728], ["g5_updatable_hub_amenity_id", 1110]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.969613"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2728]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2728]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.977013"], ["updated_at", "2016-12-09 20:34:39.977013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.978008"], ["id", 1111]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2728], ["g5_updatable_hub_amenity_id", 1111]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:39.980306"], ["updated_at", "2016-12-09 20:34:39.980306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:39.981472"], ["id", 1112]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2728], ["g5_updatable_hub_amenity_id", 1112]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2728]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:39.984494"], ["id", 2728]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:39.989245"], ["updated_at", "2016-12-09 20:34:39.989245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:34:39.990615"], ["updated_at", "2016-12-09 20:34:39.990615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2729], ["g5_updatable_hub_amenity_id", 1113]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:39.992945"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2729]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2729]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:39.999008"], ["updated_at", "2016-12-09 20:34:39.999008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:39.999940"], ["id", 1114]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2729], ["g5_updatable_hub_amenity_id", 1114]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:40.002420"], ["id", 1113]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2729], ["g5_updatable_hub_amenity_id", 1113]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2729]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:40.005837"], ["id", 2729]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:40.010570"], ["updated_at", "2016-12-09 20:34:40.010570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:34:40.011982"], ["updated_at", "2016-12-09 20:34:40.011982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2730], ["g5_updatable_hub_amenity_id", 1115]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:40.014601"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2730]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2730]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:40.020637"], ["updated_at", "2016-12-09 20:34:40.020637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:40.021795"], ["id", 1116]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2730], ["g5_updatable_hub_amenity_id", 1116]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:40.024250"], ["updated_at", "2016-12-09 20:34:40.024250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:40.025164"], ["id", 1117]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2730], ["g5_updatable_hub_amenity_id", 1117]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2730]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:40.028185"], ["id", 2730]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:34:40.030649"], ["updated_at", "2016-12-09 20:34:40.030649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:34:40.032189"], ["updated_at", "2016-12-09 20:34:40.032189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1136]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2731]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:40.035084"], ["updated_at", "2016-12-09 20:34:40.035084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:34:40.036474"], ["updated_at", "2016-12-09 20:34:40.036474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2732], ["g5_updatable_hub_amenity_id", 1118]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:40.039059"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2732]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2732]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:40.044861"], ["updated_at", "2016-12-09 20:34:40.044861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:40.045796"], ["id", 1119]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2732], ["g5_updatable_hub_amenity_id", 1119]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:40.048281"], ["updated_at", "2016-12-09 20:34:40.048281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:40.049187"], ["id", 1120]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2732], ["g5_updatable_hub_amenity_id", 1120]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2732]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:40.052329"], ["id", 2732]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:40.057002"], ["updated_at", "2016-12-09 20:34:40.057002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:34:40.058378"], ["updated_at", "2016-12-09 20:34:40.058378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2733], ["g5_updatable_hub_amenity_id", 1121]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:40.060744"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2733]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2733]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:40.067724"], ["updated_at", "2016-12-09 20:34:40.067724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:40.068759"], ["id", 1122]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2733], ["g5_updatable_hub_amenity_id", 1122]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:40.071343"], ["updated_at", "2016-12-09 20:34:40.071343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:40.072251"], ["id", 1123]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2733], ["g5_updatable_hub_amenity_id", 1123]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2733]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:40.075382"], ["id", 2733]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:40.080390"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:40.082292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2734]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:40.086039"], ["updated_at", "2016-12-09 20:34:40.086039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:40.087096"], ["id", 1124]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2734], ["g5_updatable_hub_amenity_id", 1124]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:40.089690"], ["updated_at", "2016-12-09 20:34:40.089690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:40.090613"], ["id", 1125]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2734], ["g5_updatable_hub_amenity_id", 1125]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2734]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:40.093837"], ["id", 2734]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:34:40.103660"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:34:40.105532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2735]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:34:40.109314"], ["updated_at", "2016-12-09 20:34:40.109314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:34:40.110244"], ["id", 1126]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2735], ["g5_updatable_hub_amenity_id", 1126]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:34:40.112698"], ["updated_at", "2016-12-09 20:34:40.112698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:34:40.113553"], ["id", 1127]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2735], ["g5_updatable_hub_amenity_id", 1127]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2735]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:34:40.117139"], ["id", 2735]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:23.509101"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.515830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2736]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:23.541812"], ["updated_at", "2016-12-09 20:36:23.541812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:23.544875"], ["id", 1128]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2736], ["g5_updatable_hub_amenity_id", 1128]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:23.559032"], ["updated_at", "2016-12-09 20:36:23.559032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:23.560588"], ["id", 1129]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2736], ["g5_updatable_hub_amenity_id", 1129]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2736]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:23.572190"], ["id", 2736]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:36:23.597409"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:36:23.601034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:23.606570"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.610244"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2737]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2737]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:36:23.622803"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.625089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2738]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2738]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:36:23.635255"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.637648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2739]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:23.643080"], ["updated_at", "2016-12-09 20:36:23.643080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:23.644166"], ["id", 1130]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2739], ["g5_updatable_hub_amenity_id", 1130]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:23.647568"], ["updated_at", "2016-12-09 20:36:23.647568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:23.649063"], ["id", 1131]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2739], ["g5_updatable_hub_amenity_id", 1131]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2739]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:23.653634"], ["id", 2739]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:36:23.656891"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.658878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2740]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2740], ["g5_updatable_hub_amenity_id", 1130]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2740], ["g5_updatable_hub_amenity_id", 1131]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2740]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:23.668484"], ["id", 2740]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:36:23.671661"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.674022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2741]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2741]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2739]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:36:23.691526"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:36:23.692861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:23.696175"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.698482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2742]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2742]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:36:23.706311"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.708447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2743]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2743]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:36:23.717187"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.719566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2744]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:23.725179"], ["updated_at", "2016-12-09 20:36:23.725179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:23.726596"], ["id", 1132]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2744], ["g5_updatable_hub_amenity_id", 1132]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:23.730333"], ["updated_at", "2016-12-09 20:36:23.730333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:23.731662"], ["id", 1133]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2744], ["g5_updatable_hub_amenity_id", 1133]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2744]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:23.735928"], ["id", 2744]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:36:23.739029"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.741346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2745]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2745], ["g5_updatable_hub_amenity_id", 1132]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2745], ["g5_updatable_hub_amenity_id", 1133]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2745]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:23.760569"], ["id", 2745]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:36:23.764419"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.766743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2746]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2746]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:36:23.785291"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:36:23.786574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:23.790902"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.793192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2747]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2747]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:36:23.800841"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.802861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2748]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2748]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:36:23.809420"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.811202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2749]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:23.814995"], ["updated_at", "2016-12-09 20:36:23.814995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:23.816249"], ["id", 1134]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2749], ["g5_updatable_hub_amenity_id", 1134]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:23.820297"], ["updated_at", "2016-12-09 20:36:23.820297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:23.821695"], ["id", 1135]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2749], ["g5_updatable_hub_amenity_id", 1135]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2749]]  (0.1ms) SAVEPOINT active_record_1 SQL (7.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:23.826355"], ["id", 2749]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:36:23.837237"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.838962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2750]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2750], ["g5_updatable_hub_amenity_id", 1134]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2750], ["g5_updatable_hub_amenity_id", 1135]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2750]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:23.847237"], ["id", 2750]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:36:23.849648"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.851317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2751]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2751]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:36:23.873185"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:36:23.874377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:23.876911"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.878848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2752]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2752]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:36:23.885238"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.886888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2753]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2753]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:36:23.893187"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.895012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2754]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:23.898607"], ["updated_at", "2016-12-09 20:36:23.898607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:23.899601"], ["id", 1136]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2754], ["g5_updatable_hub_amenity_id", 1136]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:23.902118"], ["updated_at", "2016-12-09 20:36:23.902118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:23.903021"], ["id", 1137]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2754], ["g5_updatable_hub_amenity_id", 1137]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2754]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:23.906899"], ["id", 2754]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:36:23.909837"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.911826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2755]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2755], ["g5_updatable_hub_amenity_id", 1136]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2755], ["g5_updatable_hub_amenity_id", 1137]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2755]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:23.920587"], ["id", 2755]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:36:23.923697"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.925532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2756]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2756]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 20:36:23.938172"], ["id", 1140]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 20:36:23.952625"], ["id", 2752]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2752]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2752]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2756]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2756]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2755]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1270]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1271]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2755]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2754]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1268]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1269]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2754]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2753]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2753]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:36:23.977508"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:36:23.978673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:23.981432"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.983554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2757]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2757]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:36:23.991906"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:23.994126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2758]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2758]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:36:24.003036"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.005442"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2759]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.011919"], ["updated_at", "2016-12-09 20:36:24.011919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.013204"], ["id", 1138]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2759], ["g5_updatable_hub_amenity_id", 1138]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.015917"], ["updated_at", "2016-12-09 20:36:24.015917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.017076"], ["id", 1139]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2759], ["g5_updatable_hub_amenity_id", 1139]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2759]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.020803"], ["id", 2759]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:36:24.024151"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.026497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2760]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2760], ["g5_updatable_hub_amenity_id", 1138]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2760], ["g5_updatable_hub_amenity_id", 1139]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2760]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.036283"], ["id", 2760]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:36:24.039021"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.041342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2761]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2761]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 20:36:24.064260"], ["id", 1141]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.2ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2761]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2761]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2760]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1274]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1275]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2760]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2759]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1272]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1273]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2759]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2758]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2758]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2757]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2757]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.082827"], ["updated_at", "2016-12-09 20:36:24.082827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.086019"], ["updated_at", "2016-12-09 20:36:24.086019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.087994"], ["updated_at", "2016-12-09 20:36:24.087994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.089849"], ["updated_at", "2016-12-09 20:36:24.089849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.091693"], ["updated_at", "2016-12-09 20:36:24.091693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:36:24.107138"], ["updated_at", "2016-12-09 20:36:24.107138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.109090"], ["updated_at", "2016-12-09 20:36:24.109090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.110853"], ["updated_at", "2016-12-09 20:36:24.110853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.112302"], ["updated_at", "2016-12-09 20:36:24.112302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.113865"], ["updated_at", "2016-12-09 20:36:24.113865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.132737"], ["updated_at", "2016-12-09 20:36:24.132737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.134807"], ["updated_at", "2016-12-09 20:36:24.134807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.138619"], ["updated_at", "2016-12-09 20:36:24.138619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.140232"], ["updated_at", "2016-12-09 20:36:24.140232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.145356"], ["updated_at", "2016-12-09 20:36:24.145356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.147269"], ["updated_at", "2016-12-09 20:36:24.147269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.151418"], ["updated_at", "2016-12-09 20:36:24.151418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.153379"], ["updated_at", "2016-12-09 20:36:24.153379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.156856"], ["updated_at", "2016-12-09 20:36:24.156856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.158877"], ["updated_at", "2016-12-09 20:36:24.158877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.162925"], ["updated_at", "2016-12-09 20:36:24.162925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.164379"], ["updated_at", "2016-12-09 20:36:24.164379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.165502"], ["updated_at", "2016-12-09 20:36:24.165502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2778], ["g5_updatable_hub_amenity_id", 1140]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2778], ["g5_updatable_hub_amenity_id", 1141]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2778]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 20:36:24.170132"], ["id", 2778]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2778]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2778]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.173940"], ["updated_at", "2016-12-09 20:36:24.173940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.175692"], ["updated_at", "2016-12-09 20:36:24.175692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.177297"], ["updated_at", "2016-12-09 20:36:24.177297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2779], ["g5_updatable_hub_amenity_id", 1142]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2779], ["g5_updatable_hub_amenity_id", 1143]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2779]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 20:36:24.182784"], ["id", 2779]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2779]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2779]] G5Updatable::HubAmenitiesLocation Load (0.2ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2779]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2779]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2779]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.195209"], ["updated_at", "2016-12-09 20:36:24.195209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.196950"], ["updated_at", "2016-12-09 20:36:24.196950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.199631"], ["updated_at", "2016-12-09 20:36:24.199631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.201123"], ["updated_at", "2016-12-09 20:36:24.201123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.204943"], ["updated_at", "2016-12-09 20:36:24.204943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.206373"], ["updated_at", "2016-12-09 20:36:24.206373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.209223"], ["updated_at", "2016-12-09 20:36:24.209223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.210496"], ["updated_at", "2016-12-09 20:36:24.210496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.213964"], ["updated_at", "2016-12-09 20:36:24.213964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.215384"], ["updated_at", "2016-12-09 20:36:24.215384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.217638"], ["updated_at", "2016-12-09 20:36:24.217638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.218974"], ["updated_at", "2016-12-09 20:36:24.218974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.223514"], ["updated_at", "2016-12-09 20:36:24.223514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.224983"], ["updated_at", "2016-12-09 20:36:24.224983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.227593"], ["updated_at", "2016-12-09 20:36:24.227593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.228830"], ["updated_at", "2016-12-09 20:36:24.228830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:36:24.231996"], ["updated_at", "2016-12-09 20:36:24.231996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.233498"], ["updated_at", "2016-12-09 20:36:24.233498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.236311"], ["updated_at", "2016-12-09 20:36:24.236311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.237678"], ["updated_at", "2016-12-09 20:36:24.237678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 20:36:24.240381"], ["updated_at", "2016-12-09 20:36:24.240381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 20:36:24.242820"], ["updated_at", "2016-12-09 20:36:24.242820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.257951"], ["updated_at", "2016-12-09 20:36:24.257951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.260254"], ["updated_at", "2016-12-09 20:36:24.260254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.261503"], ["updated_at", "2016-12-09 20:36:24.261503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.263895"], ["updated_at", "2016-12-09 20:36:24.263895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.265288"], ["updated_at", "2016-12-09 20:36:24.265288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.267245"], ["updated_at", "2016-12-09 20:36:24.267245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.268361"], ["updated_at", "2016-12-09 20:36:24.268361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.270937"], ["updated_at", "2016-12-09 20:36:24.270937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.272277"], ["updated_at", "2016-12-09 20:36:24.272277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.274600"], ["updated_at", "2016-12-09 20:36:24.274600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.275941"], ["updated_at", "2016-12-09 20:36:24.275941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.279259"], ["updated_at", "2016-12-09 20:36:24.279259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.280498"], ["updated_at", "2016-12-09 20:36:24.280498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.282410"], ["updated_at", "2016-12-09 20:36:24.282410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.283529"], ["updated_at", "2016-12-09 20:36:24.283529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.285936"], ["updated_at", "2016-12-09 20:36:24.285936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.287186"], ["updated_at", "2016-12-09 20:36:24.287186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.289043"], ["updated_at", "2016-12-09 20:36:24.289043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.290340"], ["updated_at", "2016-12-09 20:36:24.290340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.295681"], ["updated_at", "2016-12-09 20:36:24.295681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.296952"], ["updated_at", "2016-12-09 20:36:24.296952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.299017"], ["updated_at", "2016-12-09 20:36:24.299017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.300139"], ["updated_at", "2016-12-09 20:36:24.300139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.303279"], ["updated_at", "2016-12-09 20:36:24.303279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.304507"], ["updated_at", "2016-12-09 20:36:24.304507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.306703"], ["updated_at", "2016-12-09 20:36:24.306703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.307808"], ["updated_at", "2016-12-09 20:36:24.307808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.310878"], ["updated_at", "2016-12-09 20:36:24.310878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.312152"], ["updated_at", "2016-12-09 20:36:24.312152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.314160"], ["updated_at", "2016-12-09 20:36:24.314160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:36:24.315260"], ["updated_at", "2016-12-09 20:36:24.315260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 20:36:24.331340"], ["updated_at", "2016-12-09 20:36:24.331340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.333060"], ["updated_at", "2016-12-09 20:36:24.333060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.335399"], ["updated_at", "2016-12-09 20:36:24.335399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.336639"], ["updated_at", "2016-12-09 20:36:24.336639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.340385"], ["updated_at", "2016-12-09 20:36:24.340385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.342245"], ["updated_at", "2016-12-09 20:36:24.342245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.344571"], ["updated_at", "2016-12-09 20:36:24.344571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.350468"], ["updated_at", "2016-12-09 20:36:24.350468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2812]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.354932"], ["updated_at", "2016-12-09 20:36:24.354932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1174]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.359363"], ["updated_at", "2016-12-09 20:36:24.359363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.360868"], ["updated_at", "2016-12-09 20:36:24.360868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.364642"], ["updated_at", "2016-12-09 20:36:24.364642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.48ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.372664"], ["updated_at", "2016-12-09 20:36:24.372664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.31ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.395900"], ["updated_at", "2016-12-09 20:36:24.395900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 20:36:24.398021"], ["id", 1176]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1176]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:36:24.401314"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:36:24.401622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:36:24.404316"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:36:24.404620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:36:24.407138"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:36:24.407464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:36:24.410741"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:36:24.411201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:36:24.413723"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:36:24.414023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:36:24.416577"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:36:24.416879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:36:24.419306"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:36:24.419666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:36:24.423515"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:36:24.424482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.426857"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.428745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2816]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2816]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:36:24.434674"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.436357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2817]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2817]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:36:24.442257"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.444105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2818]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.448183"], ["updated_at", "2016-12-09 20:36:24.448183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.449269"], ["id", 1144]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2818], ["g5_updatable_hub_amenity_id", 1144]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.451713"], ["updated_at", "2016-12-09 20:36:24.451713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.452646"], ["id", 1145]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2818], ["g5_updatable_hub_amenity_id", 1145]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2818]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.456089"], ["id", 2818]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:36:24.458635"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.460484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2819]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2819], ["g5_updatable_hub_amenity_id", 1144]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2819], ["g5_updatable_hub_amenity_id", 1145]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2819]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.468925"], ["id", 2819]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:36:24.471617"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.473651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2820]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2820]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.487814"], ["updated_at", "2016-12-09 20:36:24.487814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:36:24.489807"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1185]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.493707"], ["updated_at", "2016-12-09 20:36:24.493707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:36:24.495134"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1186]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.498404"], ["updated_at", "2016-12-09 20:36:24.498404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:36:24.499679"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1187]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.502933"], ["updated_at", "2016-12-09 20:36:24.502933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:36:24.504213"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1188]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.510180"], ["updated_at", "2016-12-09 20:36:24.510180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 20:36:24.511583"], ["updated_at", "2016-12-09 20:36:24.511583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.512828"], ["updated_at", "2016-12-09 20:36:24.512828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.513823"], ["updated_at", "2016-12-09 20:36:24.513823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.518891"], ["updated_at", "2016-12-09 20:36:24.518891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2821], ["g5_updatable_hub_amenity_id", 1146]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2821], ["g5_updatable_hub_amenity_id", 1147]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.8ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.527571"], ["updated_at", "2016-12-09 20:36:24.527571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 20:36:24.529003"], ["updated_at", "2016-12-09 20:36:24.529003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.530341"], ["updated_at", "2016-12-09 20:36:24.530341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.531548"], ["updated_at", "2016-12-09 20:36:24.531548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.532558"], ["updated_at", "2016-12-09 20:36:24.532558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2822], ["g5_updatable_hub_amenity_id", 1149]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2822], ["g5_updatable_hub_amenity_id", 1150]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.578547"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.580618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2823]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.584405"], ["updated_at", "2016-12-09 20:36:24.584405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.585374"], ["id", 1152]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2823], ["g5_updatable_hub_amenity_id", 1152]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.594535"], ["updated_at", "2016-12-09 20:36:24.594535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.596668"], ["id", 1153]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2823], ["g5_updatable_hub_amenity_id", 1153]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2823]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.601005"], ["id", 2823]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.607779"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.609719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2824]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.614235"], ["updated_at", "2016-12-09 20:36:24.614235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.615349"], ["id", 1154]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2824], ["g5_updatable_hub_amenity_id", 1154]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.618122"], ["updated_at", "2016-12-09 20:36:24.618122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.619166"], ["id", 1155]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2824], ["g5_updatable_hub_amenity_id", 1155]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2824]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.622850"], ["id", 2824]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2824]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2824]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.630819"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.632870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2825]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.637524"], ["updated_at", "2016-12-09 20:36:24.637524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.638704"], ["id", 1156]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2825], ["g5_updatable_hub_amenity_id", 1156]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.641785"], ["updated_at", "2016-12-09 20:36:24.641785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.642854"], ["id", 1157]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2825], ["g5_updatable_hub_amenity_id", 1157]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2825]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.646591"], ["id", 2825]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.650890"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.652873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2826]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.657292"], ["updated_at", "2016-12-09 20:36:24.657292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.658474"], ["id", 1158]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2826], ["g5_updatable_hub_amenity_id", 1158]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.661325"], ["updated_at", "2016-12-09 20:36:24.661325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.662354"], ["id", 1159]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2826], ["g5_updatable_hub_amenity_id", 1159]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2826]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.665916"], ["id", 2826]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.671405"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.673564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2827]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.678269"], ["updated_at", "2016-12-09 20:36:24.678269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.679447"], ["id", 1160]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2827], ["g5_updatable_hub_amenity_id", 1160]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.682298"], ["updated_at", "2016-12-09 20:36:24.682298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.683388"], ["id", 1161]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2827], ["g5_updatable_hub_amenity_id", 1161]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2827]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.686989"], ["id", 2827]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.692088"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.693845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2828]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.697951"], ["updated_at", "2016-12-09 20:36:24.697951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.699053"], ["id", 1162]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2828], ["g5_updatable_hub_amenity_id", 1162]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.701914"], ["updated_at", "2016-12-09 20:36:24.701914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.702984"], ["id", 1163]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2828], ["g5_updatable_hub_amenity_id", 1163]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2828]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.706544"], ["id", 2828]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:24.709020"], ["updated_at", "2016-12-09 20:36:24.709020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.710389"], ["updated_at", "2016-12-09 20:36:24.710389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1191]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2829]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.713910"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.715647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2830]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.719182"], ["updated_at", "2016-12-09 20:36:24.719182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.720185"], ["id", 1164]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2830], ["g5_updatable_hub_amenity_id", 1164]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.723105"], ["updated_at", "2016-12-09 20:36:24.723105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.724076"], ["id", 1165]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2830], ["g5_updatable_hub_amenity_id", 1165]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2830]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.727844"], ["id", 2830]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.733549"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.735296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2831]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.738972"], ["updated_at", "2016-12-09 20:36:24.738972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.740210"], ["id", 1166]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2831], ["g5_updatable_hub_amenity_id", 1166]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.742694"], ["updated_at", "2016-12-09 20:36:24.742694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.743623"], ["id", 1167]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2831], ["g5_updatable_hub_amenity_id", 1167]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2831]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.747067"], ["id", 2831]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.752009"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.753731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2832]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.757471"], ["updated_at", "2016-12-09 20:36:24.757471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.758454"], ["id", 1168]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2832], ["g5_updatable_hub_amenity_id", 1168]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.761094"], ["updated_at", "2016-12-09 20:36:24.761094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.762096"], ["id", 1169]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2832], ["g5_updatable_hub_amenity_id", 1169]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2832]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.765451"], ["id", 2832]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.770543"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.772741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2833]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.781860"], ["updated_at", "2016-12-09 20:36:24.781860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.782962"], ["id", 1170]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2833], ["g5_updatable_hub_amenity_id", 1170]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.785721"], ["updated_at", "2016-12-09 20:36:24.785721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.786691"], ["id", 1171]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2833], ["g5_updatable_hub_amenity_id", 1171]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2833]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.790378"], ["id", 2833]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.799681"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.803799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2834]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.807731"], ["updated_at", "2016-12-09 20:36:24.807731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.808645"], ["id", 1172]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2834], ["g5_updatable_hub_amenity_id", 1172]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.811085"], ["updated_at", "2016-12-09 20:36:24.811085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.811955"], ["id", 1173]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2834], ["g5_updatable_hub_amenity_id", 1173]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2834]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.815158"], ["id", 2834]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.819736"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.821349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2835]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.825531"], ["updated_at", "2016-12-09 20:36:24.825531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.826629"], ["id", 1174]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2835], ["g5_updatable_hub_amenity_id", 1174]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.829320"], ["updated_at", "2016-12-09 20:36:24.829320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.830224"], ["id", 1175]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2835], ["g5_updatable_hub_amenity_id", 1175]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2835]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.833346"], ["id", 2835]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:36:24.837437"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:36:24.839694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.846611"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2836]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2836]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.852756"], ["updated_at", "2016-12-09 20:36:24.852756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.853714"], ["id", 1176]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2836], ["g5_updatable_hub_amenity_id", 1176]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.856360"], ["updated_at", "2016-12-09 20:36:24.856360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.857229"], ["id", 1177]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2836], ["g5_updatable_hub_amenity_id", 1177]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2836]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.860286"], ["id", 2836]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2836]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:36:24.864234"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:36:24.866389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.873227"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2837]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2837]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.879495"], ["updated_at", "2016-12-09 20:36:24.879495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.880458"], ["id", 1178]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2837], ["g5_updatable_hub_amenity_id", 1178]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.882902"], ["updated_at", "2016-12-09 20:36:24.882902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.883812"], ["id", 1179]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2837], ["g5_updatable_hub_amenity_id", 1179]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2837]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.887172"], ["id", 2837]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:36:24.889403"], ["updated_at", "2016-12-09 20:36:24.889403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.890864"], ["updated_at", "2016-12-09 20:36:24.890864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1192]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2838]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.893650"], ["updated_at", "2016-12-09 20:36:24.893650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.895311"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2839]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2839]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.901197"], ["updated_at", "2016-12-09 20:36:24.901197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.902105"], ["id", 1180]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2839], ["g5_updatable_hub_amenity_id", 1180]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.904479"], ["updated_at", "2016-12-09 20:36:24.904479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.905478"], ["id", 1181]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2839], ["g5_updatable_hub_amenity_id", 1181]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2839]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.909663"], ["id", 2839]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.913488"], ["updated_at", "2016-12-09 20:36:24.913488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:24.915592"], ["updated_at", "2016-12-09 20:36:24.915592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.917218"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2841]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2841]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.923575"], ["updated_at", "2016-12-09 20:36:24.923575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.924656"], ["id", 1182]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2841], ["g5_updatable_hub_amenity_id", 1182]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.927532"], ["updated_at", "2016-12-09 20:36:24.927532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.928512"], ["id", 1183]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2841], ["g5_updatable_hub_amenity_id", 1183]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2841]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.931619"], ["id", 2841]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.935213"], ["updated_at", "2016-12-09 20:36:24.935213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.936696"], ["updated_at", "2016-12-09 20:36:24.936696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2842], ["g5_updatable_hub_amenity_id", 1184]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.939442"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2842]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2842]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.945804"], ["updated_at", "2016-12-09 20:36:24.945804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.946765"], ["id", 1185]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2842], ["g5_updatable_hub_amenity_id", 1185]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.949338"], ["updated_at", "2016-12-09 20:36:24.949338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.950326"], ["id", 1186]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2842], ["g5_updatable_hub_amenity_id", 1186]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2842]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.953507"], ["id", 2842]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.958150"], ["updated_at", "2016-12-09 20:36:24.958150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.959573"], ["updated_at", "2016-12-09 20:36:24.959573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2843], ["g5_updatable_hub_amenity_id", 1187]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.962136"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2843]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2843]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.973274"], ["updated_at", "2016-12-09 20:36:24.973274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.974590"], ["id", 1188]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2843], ["g5_updatable_hub_amenity_id", 1188]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.977556"], ["updated_at", "2016-12-09 20:36:24.977556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:24.978602"], ["id", 1189]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2843], ["g5_updatable_hub_amenity_id", 1189]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2843]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:24.981748"], ["id", 2843]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:24.985408"], ["updated_at", "2016-12-09 20:36:24.985408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-09 20:36:24.986789"], ["updated_at", "2016-12-09 20:36:24.986789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2844], ["g5_updatable_hub_amenity_id", 1190]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:24.989398"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2844]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2844]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:24.995252"], ["updated_at", "2016-12-09 20:36:24.995252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:24.996182"], ["id", 1191]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2844], ["g5_updatable_hub_amenity_id", 1191]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:24.998937"], ["updated_at", "2016-12-09 20:36:24.998937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.000084"], ["id", 1192]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2844], ["g5_updatable_hub_amenity_id", 1192]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2844]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.003312"], ["id", 2844]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2844]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.008567"], ["updated_at", "2016-12-09 20:36:25.008567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-09 20:36:25.009929"], ["updated_at", "2016-12-09 20:36:25.009929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2845], ["g5_updatable_hub_amenity_id", 1193]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:25.012502"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2845]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2845]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:25.018881"], ["updated_at", "2016-12-09 20:36:25.018881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:25.019924"], ["id", 1194]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2845], ["g5_updatable_hub_amenity_id", 1194]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:25.022534"], ["updated_at", "2016-12-09 20:36:25.022534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.023480"], ["id", 1195]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2845], ["g5_updatable_hub_amenity_id", 1195]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2845]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.027016"], ["id", 2845]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.031824"], ["updated_at", "2016-12-09 20:36:25.031824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-09 20:36:25.033264"], ["updated_at", "2016-12-09 20:36:25.033264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2846], ["g5_updatable_hub_amenity_id", 1196]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:25.035788"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2846]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2846]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:25.041451"], ["updated_at", "2016-12-09 20:36:25.041451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:25.042348"], ["id", 1197]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2846], ["g5_updatable_hub_amenity_id", 1197]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:25.044758"], ["updated_at", "2016-12-09 20:36:25.044758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.045773"], ["id", 1198]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2846], ["g5_updatable_hub_amenity_id", 1198]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2846]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.048892"], ["id", 2846]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:25.051273"], ["updated_at", "2016-12-09 20:36:25.051273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:25.052503"], ["updated_at", "2016-12-09 20:36:25.052503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1193]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2847]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.055284"], ["updated_at", "2016-12-09 20:36:25.055284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-09 20:36:25.056821"], ["updated_at", "2016-12-09 20:36:25.056821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2848], ["g5_updatable_hub_amenity_id", 1199]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:25.059273"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2848]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2848]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:25.064927"], ["updated_at", "2016-12-09 20:36:25.064927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:25.065839"], ["id", 1200]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2848], ["g5_updatable_hub_amenity_id", 1200]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:25.068409"], ["updated_at", "2016-12-09 20:36:25.068409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.069353"], ["id", 1201]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2848], ["g5_updatable_hub_amenity_id", 1201]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2848]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.072572"], ["id", 2848]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.076792"], ["updated_at", "2016-12-09 20:36:25.076792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-09 20:36:25.078389"], ["updated_at", "2016-12-09 20:36:25.078389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2849], ["g5_updatable_hub_amenity_id", 1202]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:25.080856"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2849]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2849]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:25.086480"], ["updated_at", "2016-12-09 20:36:25.086480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:25.087389"], ["id", 1203]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2849], ["g5_updatable_hub_amenity_id", 1203]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:25.090104"], ["updated_at", "2016-12-09 20:36:25.090104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.091221"], ["id", 1204]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2849], ["g5_updatable_hub_amenity_id", 1204]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2849]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.095553"], ["id", 2849]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:36:25.098172"], ["updated_at", "2016-12-09 20:36:25.098172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:36:25.099404"], ["updated_at", "2016-12-09 20:36:25.099404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1194]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2850]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.102199"], ["updated_at", "2016-12-09 20:36:25.102199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-09 20:36:25.103581"], ["updated_at", "2016-12-09 20:36:25.103581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2851], ["g5_updatable_hub_amenity_id", 1205]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:25.106250"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2851]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2851]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:25.111871"], ["updated_at", "2016-12-09 20:36:25.111871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:25.112817"], ["id", 1206]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2851], ["g5_updatable_hub_amenity_id", 1206]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:25.115343"], ["updated_at", "2016-12-09 20:36:25.115343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.116367"], ["id", 1207]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2851], ["g5_updatable_hub_amenity_id", 1207]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2851]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.119641"], ["id", 2851]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.124576"], ["updated_at", "2016-12-09 20:36:25.124576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-09 20:36:25.126245"], ["updated_at", "2016-12-09 20:36:25.126245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2852], ["g5_updatable_hub_amenity_id", 1208]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:25.129196"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2852]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2852]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:25.134922"], ["updated_at", "2016-12-09 20:36:25.134922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:25.135876"], ["id", 1209]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2852], ["g5_updatable_hub_amenity_id", 1209]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:25.138308"], ["updated_at", "2016-12-09 20:36:25.138308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.139459"], ["id", 1210]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2852], ["g5_updatable_hub_amenity_id", 1210]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2852]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.142635"], ["id", 2852]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.147657"], ["updated_at", "2016-12-09 20:36:25.147657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-09 20:36:25.149184"], ["updated_at", "2016-12-09 20:36:25.149184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2853], ["g5_updatable_hub_amenity_id", 1211]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:25.151978"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2853]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2853]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:25.157781"], ["updated_at", "2016-12-09 20:36:25.157781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:25.158773"], ["id", 1212]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2853], ["g5_updatable_hub_amenity_id", 1212]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:25.161319"], ["updated_at", "2016-12-09 20:36:25.161319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.162316"], ["id", 1213]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2853], ["g5_updatable_hub_amenity_id", 1213]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2853]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.165513"], ["id", 2853]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.170321"], ["updated_at", "2016-12-09 20:36:25.170321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:25.176702"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.178731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2855]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:25.182319"], ["updated_at", "2016-12-09 20:36:25.182319"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:25.183602"], ["id", 1214]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2855], ["g5_updatable_hub_amenity_id", 1214]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:25.186493"], ["updated_at", "2016-12-09 20:36:25.186493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.187438"], ["id", 1215]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2855], ["g5_updatable_hub_amenity_id", 1215]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2855]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.190906"], ["id", 2855]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2854]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2854]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.198276"], ["updated_at", "2016-12-09 20:36:25.198276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:36:25.203067"], ["updated_at", "2016-12-09 20:36:25.203067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:25.206742"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.208357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2858]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:25.211853"], ["updated_at", "2016-12-09 20:36:25.211853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:25.212911"], ["id", 1216]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2858], ["g5_updatable_hub_amenity_id", 1216]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:25.215290"], ["updated_at", "2016-12-09 20:36:25.215290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.216174"], ["id", 1217]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2858], ["g5_updatable_hub_amenity_id", 1217]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2858]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.219480"], ["id", 2858]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2856]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2856]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:25.227707"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.229634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2859]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:25.233041"], ["updated_at", "2016-12-09 20:36:25.233041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:25.234012"], ["id", 1218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2859], ["g5_updatable_hub_amenity_id", 1218]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:25.236524"], ["updated_at", "2016-12-09 20:36:25.236524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.237475"], ["id", 1219]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2859], ["g5_updatable_hub_amenity_id", 1219]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2859]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.240824"], ["id", 2859]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:25.247155"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:25.248992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2860]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:25.252778"], ["updated_at", "2016-12-09 20:36:25.252778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:25.253700"], ["id", 1220]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2860], ["g5_updatable_hub_amenity_id", 1220]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:25.256225"], ["updated_at", "2016-12-09 20:36:25.256225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:25.257103"], ["id", 1221]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2860], ["g5_updatable_hub_amenity_id", 1221]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2860]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:25.260143"], ["id", 2860]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:36:52.764297"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:36:52.767001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:36:52.775027"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:52.777862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2861]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2861]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:36:52.810745"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:52.812418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2862]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2862]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:36:52.818712"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:52.820484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2863]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:36:52.826783"], ["updated_at", "2016-12-09 20:36:52.826783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:36:52.829220"], ["id", 1222]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2863], ["g5_updatable_hub_amenity_id", 1222]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:36:52.835971"], ["updated_at", "2016-12-09 20:36:52.835971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:36:52.837107"], ["id", 1223]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2863], ["g5_updatable_hub_amenity_id", 1223]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2863]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:52.840927"], ["id", 2863]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:36:52.843683"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:52.845485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2864]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2864], ["g5_updatable_hub_amenity_id", 1222]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2864], ["g5_updatable_hub_amenity_id", 1223]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2864]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:36:52.854872"], ["id", 2864]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:36:52.857576"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:36:52.859356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2865]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2865]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:37:12.348484"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:37:12.350955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:37:12.360886"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:37:12.363775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2866]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2866]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:37:12.396374"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:37:12.398152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2867]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2867]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:37:12.405172"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:37:12.407017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2868]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:37:12.413763"], ["updated_at", "2016-12-09 20:37:12.413763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:37:12.415932"], ["id", 1224]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2868], ["g5_updatable_hub_amenity_id", 1224]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:37:12.422858"], ["updated_at", "2016-12-09 20:37:12.422858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:37:12.423967"], ["id", 1225]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2868], ["g5_updatable_hub_amenity_id", 1225]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2868]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:37:12.428315"], ["id", 2868]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:37:12.431235"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:37:12.433048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2869]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2869], ["g5_updatable_hub_amenity_id", 1224]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2869], ["g5_updatable_hub_amenity_id", 1225]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2869]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:37:12.441286"], ["id", 2869]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:37:12.443909"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:37:12.445640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2870]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2870]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2016-12-09 20:37:22.524328"], ["updated_at", "2016-12-09 20:37:22.524328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1197]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 20:37:22.537536"], ["updated_at", "2016-12-09 20:37:22.537536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:37:22.544358"], ["updated_at", "2016-12-09 20:37:22.544358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:51:45.809886"], ["updated_at", "2016-12-09 20:51:45.809886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:51:45.827868"], ["updated_at", "2016-12-09 20:51:45.827868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:51:45.843082"], ["updated_at", "2016-12-09 20:51:45.843082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1200]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:13.418016"], ["updated_at", "2016-12-09 20:52:13.418016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:13.436459"], ["updated_at", "2016-12-09 20:52:13.436459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:13.467198"], ["updated_at", "2016-12-09 20:52:13.467198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1202]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:16.473010"], ["updated_at", "2016-12-09 20:52:16.473010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.42ms) Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:16.491822"], ["updated_at", "2016-12-09 20:52:16.491822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.3ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:16.512676"], ["updated_at", "2016-12-09 20:52:16.512676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 20:52:16.518380"], ["updated_at", "2016-12-09 20:52:16.518380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:52:16.519821"], ["updated_at", "2016-12-09 20:52:16.519821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:52:16.520896"], ["updated_at", "2016-12-09 20:52:16.520896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:52:16.521817"], ["updated_at", "2016-12-09 20:52:16.521817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2876], ["g5_updatable_hub_amenity_id", 1226]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2876], ["g5_updatable_hub_amenity_id", 1227]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.8ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:16.543632"], ["updated_at", "2016-12-09 20:52:16.543632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 20:52:16.544872"], ["updated_at", "2016-12-09 20:52:16.544872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:52:16.546116"], ["updated_at", "2016-12-09 20:52:16.546116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 20:52:16.547479"], ["updated_at", "2016-12-09 20:52:16.547479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 20:52:16.548390"], ["updated_at", "2016-12-09 20:52:16.548390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2877], ["g5_updatable_hub_amenity_id", 1229]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2877], ["g5_updatable_hub_amenity_id", 1230]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:16.586393"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.589164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2878]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:16.593517"], ["updated_at", "2016-12-09 20:52:16.593517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:16.595430"], ["id", 1232]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2878], ["g5_updatable_hub_amenity_id", 1232]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:16.598956"], ["updated_at", "2016-12-09 20:52:16.598956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:16.599923"], ["id", 1233]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2878], ["g5_updatable_hub_amenity_id", 1233]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2878]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:16.604013"], ["id", 2878]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:52:16.614669"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:52:16.616328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:16.619324"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.621238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2879]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2879]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:52:16.627973"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.629783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2880]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2880]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:52:16.636948"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.638887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2881]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:16.642966"], ["updated_at", "2016-12-09 20:52:16.642966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:16.644003"], ["id", 1234]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2881], ["g5_updatable_hub_amenity_id", 1234]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:16.646689"], ["updated_at", "2016-12-09 20:52:16.646689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:16.647654"], ["id", 1235]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2881], ["g5_updatable_hub_amenity_id", 1235]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2881]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:16.651081"], ["id", 2881]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:52:16.654135"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.656084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2882]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2882], ["g5_updatable_hub_amenity_id", 1234]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2882], ["g5_updatable_hub_amenity_id", 1235]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2882]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:16.664474"], ["id", 2882]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:52:16.667290"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.669073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2883]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2883]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2881]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:52:16.689887"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:52:16.690986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:16.693201"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.695203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2884]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2884]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:52:16.703391"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.705585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2885]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2885]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:52:16.711906"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.713809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2886]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:16.717932"], ["updated_at", "2016-12-09 20:52:16.717932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:16.719366"], ["id", 1236]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2886], ["g5_updatable_hub_amenity_id", 1236]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:16.723105"], ["updated_at", "2016-12-09 20:52:16.723105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:16.724133"], ["id", 1237]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2886], ["g5_updatable_hub_amenity_id", 1237]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2886]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:16.727523"], ["id", 2886]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:52:16.730153"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.732077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2887]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2887], ["g5_updatable_hub_amenity_id", 1236]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2887], ["g5_updatable_hub_amenity_id", 1237]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2887]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:16.739991"], ["id", 2887]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:52:16.742516"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.744253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2888]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2888]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:52:16.756094"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:52:16.757183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:16.759450"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.763436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2889]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2889]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:52:16.770065"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.771650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2890]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2890]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:52:16.777214"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.778774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2891]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:16.782752"], ["updated_at", "2016-12-09 20:52:16.782752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:16.783796"], ["id", 1238]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2891], ["g5_updatable_hub_amenity_id", 1238]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:16.786555"], ["updated_at", "2016-12-09 20:52:16.786555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:16.787458"], ["id", 1239]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2891], ["g5_updatable_hub_amenity_id", 1239]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2891]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:16.790595"], ["id", 2891]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:52:16.792979"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.794694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2892]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2892], ["g5_updatable_hub_amenity_id", 1238]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2892], ["g5_updatable_hub_amenity_id", 1239]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2892]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:16.801950"], ["id", 2892]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:52:16.804298"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.806004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2893]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2893]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:52:16.823585"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:52:16.824622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:16.826894"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.828554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2894]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2894]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:52:16.835008"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.836852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2895]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2895]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:52:16.848405"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.850544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2896]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:16.854904"], ["updated_at", "2016-12-09 20:52:16.854904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:16.856028"], ["id", 1240]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2896], ["g5_updatable_hub_amenity_id", 1240]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:16.858565"], ["updated_at", "2016-12-09 20:52:16.858565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:16.859530"], ["id", 1241]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2896], ["g5_updatable_hub_amenity_id", 1241]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2896]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:16.862837"], ["id", 2896]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:52:16.865764"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.867734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2897]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2897], ["g5_updatable_hub_amenity_id", 1240]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2897], ["g5_updatable_hub_amenity_id", 1241]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2897]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:16.875839"], ["id", 2897]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:52:16.878320"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.880205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2898]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2898]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 20:52:16.899408"], ["id", 1208]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2898]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2898]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2897]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1386]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1387]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2897]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2896]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1384]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1385]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2896]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2895]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2895]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2894]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2894]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:52:16.916730"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:52:16.917785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:16.920455"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.922370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2899]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2899]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:52:16.928761"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.931236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2900]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2900]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:52:16.938300"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.940638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2901]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:16.946022"], ["updated_at", "2016-12-09 20:52:16.946022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:16.947380"], ["id", 1242]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2901], ["g5_updatable_hub_amenity_id", 1242]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:16.950178"], ["updated_at", "2016-12-09 20:52:16.950178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:16.951452"], ["id", 1243]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2901], ["g5_updatable_hub_amenity_id", 1243]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2901]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:16.956002"], ["id", 2901]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:52:16.959757"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.962166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2902]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2902], ["g5_updatable_hub_amenity_id", 1242]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2902], ["g5_updatable_hub_amenity_id", 1243]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2902]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:16.972499"], ["id", 2902]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:52:16.975646"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:16.977809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2903]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2903]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 20:52:16.999453"], ["id", 1209]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 20:52:17.006608"], ["id", 2899]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2899]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2899]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2903]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2903]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2902]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1390]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1391]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2902]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2901]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1388]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1389]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2901]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2900]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2900]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.035515"], ["updated_at", "2016-12-09 20:52:17.035515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2904]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.047504"], ["updated_at", "2016-12-09 20:52:17.047504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.049159"], ["updated_at", "2016-12-09 20:52:17.049159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 20:52:17.052608"], ["updated_at", "2016-12-09 20:52:17.052608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.054353"], ["updated_at", "2016-12-09 20:52:17.054353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.057071"], ["updated_at", "2016-12-09 20:52:17.057071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.058664"], ["updated_at", "2016-12-09 20:52:17.058664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.062411"], ["updated_at", "2016-12-09 20:52:17.062411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.063935"], ["updated_at", "2016-12-09 20:52:17.063935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.068255"], ["updated_at", "2016-12-09 20:52:17.068255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.069902"], ["updated_at", "2016-12-09 20:52:17.069902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.073109"], ["updated_at", "2016-12-09 20:52:17.073109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.075141"], ["updated_at", "2016-12-09 20:52:17.075141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.091926"], ["updated_at", "2016-12-09 20:52:17.091926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.093208"], ["updated_at", "2016-12-09 20:52:17.093208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.104101"], ["updated_at", "2016-12-09 20:52:17.104101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.106338"], ["updated_at", "2016-12-09 20:52:17.106338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.108307"], ["updated_at", "2016-12-09 20:52:17.108307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.111734"], ["updated_at", "2016-12-09 20:52:17.111734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.112845"], ["updated_at", "2016-12-09 20:52:17.112845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.113893"], ["updated_at", "2016-12-09 20:52:17.113893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2920], ["g5_updatable_hub_amenity_id", 1244]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2920], ["g5_updatable_hub_amenity_id", 1245]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2920]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-7|amenity-8|"], ["updated_at", "2016-12-09 20:52:17.118408"], ["id", 2920]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2920]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2920]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2920]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2920]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2920]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.122955"], ["updated_at", "2016-12-09 20:52:17.122955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.124236"], ["updated_at", "2016-12-09 20:52:17.124236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.125251"], ["updated_at", "2016-12-09 20:52:17.125251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2921], ["g5_updatable_hub_amenity_id", 1246]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2921], ["g5_updatable_hub_amenity_id", 1247]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2921]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-10|amenity-9|"], ["updated_at", "2016-12-09 20:52:17.129499"], ["id", 2921]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2921]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2921]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.133127"], ["updated_at", "2016-12-09 20:52:17.133127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.134603"], ["updated_at", "2016-12-09 20:52:17.134603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.136648"], ["updated_at", "2016-12-09 20:52:17.136648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.137783"], ["updated_at", "2016-12-09 20:52:17.137783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 20:52:17.139939"], ["updated_at", "2016-12-09 20:52:17.139939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.141781"], ["updated_at", "2016-12-09 20:52:17.141781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.142987"], ["updated_at", "2016-12-09 20:52:17.142987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.144909"], ["updated_at", "2016-12-09 20:52:17.144909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.145990"], ["updated_at", "2016-12-09 20:52:17.145990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.148332"], ["updated_at", "2016-12-09 20:52:17.148332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.149580"], ["updated_at", "2016-12-09 20:52:17.149580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.151685"], ["updated_at", "2016-12-09 20:52:17.151685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.152966"], ["updated_at", "2016-12-09 20:52:17.152966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.155715"], ["updated_at", "2016-12-09 20:52:17.155715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.156997"], ["updated_at", "2016-12-09 20:52:17.156997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.159012"], ["updated_at", "2016-12-09 20:52:17.159012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.160165"], ["updated_at", "2016-12-09 20:52:17.160165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.163253"], ["updated_at", "2016-12-09 20:52:17.163253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.164535"], ["updated_at", "2016-12-09 20:52:17.164535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.166676"], ["updated_at", "2016-12-09 20:52:17.166676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.167781"], ["updated_at", "2016-12-09 20:52:17.167781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.171159"], ["updated_at", "2016-12-09 20:52:17.171159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.172540"], ["updated_at", "2016-12-09 20:52:17.172540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.174586"], ["updated_at", "2016-12-09 20:52:17.174586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.175704"], ["updated_at", "2016-12-09 20:52:17.175704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.178362"], ["updated_at", "2016-12-09 20:52:17.178362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.179588"], ["updated_at", "2016-12-09 20:52:17.179588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.181722"], ["updated_at", "2016-12-09 20:52:17.181722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.183001"], ["updated_at", "2016-12-09 20:52:17.183001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:52:17.206522"], ["updated_at", "2016-12-09 20:52:17.206522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.208052"], ["updated_at", "2016-12-09 20:52:17.208052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.210217"], ["updated_at", "2016-12-09 20:52:17.210217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.211313"], ["updated_at", "2016-12-09 20:52:17.211313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.214925"], ["updated_at", "2016-12-09 20:52:17.214925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.216367"], ["updated_at", "2016-12-09 20:52:17.216367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.218661"], ["updated_at", "2016-12-09 20:52:17.218661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.219772"], ["updated_at", "2016-12-09 20:52:17.219772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.222574"], ["updated_at", "2016-12-09 20:52:17.222574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.223777"], ["updated_at", "2016-12-09 20:52:17.223777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.225676"], ["updated_at", "2016-12-09 20:52:17.225676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.226711"], ["updated_at", "2016-12-09 20:52:17.226711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.229379"], ["updated_at", "2016-12-09 20:52:17.229379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.230612"], ["updated_at", "2016-12-09 20:52:17.230612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.232762"], ["updated_at", "2016-12-09 20:52:17.232762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.234120"], ["updated_at", "2016-12-09 20:52:17.234120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.237298"], ["updated_at", "2016-12-09 20:52:17.237298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.238493"], ["updated_at", "2016-12-09 20:52:17.238493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.240580"], ["updated_at", "2016-12-09 20:52:17.240580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.241686"], ["updated_at", "2016-12-09 20:52:17.241686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.245133"], ["updated_at", "2016-12-09 20:52:17.245133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.246357"], ["updated_at", "2016-12-09 20:52:17.246357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.248363"], ["updated_at", "2016-12-09 20:52:17.248363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:52:17.249441"], ["updated_at", "2016-12-09 20:52:17.249441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 20:52:17.275453"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 20:52:17.276423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.278576"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.280296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2949]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2949]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 20:52:17.286534"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.288167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2950]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2950]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 20:52:17.293763"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.295474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2951]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.299143"], ["updated_at", "2016-12-09 20:52:17.299143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.300129"], ["id", 1248]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2951], ["g5_updatable_hub_amenity_id", 1248]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.302990"], ["updated_at", "2016-12-09 20:52:17.302990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.304182"], ["id", 1249]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2951], ["g5_updatable_hub_amenity_id", 1249]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2951]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.307553"], ["id", 2951]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 20:52:17.310068"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.311845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2952]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2952], ["g5_updatable_hub_amenity_id", 1248]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2952], ["g5_updatable_hub_amenity_id", 1249]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2952]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.320342"], ["id", 2952]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 20:52:17.323058"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.328570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2953]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2953]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:52:17.343349"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:52:17.343859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:52:17.346815"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:52:17.347218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:52:17.350387"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:52:17.350854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:52:17.354954"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:52:17.355417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:52:17.366687"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:52:17.367153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:52:17.370456"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:52:17.370911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:52:17.374045"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 20:52:17.374486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.377493"], ["updated_at", "2016-12-09 20:52:17.377493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:52:17.378770"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1246]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.382078"], ["updated_at", "2016-12-09 20:52:17.382078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:52:17.383582"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1247]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.387098"], ["updated_at", "2016-12-09 20:52:17.387098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:52:17.388263"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1248]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:17.391441"], ["updated_at", "2016-12-09 20:52:17.391441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 20:52:17.392617"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1249]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.395862"], ["updated_at", "2016-12-09 20:52:17.395862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 20:52:17.397878"], ["id", 1250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1250]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:52:17.415988"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:52:17.418368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.425601"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2954]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2954]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.432042"], ["updated_at", "2016-12-09 20:52:17.432042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.433199"], ["id", 1250]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2954], ["g5_updatable_hub_amenity_id", 1250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.436496"], ["updated_at", "2016-12-09 20:52:17.436496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.437871"], ["id", 1251]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2954], ["g5_updatable_hub_amenity_id", 1251]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2954]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.441745"], ["id", 2954]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2954]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 19:52:17.445886"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 20:52:17.448397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.455948"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2955]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2955]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.462032"], ["updated_at", "2016-12-09 20:52:17.462032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.462998"], ["id", 1252]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2955], ["g5_updatable_hub_amenity_id", 1252]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.465803"], ["updated_at", "2016-12-09 20:52:17.465803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.466730"], ["id", 1253]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2955], ["g5_updatable_hub_amenity_id", 1253]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2955]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.470238"], ["id", 2955]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.472825"], ["updated_at", "2016-12-09 20:52:17.472825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.474116"], ["updated_at", "2016-12-09 20:52:17.474116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1251]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2956]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.479026"], ["updated_at", "2016-12-09 20:52:17.479026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 20:52:17.484097"], ["updated_at", "2016-12-09 20:52:17.484097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.487713"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.489404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2959]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.492750"], ["updated_at", "2016-12-09 20:52:17.492750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.493693"], ["id", 1254]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2959], ["g5_updatable_hub_amenity_id", 1254]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.496039"], ["updated_at", "2016-12-09 20:52:17.496039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.497156"], ["id", 1255]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2959], ["g5_updatable_hub_amenity_id", 1255]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2959]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.500334"], ["id", 2959]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2957]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2957]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.507162"], ["updated_at", "2016-12-09 20:52:17.507162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.508854"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2960]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2960]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.514914"], ["updated_at", "2016-12-09 20:52:17.514914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.515992"], ["id", 1256]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2960], ["g5_updatable_hub_amenity_id", 1256]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.518614"], ["updated_at", "2016-12-09 20:52:17.518614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.519553"], ["id", 1257]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2960], ["g5_updatable_hub_amenity_id", 1257]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2960]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.522852"], ["id", 2960]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.526424"], ["updated_at", "2016-12-09 20:52:17.526424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.528132"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2961]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2961]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.534775"], ["updated_at", "2016-12-09 20:52:17.534775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.535829"], ["id", 1258]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2961], ["g5_updatable_hub_amenity_id", 1258]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.538206"], ["updated_at", "2016-12-09 20:52:17.538206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.539309"], ["id", 1259]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2961], ["g5_updatable_hub_amenity_id", 1259]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2961]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.542501"], ["id", 2961]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.550892"], ["updated_at", "2016-12-09 20:52:17.550892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.552954"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2962]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.559305"], ["updated_at", "2016-12-09 20:52:17.559305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.560285"], ["id", 1260]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2962], ["g5_updatable_hub_amenity_id", 1260]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.562637"], ["updated_at", "2016-12-09 20:52:17.562637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.563580"], ["id", 1261]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2962], ["g5_updatable_hub_amenity_id", 1261]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2962]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.567138"], ["id", 2962]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.571242"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.573200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2963]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.576977"], ["updated_at", "2016-12-09 20:52:17.576977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.577940"], ["id", 1262]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2963], ["g5_updatable_hub_amenity_id", 1262]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.580386"], ["updated_at", "2016-12-09 20:52:17.580386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.581670"], ["id", 1263]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2963], ["g5_updatable_hub_amenity_id", 1263]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2963]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.585559"], ["id", 2963]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2963]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2963]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.592552"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.594482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2964]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.598293"], ["updated_at", "2016-12-09 20:52:17.598293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.599216"], ["id", 1264]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2964], ["g5_updatable_hub_amenity_id", 1264]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.601784"], ["updated_at", "2016-12-09 20:52:17.601784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.602687"], ["id", 1265]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2964], ["g5_updatable_hub_amenity_id", 1265]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2964]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.606328"], ["id", 2964]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.612566"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.614329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2965]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.618221"], ["updated_at", "2016-12-09 20:52:17.618221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.619283"], ["id", 1266]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2965], ["g5_updatable_hub_amenity_id", 1266]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.621912"], ["updated_at", "2016-12-09 20:52:17.621912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.623038"], ["id", 1267]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2965], ["g5_updatable_hub_amenity_id", 1267]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2965]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.626499"], ["id", 2965]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.630509"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.632720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2966]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.637208"], ["updated_at", "2016-12-09 20:52:17.637208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.638177"], ["id", 1268]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2966], ["g5_updatable_hub_amenity_id", 1268]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.640650"], ["updated_at", "2016-12-09 20:52:17.640650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.641590"], ["id", 1269]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2966], ["g5_updatable_hub_amenity_id", 1269]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2966]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.644687"], ["id", 2966]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.649418"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.651026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2967]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.655051"], ["updated_at", "2016-12-09 20:52:17.655051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.656160"], ["id", 1270]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2967], ["g5_updatable_hub_amenity_id", 1270]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.658544"], ["updated_at", "2016-12-09 20:52:17.658544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.659463"], ["id", 1271]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2967], ["g5_updatable_hub_amenity_id", 1271]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2967]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.662449"], ["id", 2967]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.667614"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.669539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2968]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.673056"], ["updated_at", "2016-12-09 20:52:17.673056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.674040"], ["id", 1272]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2968], ["g5_updatable_hub_amenity_id", 1272]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.676428"], ["updated_at", "2016-12-09 20:52:17.676428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.677376"], ["id", 1273]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2968], ["g5_updatable_hub_amenity_id", 1273]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2968]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.680679"], ["id", 2968]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.685548"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.687209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2969]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.690786"], ["updated_at", "2016-12-09 20:52:17.690786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.691731"], ["id", 1274]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2969], ["g5_updatable_hub_amenity_id", 1274]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.694116"], ["updated_at", "2016-12-09 20:52:17.694116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.694977"], ["id", 1275]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2969], ["g5_updatable_hub_amenity_id", 1275]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2969]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.698113"], ["id", 2969]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:17.700702"], ["updated_at", "2016-12-09 20:52:17.700702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:17.702268"], ["updated_at", "2016-12-09 20:52:17.702268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1252]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2970]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.705587"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.707405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2971]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.710979"], ["updated_at", "2016-12-09 20:52:17.710979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.711940"], ["id", 1276]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2971], ["g5_updatable_hub_amenity_id", 1276]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.714586"], ["updated_at", "2016-12-09 20:52:17.714586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.715592"], ["id", 1277]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2971], ["g5_updatable_hub_amenity_id", 1277]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2971]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.718950"], ["id", 2971]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.723894"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.725823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2972]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.729533"], ["updated_at", "2016-12-09 20:52:17.729533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.730530"], ["id", 1278]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2972], ["g5_updatable_hub_amenity_id", 1278]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.733146"], ["updated_at", "2016-12-09 20:52:17.733146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.734074"], ["id", 1279]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2972], ["g5_updatable_hub_amenity_id", 1279]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2972]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.737616"], ["id", 2972]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.746176"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.748209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2973]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.751987"], ["updated_at", "2016-12-09 20:52:17.751987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.752935"], ["id", 1280]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2973], ["g5_updatable_hub_amenity_id", 1280]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.755799"], ["updated_at", "2016-12-09 20:52:17.755799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.756708"], ["id", 1281]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2973], ["g5_updatable_hub_amenity_id", 1281]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2973]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.759917"], ["id", 2973]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.765017"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.766947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2974]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.770732"], ["updated_at", "2016-12-09 20:52:17.770732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.771731"], ["id", 1282]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2974], ["g5_updatable_hub_amenity_id", 1282]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.774343"], ["updated_at", "2016-12-09 20:52:17.774343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.775281"], ["id", 1283]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2974], ["g5_updatable_hub_amenity_id", 1283]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2974]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.778386"], ["id", 2974]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.783197"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.785295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2975]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.788755"], ["updated_at", "2016-12-09 20:52:17.788755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.789754"], ["id", 1284]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2975], ["g5_updatable_hub_amenity_id", 1284]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.792052"], ["updated_at", "2016-12-09 20:52:17.792052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.793092"], ["id", 1285]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2975], ["g5_updatable_hub_amenity_id", 1285]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2975]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.796983"], ["id", 2975]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.802253"], ["updated_at", "2016-12-09 20:52:17.802253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.804106"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.806202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2977]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.810326"], ["updated_at", "2016-12-09 20:52:17.810326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.811335"], ["id", 1286]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2977], ["g5_updatable_hub_amenity_id", 1286]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.813921"], ["updated_at", "2016-12-09 20:52:17.813921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.815099"], ["id", 1287]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2977], ["g5_updatable_hub_amenity_id", 1287]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2977]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.818575"], ["id", 2977]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2976]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 2976]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.824466"], ["updated_at", "2016-12-09 20:52:17.824466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.826029"], ["updated_at", "2016-12-09 20:52:17.826029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2978], ["g5_updatable_hub_amenity_id", 1288]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.828600"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2978]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2978]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.836177"], ["updated_at", "2016-12-09 20:52:17.836177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.837172"], ["id", 1289]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2978], ["g5_updatable_hub_amenity_id", 1289]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.839443"], ["updated_at", "2016-12-09 20:52:17.839443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.840573"], ["id", 1290]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2978], ["g5_updatable_hub_amenity_id", 1290]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2978]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.843585"], ["id", 2978]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.848372"], ["updated_at", "2016-12-09 20:52:17.848372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.849753"], ["updated_at", "2016-12-09 20:52:17.849753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2979], ["g5_updatable_hub_amenity_id", 1291]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.852549"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2979]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2979]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.858525"], ["updated_at", "2016-12-09 20:52:17.858525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.859473"], ["id", 1292]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2979], ["g5_updatable_hub_amenity_id", 1292]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.861701"], ["updated_at", "2016-12-09 20:52:17.861701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.862664"], ["id", 1293]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2979], ["g5_updatable_hub_amenity_id", 1293]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2979]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.866199"], ["id", 2979]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.870136"], ["updated_at", "2016-12-09 20:52:17.870136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.871518"], ["updated_at", "2016-12-09 20:52:17.871518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2980], ["g5_updatable_hub_amenity_id", 1294]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.874087"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2980]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2980]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.879995"], ["updated_at", "2016-12-09 20:52:17.879995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.881095"], ["id", 1295]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2980], ["g5_updatable_hub_amenity_id", 1295]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.883575"], ["updated_at", "2016-12-09 20:52:17.883575"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.884748"], ["id", 1296]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2980], ["g5_updatable_hub_amenity_id", 1296]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2980]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.887778"], ["id", 2980]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2980]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.893063"], ["updated_at", "2016-12-09 20:52:17.893063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.894444"], ["updated_at", "2016-12-09 20:52:17.894444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2981], ["g5_updatable_hub_amenity_id", 1297]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.896998"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2981]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2981]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.903124"], ["updated_at", "2016-12-09 20:52:17.903124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.904187"], ["id", 1298]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2981], ["g5_updatable_hub_amenity_id", 1298]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.907049"], ["updated_at", "2016-12-09 20:52:17.907049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.907958"], ["id", 1299]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2981], ["g5_updatable_hub_amenity_id", 1299]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2981]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.911145"], ["id", 2981]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.916124"], ["updated_at", "2016-12-09 20:52:17.916124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.917601"], ["updated_at", "2016-12-09 20:52:17.917601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2982], ["g5_updatable_hub_amenity_id", 1300]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.920335"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2982]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2982]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.926535"], ["updated_at", "2016-12-09 20:52:17.926535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.927497"], ["id", 1301]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2982], ["g5_updatable_hub_amenity_id", 1301]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.929905"], ["updated_at", "2016-12-09 20:52:17.929905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.930847"], ["id", 1302]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2982], ["g5_updatable_hub_amenity_id", 1302]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2982]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.934262"], ["id", 2982]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.942541"], ["updated_at", "2016-12-09 20:52:17.942541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.944065"], ["updated_at", "2016-12-09 20:52:17.944065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2983], ["g5_updatable_hub_amenity_id", 1303]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.946727"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2983]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2983]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.952770"], ["updated_at", "2016-12-09 20:52:17.952770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.953918"], ["id", 1304]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2983], ["g5_updatable_hub_amenity_id", 1304]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.956652"], ["updated_at", "2016-12-09 20:52:17.956652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.957608"], ["id", 1305]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2983], ["g5_updatable_hub_amenity_id", 1305]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2983]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.960629"], ["id", 2983]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.965682"], ["updated_at", "2016-12-09 20:52:17.965682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.967568"], ["updated_at", "2016-12-09 20:52:17.967568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2984], ["g5_updatable_hub_amenity_id", 1306]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.970942"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2984]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2984]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:17.977628"], ["updated_at", "2016-12-09 20:52:17.977628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:17.978576"], ["id", 1307]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2984], ["g5_updatable_hub_amenity_id", 1307]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:17.980927"], ["updated_at", "2016-12-09 20:52:17.980927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:17.981991"], ["id", 1308]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2984], ["g5_updatable_hub_amenity_id", 1308]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2984]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:17.985944"], ["id", 2984]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:17.991875"], ["updated_at", "2016-12-09 20:52:17.991875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-09 20:52:17.993379"], ["updated_at", "2016-12-09 20:52:17.993379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2985], ["g5_updatable_hub_amenity_id", 1309]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:17.995856"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2985]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2985]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:18.001655"], ["updated_at", "2016-12-09 20:52:18.001655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:18.002797"], ["id", 1310]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2985], ["g5_updatable_hub_amenity_id", 1310]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:18.005641"], ["updated_at", "2016-12-09 20:52:18.005641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:18.006641"], ["id", 1311]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2985], ["g5_updatable_hub_amenity_id", 1311]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2985]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:18.010176"], ["id", 2985]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:18.012656"], ["updated_at", "2016-12-09 20:52:18.012656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:18.014038"], ["updated_at", "2016-12-09 20:52:18.014038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1253]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2986]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:18.017204"], ["updated_at", "2016-12-09 20:52:18.017204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-09 20:52:18.018750"], ["updated_at", "2016-12-09 20:52:18.018750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2987], ["g5_updatable_hub_amenity_id", 1312]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:18.021491"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2987]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2987]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:18.027217"], ["updated_at", "2016-12-09 20:52:18.027217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:18.028257"], ["id", 1313]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2987], ["g5_updatable_hub_amenity_id", 1313]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:18.031046"], ["updated_at", "2016-12-09 20:52:18.031046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:18.032063"], ["id", 1314]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2987], ["g5_updatable_hub_amenity_id", 1314]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:18.035655"], ["id", 2987]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:18.037822"], ["updated_at", "2016-12-09 20:52:18.037822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:18.039024"], ["updated_at", "2016-12-09 20:52:18.039024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1254]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2988]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:18.042021"], ["updated_at", "2016-12-09 20:52:18.042021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-09 20:52:18.043410"], ["updated_at", "2016-12-09 20:52:18.043410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2989], ["g5_updatable_hub_amenity_id", 1315]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:18.045896"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 2989]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2989]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:18.051822"], ["updated_at", "2016-12-09 20:52:18.051822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:18.052767"], ["id", 1316]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2989], ["g5_updatable_hub_amenity_id", 1316]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:18.055426"], ["updated_at", "2016-12-09 20:52:18.055426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:18.056568"], ["id", 1317]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2989], ["g5_updatable_hub_amenity_id", 1317]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2989]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:18.059594"], ["id", 2989]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:18.064286"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:18.066401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2990]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:18.070260"], ["updated_at", "2016-12-09 20:52:18.070260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:18.071212"], ["id", 1318]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2990], ["g5_updatable_hub_amenity_id", 1318]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:18.073783"], ["updated_at", "2016-12-09 20:52:18.073783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:18.074737"], ["id", 1319]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2990], ["g5_updatable_hub_amenity_id", 1319]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2990]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:18.077824"], ["id", 2990]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 20:52:18.092274"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 20:52:18.094105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2991]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 20:52:18.097923"], ["updated_at", "2016-12-09 20:52:18.097923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 20:52:18.098901"], ["id", 1320]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2991], ["g5_updatable_hub_amenity_id", 1320]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 20:52:18.101671"], ["updated_at", "2016-12-09 20:52:18.101671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 20:52:18.102662"], ["id", 1321]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 2991], ["g5_updatable_hub_amenity_id", 1321]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 2991]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 20:52:18.106366"], ["id", 2991]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:52:18.146824"], ["updated_at", "2016-12-09 20:52:18.146824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1255]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:52:18.151029"], ["updated_at", "2016-12-09 20:52:18.151029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:18.152731"], ["updated_at", "2016-12-09 20:52:18.152731"]]  (1.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:52:18.168623"], ["updated_at", "2016-12-09 20:52:18.168623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:18.170335"], ["updated_at", "2016-12-09 20:52:18.170335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:18.171760"], ["updated_at", "2016-12-09 20:52:18.171760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:18.173055"], ["updated_at", "2016-12-09 20:52:18.173055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:18.174484"], ["updated_at", "2016-12-09 20:52:18.174484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:52:18.183334"], ["updated_at", "2016-12-09 20:52:18.183334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:18.185341"], ["updated_at", "2016-12-09 20:52:18.185341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:18.186802"], ["updated_at", "2016-12-09 20:52:18.186802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:52:18.188022"], ["updated_at", "2016-12-09 20:52:18.188022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:52:18.189366"], ["updated_at", "2016-12-09 20:52:18.189366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.359507"], ["updated_at", "2016-12-09 20:53:16.359507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 2999]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:53:16.373739"], ["updated_at", "2016-12-09 20:53:16.373739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.375481"], ["updated_at", "2016-12-09 20:53:16.375481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.378417"], ["updated_at", "2016-12-09 20:53:16.378417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.384179"], ["updated_at", "2016-12-09 20:53:16.384179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:53:16.389071"], ["updated_at", "2016-12-09 20:53:16.389071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.390816"], ["updated_at", "2016-12-09 20:53:16.390816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.393030"], ["updated_at", "2016-12-09 20:53:16.393030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.394408"], ["updated_at", "2016-12-09 20:53:16.394408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:53:16.401354"], ["updated_at", "2016-12-09 20:53:16.401354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.402650"], ["updated_at", "2016-12-09 20:53:16.402650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.404740"], ["updated_at", "2016-12-09 20:53:16.404740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.405964"], ["updated_at", "2016-12-09 20:53:16.405964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:53:16.409037"], ["updated_at", "2016-12-09 20:53:16.409037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.410435"], ["updated_at", "2016-12-09 20:53:16.410435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.412666"], ["updated_at", "2016-12-09 20:53:16.412666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.414120"], ["updated_at", "2016-12-09 20:53:16.414120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:53:16.417686"], ["updated_at", "2016-12-09 20:53:16.417686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.418993"], ["updated_at", "2016-12-09 20:53:16.418993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.421107"], ["updated_at", "2016-12-09 20:53:16.421107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.422333"], ["updated_at", "2016-12-09 20:53:16.422333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:53:16.425783"], ["updated_at", "2016-12-09 20:53:16.425783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.427164"], ["updated_at", "2016-12-09 20:53:16.427164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.429209"], ["updated_at", "2016-12-09 20:53:16.429209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.430418"], ["updated_at", "2016-12-09 20:53:16.430418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:53:16.433440"], ["updated_at", "2016-12-09 20:53:16.433440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.434999"], ["updated_at", "2016-12-09 20:53:16.434999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.437271"], ["updated_at", "2016-12-09 20:53:16.437271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.438394"], ["updated_at", "2016-12-09 20:53:16.438394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:53:16.441186"], ["updated_at", "2016-12-09 20:53:16.441186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.442494"], ["updated_at", "2016-12-09 20:53:16.442494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.444812"], ["updated_at", "2016-12-09 20:53:16.444812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.446111"], ["updated_at", "2016-12-09 20:53:16.446111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:53:16.449406"], ["updated_at", "2016-12-09 20:53:16.449406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.450643"], ["updated_at", "2016-12-09 20:53:16.450643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.452718"], ["updated_at", "2016-12-09 20:53:16.452718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.453834"], ["updated_at", "2016-12-09 20:53:16.453834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:53:16.456660"], ["updated_at", "2016-12-09 20:53:16.456660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.457851"], ["updated_at", "2016-12-09 20:53:16.457851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.460045"], ["updated_at", "2016-12-09 20:53:16.460045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.461231"], ["updated_at", "2016-12-09 20:53:16.461231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:53:16.463566"], ["updated_at", "2016-12-09 20:53:16.463566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.464878"], ["updated_at", "2016-12-09 20:53:16.464878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.466908"], ["updated_at", "2016-12-09 20:53:16.466908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.468147"], ["updated_at", "2016-12-09 20:53:16.468147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:53:16.470552"], ["updated_at", "2016-12-09 20:53:16.470552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.472109"], ["updated_at", "2016-12-09 20:53:16.472109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.474910"], ["updated_at", "2016-12-09 20:53:16.474910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.476237"], ["updated_at", "2016-12-09 20:53:16.476237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 20:53:16.478414"], ["updated_at", "2016-12-09 20:53:16.478414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:53:16.480701"], ["updated_at", "2016-12-09 20:53:16.480701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.482104"], ["updated_at", "2016-12-09 20:53:16.482104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.484156"], ["updated_at", "2016-12-09 20:53:16.484156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:53:16.485579"], ["updated_at", "2016-12-09 20:53:16.485579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.509395"], ["updated_at", "2016-12-09 20:53:16.509395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.511405"], ["updated_at", "2016-12-09 20:53:16.511405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.514716"], ["updated_at", "2016-12-09 20:53:16.514716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.516656"], ["updated_at", "2016-12-09 20:53:16.516656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.520388"], ["updated_at", "2016-12-09 20:53:16.520388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.521851"], ["updated_at", "2016-12-09 20:53:16.521851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.525186"], ["updated_at", "2016-12-09 20:53:16.525186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.526596"], ["updated_at", "2016-12-09 20:53:16.526596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.530025"], ["updated_at", "2016-12-09 20:53:16.530025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.531880"], ["updated_at", "2016-12-09 20:53:16.531880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:53:16.563151"], ["updated_at", "2016-12-09 20:53:16.563151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.564977"], ["updated_at", "2016-12-09 20:53:16.564977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:53:16.567444"], ["updated_at", "2016-12-09 20:53:16.567444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.568903"], ["updated_at", "2016-12-09 20:53:16.568903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.570853"], ["updated_at", "2016-12-09 20:53:16.570853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:53:16.575685"], ["updated_at", "2016-12-09 20:53:16.575685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:53:16.576985"], ["updated_at", "2016-12-09 20:53:16.576985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3039], ["g5_updatable_hub_amenity_id", 1322]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3039], ["g5_updatable_hub_amenity_id", 1323]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3039]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 20:53:16.596534"], ["id", 3039]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3039]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3039]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.600563"], ["updated_at", "2016-12-09 20:53:16.600563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:53:16.601855"], ["updated_at", "2016-12-09 20:53:16.601855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:53:16.602766"], ["updated_at", "2016-12-09 20:53:16.602766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3040], ["g5_updatable_hub_amenity_id", 1324]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3040], ["g5_updatable_hub_amenity_id", 1325]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3040]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 20:53:16.607304"], ["id", 3040]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3040]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3040]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3040]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3040]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3040]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.616286"], ["updated_at", "2016-12-09 20:53:16.616286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.618638"], ["updated_at", "2016-12-09 20:53:16.618638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:53:16.620668"], ["updated_at", "2016-12-09 20:53:16.620668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:22.970519"], ["updated_at", "2016-12-09 20:54:22.970519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:22.977569"], ["updated_at", "2016-12-09 20:54:22.977569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (15.7ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:22.980413"], ["updated_at", "2016-12-09 20:54:22.980413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.005302"], ["updated_at", "2016-12-09 20:54:23.005302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.006967"], ["updated_at", "2016-12-09 20:54:23.006967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.011013"], ["updated_at", "2016-12-09 20:54:23.011013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.012490"], ["updated_at", "2016-12-09 20:54:23.012490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.015934"], ["updated_at", "2016-12-09 20:54:23.015934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.017292"], ["updated_at", "2016-12-09 20:54:23.017292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.020975"], ["updated_at", "2016-12-09 20:54:23.020975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.022456"], ["updated_at", "2016-12-09 20:54:23.022456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.026032"], ["updated_at", "2016-12-09 20:54:23.026032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.027395"], ["updated_at", "2016-12-09 20:54:23.027395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.030535"], ["updated_at", "2016-12-09 20:54:23.030535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3057]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.047984"], ["updated_at", "2016-12-09 20:54:23.047984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.050213"], ["updated_at", "2016-12-09 20:54:23.050213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.054610"], ["updated_at", "2016-12-09 20:54:23.054610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.060891"], ["updated_at", "2016-12-09 20:54:23.060891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.064535"], ["updated_at", "2016-12-09 20:54:23.064535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.065843"], ["updated_at", "2016-12-09 20:54:23.065843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.068036"], ["updated_at", "2016-12-09 20:54:23.068036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.069343"], ["updated_at", "2016-12-09 20:54:23.069343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.073216"], ["updated_at", "2016-12-09 20:54:23.073216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.074977"], ["updated_at", "2016-12-09 20:54:23.074977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.077118"], ["updated_at", "2016-12-09 20:54:23.077118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.078512"], ["updated_at", "2016-12-09 20:54:23.078512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.082528"], ["updated_at", "2016-12-09 20:54:23.082528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.083950"], ["updated_at", "2016-12-09 20:54:23.083950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.086266"], ["updated_at", "2016-12-09 20:54:23.086266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.087476"], ["updated_at", "2016-12-09 20:54:23.087476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.103500"], ["updated_at", "2016-12-09 20:54:23.103500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.104955"], ["updated_at", "2016-12-09 20:54:23.104955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.107077"], ["updated_at", "2016-12-09 20:54:23.107077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.108564"], ["updated_at", "2016-12-09 20:54:23.108564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.111605"], ["updated_at", "2016-12-09 20:54:23.111605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.112842"], ["updated_at", "2016-12-09 20:54:23.112842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.114973"], ["updated_at", "2016-12-09 20:54:23.114973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.116172"], ["updated_at", "2016-12-09 20:54:23.116172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.119077"], ["updated_at", "2016-12-09 20:54:23.119077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.120403"], ["updated_at", "2016-12-09 20:54:23.120403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.122629"], ["updated_at", "2016-12-09 20:54:23.122629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.123758"], ["updated_at", "2016-12-09 20:54:23.123758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:54:23.127475"], ["updated_at", "2016-12-09 20:54:23.127475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.129051"], ["updated_at", "2016-12-09 20:54:23.129051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.131176"], ["updated_at", "2016-12-09 20:54:23.131176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.132311"], ["updated_at", "2016-12-09 20:54:23.132311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.138014"], ["updated_at", "2016-12-09 20:54:23.138014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.139261"], ["updated_at", "2016-12-09 20:54:23.139261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.141189"], ["updated_at", "2016-12-09 20:54:23.141189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.142633"], ["updated_at", "2016-12-09 20:54:23.142633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 20:54:23.144766"], ["updated_at", "2016-12-09 20:54:23.144766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.146729"], ["updated_at", "2016-12-09 20:54:23.146729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.148001"], ["updated_at", "2016-12-09 20:54:23.148001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.149966"], ["updated_at", "2016-12-09 20:54:23.149966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.151152"], ["updated_at", "2016-12-09 20:54:23.151152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.153295"], ["updated_at", "2016-12-09 20:54:23.153295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.154519"], ["updated_at", "2016-12-09 20:54:23.154519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.156553"], ["updated_at", "2016-12-09 20:54:23.156553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.157640"], ["updated_at", "2016-12-09 20:54:23.157640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.160182"], ["updated_at", "2016-12-09 20:54:23.160182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.161507"], ["updated_at", "2016-12-09 20:54:23.161507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.163540"], ["updated_at", "2016-12-09 20:54:23.163540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.164702"], ["updated_at", "2016-12-09 20:54:23.164702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 20:54:23.167430"], ["updated_at", "2016-12-09 20:54:23.167430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.168956"], ["updated_at", "2016-12-09 20:54:23.168956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:54:23.170881"], ["updated_at", "2016-12-09 20:54:23.170881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:54:23.172136"], ["updated_at", "2016-12-09 20:54:23.172136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.177169"], ["updated_at", "2016-12-09 20:54:23.177169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.178797"], ["updated_at", "2016-12-09 20:54:23.178797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:54:23.181489"], ["updated_at", "2016-12-09 20:54:23.181489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.182714"], ["updated_at", "2016-12-09 20:54:23.182714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.211849"], ["updated_at", "2016-12-09 20:54:23.211849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:54:23.216771"], ["updated_at", "2016-12-09 20:54:23.216771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:54:23.217960"], ["updated_at", "2016-12-09 20:54:23.217960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3087], ["g5_updatable_hub_amenity_id", 1326]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3087], ["g5_updatable_hub_amenity_id", 1327]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3087]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 20:54:23.237774"], ["id", 3087]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3087]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3087]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:54:23.241759"], ["updated_at", "2016-12-09 20:54:23.241759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:54:23.242941"], ["updated_at", "2016-12-09 20:54:23.242941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:54:23.243837"], ["updated_at", "2016-12-09 20:54:23.243837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3088], ["g5_updatable_hub_amenity_id", 1328]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3088], ["g5_updatable_hub_amenity_id", 1329]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3088]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 20:54:23.248237"], ["id", 3088]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3088]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3088]] G5Updatable::HubAmenitiesLocation Load (0.2ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3088]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3088]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3088]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.381540"], ["updated_at", "2016-12-09 20:55:17.381540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.387357"], ["updated_at", "2016-12-09 20:55:17.387357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.389584"], ["updated_at", "2016-12-09 20:55:17.389584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.401755"], ["updated_at", "2016-12-09 20:55:17.401755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.403482"], ["updated_at", "2016-12-09 20:55:17.403482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.411085"], ["updated_at", "2016-12-09 20:55:17.411085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.417560"], ["updated_at", "2016-12-09 20:55:17.417560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:55:17.422594"], ["updated_at", "2016-12-09 20:55:17.422594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.424457"], ["updated_at", "2016-12-09 20:55:17.424457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.426528"], ["updated_at", "2016-12-09 20:55:17.426528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.427855"], ["updated_at", "2016-12-09 20:55:17.427855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.431726"], ["updated_at", "2016-12-09 20:55:17.431726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.433124"], ["updated_at", "2016-12-09 20:55:17.433124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.435266"], ["updated_at", "2016-12-09 20:55:17.435266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.436542"], ["updated_at", "2016-12-09 20:55:17.436542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.439801"], ["updated_at", "2016-12-09 20:55:17.439801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.441101"], ["updated_at", "2016-12-09 20:55:17.441101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.443252"], ["updated_at", "2016-12-09 20:55:17.443252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.444547"], ["updated_at", "2016-12-09 20:55:17.444547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.450399"], ["updated_at", "2016-12-09 20:55:17.450399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.451660"], ["updated_at", "2016-12-09 20:55:17.451660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.453757"], ["updated_at", "2016-12-09 20:55:17.453757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.455128"], ["updated_at", "2016-12-09 20:55:17.455128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.458519"], ["updated_at", "2016-12-09 20:55:17.458519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.459851"], ["updated_at", "2016-12-09 20:55:17.459851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.462123"], ["updated_at", "2016-12-09 20:55:17.462123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.463416"], ["updated_at", "2016-12-09 20:55:17.463416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.466402"], ["updated_at", "2016-12-09 20:55:17.466402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.467716"], ["updated_at", "2016-12-09 20:55:17.467716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.469747"], ["updated_at", "2016-12-09 20:55:17.469747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.471261"], ["updated_at", "2016-12-09 20:55:17.471261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.486662"], ["updated_at", "2016-12-09 20:55:17.486662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.488329"], ["updated_at", "2016-12-09 20:55:17.488329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.490350"], ["updated_at", "2016-12-09 20:55:17.490350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.491459"], ["updated_at", "2016-12-09 20:55:17.491459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.493773"], ["updated_at", "2016-12-09 20:55:17.493773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.495041"], ["updated_at", "2016-12-09 20:55:17.495041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.497072"], ["updated_at", "2016-12-09 20:55:17.497072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.498183"], ["updated_at", "2016-12-09 20:55:17.498183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.500315"], ["updated_at", "2016-12-09 20:55:17.500315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.501550"], ["updated_at", "2016-12-09 20:55:17.501550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.503553"], ["updated_at", "2016-12-09 20:55:17.503553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.504910"], ["updated_at", "2016-12-09 20:55:17.504910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 20:55:17.506894"], ["updated_at", "2016-12-09 20:55:17.506894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.508892"], ["updated_at", "2016-12-09 20:55:17.508892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.510278"], ["updated_at", "2016-12-09 20:55:17.510278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.512343"], ["updated_at", "2016-12-09 20:55:17.512343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.513646"], ["updated_at", "2016-12-09 20:55:17.513646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.516538"], ["updated_at", "2016-12-09 20:55:17.516538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.517773"], ["updated_at", "2016-12-09 20:55:17.517773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.519816"], ["updated_at", "2016-12-09 20:55:17.519816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.521244"], ["updated_at", "2016-12-09 20:55:17.521244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.524805"], ["updated_at", "2016-12-09 20:55:17.524805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.526077"], ["updated_at", "2016-12-09 20:55:17.526077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 20:55:17.528186"], ["updated_at", "2016-12-09 20:55:17.528186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 20:55:17.529355"], ["updated_at", "2016-12-09 20:55:17.529355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.534170"], ["updated_at", "2016-12-09 20:55:17.534170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.535692"], ["updated_at", "2016-12-09 20:55:17.535692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.539472"], ["updated_at", "2016-12-09 20:55:17.539472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.540846"], ["updated_at", "2016-12-09 20:55:17.540846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.543671"], ["updated_at", "2016-12-09 20:55:17.543671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.544978"], ["updated_at", "2016-12-09 20:55:17.544978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.548071"], ["updated_at", "2016-12-09 20:55:17.548071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.549408"], ["updated_at", "2016-12-09 20:55:17.549408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.551832"], ["updated_at", "2016-12-09 20:55:17.551832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.553309"], ["updated_at", "2016-12-09 20:55:17.553309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.583526"], ["updated_at", "2016-12-09 20:55:17.583526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3129]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.590237"], ["updated_at", "2016-12-09 20:55:17.590237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 20:55:17.595639"], ["updated_at", "2016-12-09 20:55:17.595639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 20:55:17.596943"], ["updated_at", "2016-12-09 20:55:17.596943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3130], ["g5_updatable_hub_amenity_id", 1330]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3130], ["g5_updatable_hub_amenity_id", 1331]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3130]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 20:55:17.616369"], ["id", 3130]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3130]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3130]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.621114"], ["updated_at", "2016-12-09 20:55:17.621114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 20:55:17.622572"], ["updated_at", "2016-12-09 20:55:17.622572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 20:55:17.623559"], ["updated_at", "2016-12-09 20:55:17.623559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3131], ["g5_updatable_hub_amenity_id", 1332]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3131], ["g5_updatable_hub_amenity_id", 1333]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3131]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 20:55:17.627930"], ["id", 3131]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3131]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3131]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3131]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3131]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3131]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 20:55:17.637600"], ["updated_at", "2016-12-09 20:55:17.637600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.639167"], ["updated_at", "2016-12-09 20:55:17.639167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 20:55:17.641677"], ["updated_at", "2016-12-09 20:55:17.641677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 20:55:17.643031"], ["updated_at", "2016-12-09 20:55:17.643031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:13.925383"], ["updated_at", "2016-12-09 21:01:13.925383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.931030"], ["updated_at", "2016-12-09 21:01:13.931030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:01:13.943295"], ["updated_at", "2016-12-09 21:01:13.943295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.944941"], ["updated_at", "2016-12-09 21:01:13.944941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.947097"], ["updated_at", "2016-12-09 21:01:13.947097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.948723"], ["updated_at", "2016-12-09 21:01:13.948723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.952019"], ["updated_at", "2016-12-09 21:01:13.952019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.953358"], ["updated_at", "2016-12-09 21:01:13.953358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.956550"], ["updated_at", "2016-12-09 21:01:13.956550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.957841"], ["updated_at", "2016-12-09 21:01:13.957841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.961451"], ["updated_at", "2016-12-09 21:01:13.961451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.962867"], ["updated_at", "2016-12-09 21:01:13.962867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.965291"], ["updated_at", "2016-12-09 21:01:13.965291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.966677"], ["updated_at", "2016-12-09 21:01:13.966677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:13.972064"], ["updated_at", "2016-12-09 21:01:13.972064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3146]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:14.011283"], ["updated_at", "2016-12-09 21:01:14.011283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:14.013680"], ["updated_at", "2016-12-09 21:01:14.013680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:14.015810"], ["updated_at", "2016-12-09 21:01:14.015810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:14.020213"], ["updated_at", "2016-12-09 21:01:14.020213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:01:14.025200"], ["updated_at", "2016-12-09 21:01:14.025200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:01:14.026712"], ["updated_at", "2016-12-09 21:01:14.026712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3150], ["g5_updatable_hub_amenity_id", 1334]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3150], ["g5_updatable_hub_amenity_id", 1335]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3150]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 21:01:14.046632"], ["id", 3150]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3150]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3150]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3150]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3150]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3150]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:01:14.052736"], ["updated_at", "2016-12-09 21:01:14.052736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:01:14.054077"], ["updated_at", "2016-12-09 21:01:14.054077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:01:14.055220"], ["updated_at", "2016-12-09 21:01:14.055220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3151], ["g5_updatable_hub_amenity_id", 1336]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3151], ["g5_updatable_hub_amenity_id", 1337]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3151]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 21:01:14.059340"], ["id", 3151]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3151]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3151]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.064534"], ["updated_at", "2016-12-09 21:01:14.064534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.067393"], ["updated_at", "2016-12-09 21:01:14.067393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.068567"], ["updated_at", "2016-12-09 21:01:14.068567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.071290"], ["updated_at", "2016-12-09 21:01:14.071290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.073387"], ["updated_at", "2016-12-09 21:01:14.073387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.074570"], ["updated_at", "2016-12-09 21:01:14.074570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.078131"], ["updated_at", "2016-12-09 21:01:14.078131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.080309"], ["updated_at", "2016-12-09 21:01:14.080309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.081697"], ["updated_at", "2016-12-09 21:01:14.081697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.085084"], ["updated_at", "2016-12-09 21:01:14.085084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.087352"], ["updated_at", "2016-12-09 21:01:14.087352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.088557"], ["updated_at", "2016-12-09 21:01:14.088557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.091418"], ["updated_at", "2016-12-09 21:01:14.091418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.093482"], ["updated_at", "2016-12-09 21:01:14.093482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.094875"], ["updated_at", "2016-12-09 21:01:14.094875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:01:14.096910"], ["updated_at", "2016-12-09 21:01:14.096910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.098963"], ["updated_at", "2016-12-09 21:01:14.098963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.101075"], ["updated_at", "2016-12-09 21:01:14.101075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.102257"], ["updated_at", "2016-12-09 21:01:14.102257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.104507"], ["updated_at", "2016-12-09 21:01:14.104507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.106399"], ["updated_at", "2016-12-09 21:01:14.106399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.107519"], ["updated_at", "2016-12-09 21:01:14.107519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.110084"], ["updated_at", "2016-12-09 21:01:14.110084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.112395"], ["updated_at", "2016-12-09 21:01:14.112395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.113587"], ["updated_at", "2016-12-09 21:01:14.113587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.116511"], ["updated_at", "2016-12-09 21:01:14.116511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.118519"], ["updated_at", "2016-12-09 21:01:14.118519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.119605"], ["updated_at", "2016-12-09 21:01:14.119605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.122449"], ["updated_at", "2016-12-09 21:01:14.122449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.124420"], ["updated_at", "2016-12-09 21:01:14.124420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.125705"], ["updated_at", "2016-12-09 21:01:14.125705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.129271"], ["updated_at", "2016-12-09 21:01:14.129271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.131659"], ["updated_at", "2016-12-09 21:01:14.131659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.133127"], ["updated_at", "2016-12-09 21:01:14.133127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.136941"], ["updated_at", "2016-12-09 21:01:14.136941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.139084"], ["updated_at", "2016-12-09 21:01:14.139084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.140280"], ["updated_at", "2016-12-09 21:01:14.140280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:01:14.144091"], ["updated_at", "2016-12-09 21:01:14.144091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:01:14.146379"], ["updated_at", "2016-12-09 21:01:14.146379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:01:14.147514"], ["updated_at", "2016-12-09 21:01:14.147514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.592250"], ["updated_at", "2016-12-09 21:03:38.592250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.596231"], ["updated_at", "2016-12-09 21:03:38.596231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:03:38.607793"], ["updated_at", "2016-12-09 21:03:38.607793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.609250"], ["updated_at", "2016-12-09 21:03:38.609250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.619033"], ["updated_at", "2016-12-09 21:03:38.619033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.624853"], ["updated_at", "2016-12-09 21:03:38.624853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.626102"], ["updated_at", "2016-12-09 21:03:38.626102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.629557"], ["updated_at", "2016-12-09 21:03:38.629557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.631696"], ["updated_at", "2016-12-09 21:03:38.631696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.633263"], ["updated_at", "2016-12-09 21:03:38.633263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.635970"], ["updated_at", "2016-12-09 21:03:38.635970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.638178"], ["updated_at", "2016-12-09 21:03:38.638178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.639400"], ["updated_at", "2016-12-09 21:03:38.639400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:03:38.641571"], ["updated_at", "2016-12-09 21:03:38.641571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.643826"], ["updated_at", "2016-12-09 21:03:38.643826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.645948"], ["updated_at", "2016-12-09 21:03:38.645948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.647126"], ["updated_at", "2016-12-09 21:03:38.647126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.649518"], ["updated_at", "2016-12-09 21:03:38.649518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.651739"], ["updated_at", "2016-12-09 21:03:38.651739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.652890"], ["updated_at", "2016-12-09 21:03:38.652890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.657131"], ["updated_at", "2016-12-09 21:03:38.657131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.659344"], ["updated_at", "2016-12-09 21:03:38.659344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.660680"], ["updated_at", "2016-12-09 21:03:38.660680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.663667"], ["updated_at", "2016-12-09 21:03:38.663667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.665680"], ["updated_at", "2016-12-09 21:03:38.665680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.667081"], ["updated_at", "2016-12-09 21:03:38.667081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.670310"], ["updated_at", "2016-12-09 21:03:38.670310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.672627"], ["updated_at", "2016-12-09 21:03:38.672627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.674007"], ["updated_at", "2016-12-09 21:03:38.674007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.677278"], ["updated_at", "2016-12-09 21:03:38.677278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.679397"], ["updated_at", "2016-12-09 21:03:38.679397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.680581"], ["updated_at", "2016-12-09 21:03:38.680581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.683800"], ["updated_at", "2016-12-09 21:03:38.683800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.686454"], ["updated_at", "2016-12-09 21:03:38.686454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.687680"], ["updated_at", "2016-12-09 21:03:38.687680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.690651"], ["updated_at", "2016-12-09 21:03:38.690651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.692735"], ["updated_at", "2016-12-09 21:03:38.692735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.694101"], ["updated_at", "2016-12-09 21:03:38.694101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.697883"], ["updated_at", "2016-12-09 21:03:38.697883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.700278"], ["updated_at", "2016-12-09 21:03:38.700278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.701508"], ["updated_at", "2016-12-09 21:03:38.701508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:03:38.704763"], ["updated_at", "2016-12-09 21:03:38.704763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:03:38.706811"], ["updated_at", "2016-12-09 21:03:38.706811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:03:38.708123"], ["updated_at", "2016-12-09 21:03:38.708123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.737553"], ["updated_at", "2016-12-09 21:03:38.737553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.739314"], ["updated_at", "2016-12-09 21:03:38.739314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.743211"], ["updated_at", "2016-12-09 21:03:38.743211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.744709"], ["updated_at", "2016-12-09 21:03:38.744709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.747277"], ["updated_at", "2016-12-09 21:03:38.747277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.748725"], ["updated_at", "2016-12-09 21:03:38.748725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.751892"], ["updated_at", "2016-12-09 21:03:38.751892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.753468"], ["updated_at", "2016-12-09 21:03:38.753468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.756983"], ["updated_at", "2016-12-09 21:03:38.756983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.758294"], ["updated_at", "2016-12-09 21:03:38.758294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.762042"], ["updated_at", "2016-12-09 21:03:38.762042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.764009"], ["updated_at", "2016-12-09 21:03:38.764009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.765952"], ["updated_at", "2016-12-09 21:03:38.765952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.773267"], ["updated_at", "2016-12-09 21:03:38.773267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:03:38.778994"], ["updated_at", "2016-12-09 21:03:38.778994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:03:38.780663"], ["updated_at", "2016-12-09 21:03:38.780663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3221], ["g5_updatable_hub_amenity_id", 1338]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3221], ["g5_updatable_hub_amenity_id", 1339]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3221]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 21:03:38.802216"], ["id", 3221]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3221]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3221]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.808316"], ["updated_at", "2016-12-09 21:03:38.808316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:03:38.809915"], ["updated_at", "2016-12-09 21:03:38.809915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:03:38.811046"], ["updated_at", "2016-12-09 21:03:38.811046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3222], ["g5_updatable_hub_amenity_id", 1340]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3222], ["g5_updatable_hub_amenity_id", 1341]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3222]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 21:03:38.815840"], ["id", 3222]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3222]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3222]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3222]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3222]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3222]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:03:38.822864"], ["updated_at", "2016-12-09 21:03:38.822864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3223]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:04.987635"], ["updated_at", "2016-12-09 21:04:04.987635"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:04.993566"], ["updated_at", "2016-12-09 21:04:04.993566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.007236"], ["updated_at", "2016-12-09 21:04:05.007236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.008818"], ["updated_at", "2016-12-09 21:04:05.008818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.012598"], ["updated_at", "2016-12-09 21:04:05.012598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:04:05.017626"], ["updated_at", "2016-12-09 21:04:05.017626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:04:05.018839"], ["updated_at", "2016-12-09 21:04:05.018839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3226], ["g5_updatable_hub_amenity_id", 1342]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3226], ["g5_updatable_hub_amenity_id", 1343]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3226]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 21:04:05.037454"], ["id", 3226]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3226]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3226]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.045116"], ["updated_at", "2016-12-09 21:04:05.045116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:04:05.046325"], ["updated_at", "2016-12-09 21:04:05.046325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:04:05.047589"], ["updated_at", "2016-12-09 21:04:05.047589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3227], ["g5_updatable_hub_amenity_id", 1344]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3227], ["g5_updatable_hub_amenity_id", 1345]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3227]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 21:04:05.051795"], ["id", 3227]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3227]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3227]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3227]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3227]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3227]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.060709"], ["updated_at", "2016-12-09 21:04:05.060709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3228]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.063498"], ["updated_at", "2016-12-09 21:04:05.063498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.065844"], ["updated_at", "2016-12-09 21:04:05.065844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.067735"], ["updated_at", "2016-12-09 21:04:05.067735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.077567"], ["updated_at", "2016-12-09 21:04:05.077567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.079293"], ["updated_at", "2016-12-09 21:04:05.079293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.082340"], ["updated_at", "2016-12-09 21:04:05.082340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.083533"], ["updated_at", "2016-12-09 21:04:05.083533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.086601"], ["updated_at", "2016-12-09 21:04:05.086601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.087837"], ["updated_at", "2016-12-09 21:04:05.087837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.090085"], ["updated_at", "2016-12-09 21:04:05.090085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.091536"], ["updated_at", "2016-12-09 21:04:05.091536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.094576"], ["updated_at", "2016-12-09 21:04:05.094576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.095816"], ["updated_at", "2016-12-09 21:04:05.095816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.098171"], ["updated_at", "2016-12-09 21:04:05.098171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.099345"], ["updated_at", "2016-12-09 21:04:05.099345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.101458"], ["updated_at", "2016-12-09 21:04:05.101458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.102678"], ["updated_at", "2016-12-09 21:04:05.102678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.104946"], ["updated_at", "2016-12-09 21:04:05.104946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.106100"], ["updated_at", "2016-12-09 21:04:05.106100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.108498"], ["updated_at", "2016-12-09 21:04:05.108498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.109678"], ["updated_at", "2016-12-09 21:04:05.109678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.111691"], ["updated_at", "2016-12-09 21:04:05.111691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.112827"], ["updated_at", "2016-12-09 21:04:05.112827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:04:05.114984"], ["updated_at", "2016-12-09 21:04:05.114984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.116865"], ["updated_at", "2016-12-09 21:04:05.116865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.118108"], ["updated_at", "2016-12-09 21:04:05.118108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.120008"], ["updated_at", "2016-12-09 21:04:05.120008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.121135"], ["updated_at", "2016-12-09 21:04:05.121135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.124149"], ["updated_at", "2016-12-09 21:04:05.124149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.125366"], ["updated_at", "2016-12-09 21:04:05.125366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.127553"], ["updated_at", "2016-12-09 21:04:05.127553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.128762"], ["updated_at", "2016-12-09 21:04:05.128762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.132025"], ["updated_at", "2016-12-09 21:04:05.132025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.133343"], ["updated_at", "2016-12-09 21:04:05.133343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.135299"], ["updated_at", "2016-12-09 21:04:05.135299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.136410"], ["updated_at", "2016-12-09 21:04:05.136410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.152257"], ["updated_at", "2016-12-09 21:04:05.152257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.153715"], ["updated_at", "2016-12-09 21:04:05.153715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.155742"], ["updated_at", "2016-12-09 21:04:05.155742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.157011"], ["updated_at", "2016-12-09 21:04:05.157011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.159903"], ["updated_at", "2016-12-09 21:04:05.159903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.161080"], ["updated_at", "2016-12-09 21:04:05.161080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.163021"], ["updated_at", "2016-12-09 21:04:05.163021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.164398"], ["updated_at", "2016-12-09 21:04:05.164398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:04:05.168220"], ["updated_at", "2016-12-09 21:04:05.168220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.169983"], ["updated_at", "2016-12-09 21:04:05.169983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.172815"], ["updated_at", "2016-12-09 21:04:05.172815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.174124"], ["updated_at", "2016-12-09 21:04:05.174124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.177469"], ["updated_at", "2016-12-09 21:04:05.177469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.178929"], ["updated_at", "2016-12-09 21:04:05.178929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.181305"], ["updated_at", "2016-12-09 21:04:05.181305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.182502"], ["updated_at", "2016-12-09 21:04:05.182502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:05.185486"], ["updated_at", "2016-12-09 21:04:05.185486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.186746"], ["updated_at", "2016-12-09 21:04:05.186746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:05.188802"], ["updated_at", "2016-12-09 21:04:05.188802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:05.190085"], ["updated_at", "2016-12-09 21:04:05.190085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.200216"], ["updated_at", "2016-12-09 21:04:05.200216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.202031"], ["updated_at", "2016-12-09 21:04:05.202031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.205346"], ["updated_at", "2016-12-09 21:04:05.205346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.207317"], ["updated_at", "2016-12-09 21:04:05.207317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.211177"], ["updated_at", "2016-12-09 21:04:05.211177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.212574"], ["updated_at", "2016-12-09 21:04:05.212574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.215475"], ["updated_at", "2016-12-09 21:04:05.215475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.216840"], ["updated_at", "2016-12-09 21:04:05.216840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.220362"], ["updated_at", "2016-12-09 21:04:05.220362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:05.221772"], ["updated_at", "2016-12-09 21:04:05.221772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.688296"], ["updated_at", "2016-12-09 21:04:18.688296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.694131"], ["updated_at", "2016-12-09 21:04:18.694131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.696697"], ["updated_at", "2016-12-09 21:04:18.696697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.704649"], ["updated_at", "2016-12-09 21:04:18.704649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3272]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.717853"], ["updated_at", "2016-12-09 21:04:18.717853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (1.6ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.727327"], ["updated_at", "2016-12-09 21:04:18.727327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.734787"], ["updated_at", "2016-12-09 21:04:18.734787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.740225"], ["updated_at", "2016-12-09 21:04:18.740225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.743048"], ["updated_at", "2016-12-09 21:04:18.743048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.744602"], ["updated_at", "2016-12-09 21:04:18.744602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.748640"], ["updated_at", "2016-12-09 21:04:18.748640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.751188"], ["updated_at", "2016-12-09 21:04:18.751188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.752628"], ["updated_at", "2016-12-09 21:04:18.752628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.757182"], ["updated_at", "2016-12-09 21:04:18.757182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.759636"], ["updated_at", "2016-12-09 21:04:18.759636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.760862"], ["updated_at", "2016-12-09 21:04:18.760862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.763532"], ["updated_at", "2016-12-09 21:04:18.763532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.765806"], ["updated_at", "2016-12-09 21:04:18.765806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.767044"], ["updated_at", "2016-12-09 21:04:18.767044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.769264"], ["updated_at", "2016-12-09 21:04:18.769264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.771346"], ["updated_at", "2016-12-09 21:04:18.771346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.772511"], ["updated_at", "2016-12-09 21:04:18.772511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:04:18.774601"], ["updated_at", "2016-12-09 21:04:18.774601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.776545"], ["updated_at", "2016-12-09 21:04:18.776545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.778600"], ["updated_at", "2016-12-09 21:04:18.778600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.779893"], ["updated_at", "2016-12-09 21:04:18.779893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.783969"], ["updated_at", "2016-12-09 21:04:18.783969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.786718"], ["updated_at", "2016-12-09 21:04:18.786718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.787980"], ["updated_at", "2016-12-09 21:04:18.787980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.792028"], ["updated_at", "2016-12-09 21:04:18.792028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.794187"], ["updated_at", "2016-12-09 21:04:18.794187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.795460"], ["updated_at", "2016-12-09 21:04:18.795460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.798823"], ["updated_at", "2016-12-09 21:04:18.798823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.800913"], ["updated_at", "2016-12-09 21:04:18.800913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.802028"], ["updated_at", "2016-12-09 21:04:18.802028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.804771"], ["updated_at", "2016-12-09 21:04:18.804771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.807017"], ["updated_at", "2016-12-09 21:04:18.807017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.808373"], ["updated_at", "2016-12-09 21:04:18.808373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.811695"], ["updated_at", "2016-12-09 21:04:18.811695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.814009"], ["updated_at", "2016-12-09 21:04:18.814009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.815142"], ["updated_at", "2016-12-09 21:04:18.815142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:18.818146"], ["updated_at", "2016-12-09 21:04:18.818146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:18.820119"], ["updated_at", "2016-12-09 21:04:18.820119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:18.821240"], ["updated_at", "2016-12-09 21:04:18.821240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:18.823984"], ["updated_at", "2016-12-09 21:04:18.823984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.825200"], ["updated_at", "2016-12-09 21:04:18.825200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:18.830489"], ["updated_at", "2016-12-09 21:04:18.830489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.831956"], ["updated_at", "2016-12-09 21:04:18.831956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.838384"], ["updated_at", "2016-12-09 21:04:18.838384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:04:18.843495"], ["updated_at", "2016-12-09 21:04:18.843495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:04:18.844829"], ["updated_at", "2016-12-09 21:04:18.844829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3302], ["g5_updatable_hub_amenity_id", 1346]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3302], ["g5_updatable_hub_amenity_id", 1347]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3302]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 21:04:18.866446"], ["id", 3302]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3302]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3302]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3302]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3302]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3302]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.872496"], ["updated_at", "2016-12-09 21:04:18.872496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:04:18.873744"], ["updated_at", "2016-12-09 21:04:18.873744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:04:18.874796"], ["updated_at", "2016-12-09 21:04:18.874796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3303], ["g5_updatable_hub_amenity_id", 1348]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3303], ["g5_updatable_hub_amenity_id", 1349]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3303]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 21:04:18.879049"], ["id", 3303]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3303]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3303]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.882649"], ["updated_at", "2016-12-09 21:04:18.882649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.884100"], ["updated_at", "2016-12-09 21:04:18.884100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.887598"], ["updated_at", "2016-12-09 21:04:18.887598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.888970"], ["updated_at", "2016-12-09 21:04:18.888970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.891531"], ["updated_at", "2016-12-09 21:04:18.891531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.892922"], ["updated_at", "2016-12-09 21:04:18.892922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.896458"], ["updated_at", "2016-12-09 21:04:18.896458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.898173"], ["updated_at", "2016-12-09 21:04:18.898173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.901014"], ["updated_at", "2016-12-09 21:04:18.901014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:18.902372"], ["updated_at", "2016-12-09 21:04:18.902372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:04:21.419568"], ["updated_at", "2016-12-09 21:04:21.419568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:04:21.426626"], ["id", 1418]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1418]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:21.432166"], ["updated_at", "2016-12-09 21:04:21.432166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:04:21.433548"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1419]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:21.437528"], ["updated_at", "2016-12-09 21:04:21.437528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:04:21.438827"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1420]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:21.442518"], ["updated_at", "2016-12-09 21:04:21.442518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:04:21.443723"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1421]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:21.447216"], ["updated_at", "2016-12-09 21:04:21.447216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:04:21.448458"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1422]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:04:21.451729"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:04:21.452107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:04:21.454391"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:04:21.454723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:04:21.457218"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:04:21.457680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:04:21.463432"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:04:21.463892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:04:21.466619"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:04:21.466947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:04:21.469521"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:04:21.469887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:04:21.473239"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:04:21.473749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.0ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:04:21.479443"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:04:21.480864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.487144"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.489645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3314]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3314]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:04:21.511222"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.513225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3315]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3315]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:04:21.519848"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.521950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3316]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.528818"], ["updated_at", "2016-12-09 21:04:21.528818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.531174"], ["id", 1350]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3316], ["g5_updatable_hub_amenity_id", 1350]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.536969"], ["updated_at", "2016-12-09 21:04:21.536969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.537987"], ["id", 1351]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3316], ["g5_updatable_hub_amenity_id", 1351]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3316]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.541431"], ["id", 3316]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:04:21.544180"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.546038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3317]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3317], ["g5_updatable_hub_amenity_id", 1350]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3317], ["g5_updatable_hub_amenity_id", 1351]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3317]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.555456"], ["id", 3317]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:04:21.558204"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.560009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3318]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3318]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:21.595022"], ["updated_at", "2016-12-09 21:04:21.595022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.4ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:21.607629"], ["updated_at", "2016-12-09 21:04:21.607629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.41ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.616449"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.618196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3321]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.622697"], ["updated_at", "2016-12-09 21:04:21.622697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.631322"], ["id", 1352]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3321], ["g5_updatable_hub_amenity_id", 1352]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.634431"], ["updated_at", "2016-12-09 21:04:21.634431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.635517"], ["id", 1353]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3321], ["g5_updatable_hub_amenity_id", 1353]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3321]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.639096"], ["id", 3321]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.646288"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.648082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3322]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.651859"], ["updated_at", "2016-12-09 21:04:21.651859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.652960"], ["id", 1354]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3322], ["g5_updatable_hub_amenity_id", 1354]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.655519"], ["updated_at", "2016-12-09 21:04:21.655519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.656670"], ["id", 1355]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3322], ["g5_updatable_hub_amenity_id", 1355]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3322]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.660338"], ["id", 3322]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.667501"], ["updated_at", "2016-12-09 21:04:21.667501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 21:04:21.672505"], ["updated_at", "2016-12-09 21:04:21.672505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.676060"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.677756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3325]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.681422"], ["updated_at", "2016-12-09 21:04:21.681422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.682381"], ["id", 1356]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3325], ["g5_updatable_hub_amenity_id", 1356]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.684671"], ["updated_at", "2016-12-09 21:04:21.684671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.685657"], ["id", 1357]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3325], ["g5_updatable_hub_amenity_id", 1357]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3325]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.688898"], ["id", 3325]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3323]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3323]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:21.696847"], ["updated_at", "2016-12-09 21:04:21.696847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.698508"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3326]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3326]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.704648"], ["updated_at", "2016-12-09 21:04:21.704648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.705887"], ["id", 1358]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3326], ["g5_updatable_hub_amenity_id", 1358]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.708464"], ["updated_at", "2016-12-09 21:04:21.708464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.709329"], ["id", 1359]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3326], ["g5_updatable_hub_amenity_id", 1359]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3326]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.713107"], ["id", 3326]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:21.716487"], ["updated_at", "2016-12-09 21:04:21.716487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.718156"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3327]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3327]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.723964"], ["updated_at", "2016-12-09 21:04:21.723964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.724912"], ["id", 1360]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3327], ["g5_updatable_hub_amenity_id", 1360]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.727356"], ["updated_at", "2016-12-09 21:04:21.727356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.728210"], ["id", 1361]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3327], ["g5_updatable_hub_amenity_id", 1361]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3327]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.731670"], ["id", 3327]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:21.735829"], ["updated_at", "2016-12-09 21:04:21.735829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.737621"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3328]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3328]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.743617"], ["updated_at", "2016-12-09 21:04:21.743617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.744669"], ["id", 1362]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3328], ["g5_updatable_hub_amenity_id", 1362]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.747350"], ["updated_at", "2016-12-09 21:04:21.747350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.748215"], ["id", 1363]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3328], ["g5_updatable_hub_amenity_id", 1363]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3328]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.751260"], ["id", 3328]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.754853"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.756707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3329]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.760611"], ["updated_at", "2016-12-09 21:04:21.760611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.761719"], ["id", 1364]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3329], ["g5_updatable_hub_amenity_id", 1364]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.764365"], ["updated_at", "2016-12-09 21:04:21.764365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.765283"], ["id", 1365]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3329], ["g5_updatable_hub_amenity_id", 1365]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3329]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.768411"], ["id", 3329]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.772959"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.774642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3330]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.778239"], ["updated_at", "2016-12-09 21:04:21.778239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.779150"], ["id", 1366]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3330], ["g5_updatable_hub_amenity_id", 1366]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.781673"], ["updated_at", "2016-12-09 21:04:21.781673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.782618"], ["id", 1367]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3330], ["g5_updatable_hub_amenity_id", 1367]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3330]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.785742"], ["id", 3330]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.789475"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.791241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3331]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.795247"], ["updated_at", "2016-12-09 21:04:21.795247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.796474"], ["id", 1368]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3331], ["g5_updatable_hub_amenity_id", 1368]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.798994"], ["updated_at", "2016-12-09 21:04:21.798994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.799891"], ["id", 1369]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3331], ["g5_updatable_hub_amenity_id", 1369]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3331]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.803032"], ["id", 3331]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.809306"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.811655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3332]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.816180"], ["updated_at", "2016-12-09 21:04:21.816180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.817160"], ["id", 1370]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3332], ["g5_updatable_hub_amenity_id", 1370]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.819567"], ["updated_at", "2016-12-09 21:04:21.819567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.820592"], ["id", 1371]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3332], ["g5_updatable_hub_amenity_id", 1371]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3332]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.823702"], ["id", 3332]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3332]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3332]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.841505"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.843523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3333]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.847917"], ["updated_at", "2016-12-09 21:04:21.847917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.848967"], ["id", 1372]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3333], ["g5_updatable_hub_amenity_id", 1372]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.851602"], ["updated_at", "2016-12-09 21:04:21.851602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.852565"], ["id", 1373]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3333], ["g5_updatable_hub_amenity_id", 1373]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3333]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.855997"], ["id", 3333]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:04:21.858904"], ["updated_at", "2016-12-09 21:04:21.858904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:21.860551"], ["updated_at", "2016-12-09 21:04:21.860551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1431]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3334]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.864442"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.866308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3335]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.870517"], ["updated_at", "2016-12-09 21:04:21.870517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.871536"], ["id", 1374]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3335], ["g5_updatable_hub_amenity_id", 1374]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.873996"], ["updated_at", "2016-12-09 21:04:21.873996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.874883"], ["id", 1375]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3335], ["g5_updatable_hub_amenity_id", 1375]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3335]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.878458"], ["id", 3335]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.883920"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.885729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3336]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.889697"], ["updated_at", "2016-12-09 21:04:21.889697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.890728"], ["id", 1376]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3336], ["g5_updatable_hub_amenity_id", 1376]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.893323"], ["updated_at", "2016-12-09 21:04:21.893323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.894292"], ["id", 1377]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3336], ["g5_updatable_hub_amenity_id", 1377]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3336]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.897665"], ["id", 3336]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.902705"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.904569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3337]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.909340"], ["updated_at", "2016-12-09 21:04:21.909340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.911011"], ["id", 1378]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3337], ["g5_updatable_hub_amenity_id", 1378]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.914205"], ["updated_at", "2016-12-09 21:04:21.914205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.915150"], ["id", 1379]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3337], ["g5_updatable_hub_amenity_id", 1379]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3337]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.918394"], ["id", 3337]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.923504"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.925398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3338]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.929744"], ["updated_at", "2016-12-09 21:04:21.929744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.930723"], ["id", 1380]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3338], ["g5_updatable_hub_amenity_id", 1380]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.933371"], ["updated_at", "2016-12-09 21:04:21.933371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.934301"], ["id", 1381]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3338], ["g5_updatable_hub_amenity_id", 1381]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3338]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.937924"], ["id", 3338]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.944199"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.947000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3339]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.952098"], ["updated_at", "2016-12-09 21:04:21.952098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.953369"], ["id", 1382]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3339], ["g5_updatable_hub_amenity_id", 1382]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.956243"], ["updated_at", "2016-12-09 21:04:21.956243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.957458"], ["id", 1383]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3339], ["g5_updatable_hub_amenity_id", 1383]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3339]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.961660"], ["id", 3339]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.968928"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.971278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3340]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.975971"], ["updated_at", "2016-12-09 21:04:21.975971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.977106"], ["id", 1384]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3340], ["g5_updatable_hub_amenity_id", 1384]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:21.980012"], ["updated_at", "2016-12-09 21:04:21.980012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:21.981177"], ["id", 1385]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3340], ["g5_updatable_hub_amenity_id", 1385]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3340]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:21.984986"], ["id", 3340]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:21.990526"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:21.992610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3341]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:21.997556"], ["updated_at", "2016-12-09 21:04:21.997556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:21.998753"], ["id", 1386]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3341], ["g5_updatable_hub_amenity_id", 1386]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.001509"], ["updated_at", "2016-12-09 21:04:22.001509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.002598"], ["id", 1387]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3341], ["g5_updatable_hub_amenity_id", 1387]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3341]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.006516"], ["id", 3341]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.013100"], ["updated_at", "2016-12-09 21:04:22.013100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.014912"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.016923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3343]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.021413"], ["updated_at", "2016-12-09 21:04:22.021413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.022420"], ["id", 1388]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3343], ["g5_updatable_hub_amenity_id", 1388]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.025077"], ["updated_at", "2016-12-09 21:04:22.025077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.026299"], ["id", 1389]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3343], ["g5_updatable_hub_amenity_id", 1389]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3343]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.030244"], ["id", 3343]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3342]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3342]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.037777"], ["updated_at", "2016-12-09 21:04:22.037777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.039592"], ["updated_at", "2016-12-09 21:04:22.039592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3344], ["g5_updatable_hub_amenity_id", 1390]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.042465"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3344]]  (0.3ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3344]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.052133"], ["id", 1390]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3344], ["g5_updatable_hub_amenity_id", 1390]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.055135"], ["updated_at", "2016-12-09 21:04:22.055135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.056434"], ["id", 1391]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3344], ["g5_updatable_hub_amenity_id", 1391]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3344]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.060735"], ["id", 3344]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.079846"], ["updated_at", "2016-12-09 21:04:22.079846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.081374"], ["updated_at", "2016-12-09 21:04:22.081374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3345], ["g5_updatable_hub_amenity_id", 1392]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.084009"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3345]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3345]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.091369"], ["updated_at", "2016-12-09 21:04:22.091369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.092471"], ["id", 1393]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3345], ["g5_updatable_hub_amenity_id", 1393]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.095177"], ["updated_at", "2016-12-09 21:04:22.095177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.096327"], ["id", 1394]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3345], ["g5_updatable_hub_amenity_id", 1394]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.099439"], ["id", 3345]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3345]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.104578"], ["updated_at", "2016-12-09 21:04:22.104578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.106215"], ["updated_at", "2016-12-09 21:04:22.106215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3346], ["g5_updatable_hub_amenity_id", 1395]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.108883"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3346]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3346]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.115763"], ["updated_at", "2016-12-09 21:04:22.115763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.116758"], ["id", 1396]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3346], ["g5_updatable_hub_amenity_id", 1396]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.119012"], ["updated_at", "2016-12-09 21:04:22.119012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.119910"], ["id", 1397]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3346], ["g5_updatable_hub_amenity_id", 1397]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3346]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.123144"], ["id", 3346]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.127073"], ["updated_at", "2016-12-09 21:04:22.127073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.128459"], ["updated_at", "2016-12-09 21:04:22.128459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3347], ["g5_updatable_hub_amenity_id", 1398]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.131340"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3347]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3347]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.137214"], ["updated_at", "2016-12-09 21:04:22.137214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.138144"], ["id", 1399]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3347], ["g5_updatable_hub_amenity_id", 1399]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.140508"], ["updated_at", "2016-12-09 21:04:22.140508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.141402"], ["id", 1400]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3347], ["g5_updatable_hub_amenity_id", 1400]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3347]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.144558"], ["id", 3347]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.156842"], ["updated_at", "2016-12-09 21:04:22.156842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.158539"], ["updated_at", "2016-12-09 21:04:22.158539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3348], ["g5_updatable_hub_amenity_id", 1401]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.161542"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3348]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3348]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.167361"], ["updated_at", "2016-12-09 21:04:22.167361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.168330"], ["id", 1402]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3348], ["g5_updatable_hub_amenity_id", 1402]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.171117"], ["updated_at", "2016-12-09 21:04:22.171117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.171996"], ["id", 1403]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3348], ["g5_updatable_hub_amenity_id", 1403]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3348]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.175406"], ["id", 3348]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:22.177992"], ["updated_at", "2016-12-09 21:04:22.177992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.179330"], ["updated_at", "2016-12-09 21:04:22.179330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1432]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3349]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.182231"], ["updated_at", "2016-12-09 21:04:22.182231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.183643"], ["updated_at", "2016-12-09 21:04:22.183643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3350], ["g5_updatable_hub_amenity_id", 1404]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.186154"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3350]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3350]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.192042"], ["updated_at", "2016-12-09 21:04:22.192042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.192996"], ["id", 1405]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3350], ["g5_updatable_hub_amenity_id", 1405]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.195448"], ["updated_at", "2016-12-09 21:04:22.195448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.196581"], ["id", 1406]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3350], ["g5_updatable_hub_amenity_id", 1406]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3350]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.199932"], ["id", 3350]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.205580"], ["updated_at", "2016-12-09 21:04:22.205580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.207382"], ["updated_at", "2016-12-09 21:04:22.207382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3351], ["g5_updatable_hub_amenity_id", 1407]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.210315"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3351]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3351]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.216456"], ["updated_at", "2016-12-09 21:04:22.216456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.217403"], ["id", 1408]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3351], ["g5_updatable_hub_amenity_id", 1408]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.219913"], ["id", 1407]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3351], ["g5_updatable_hub_amenity_id", 1407]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3351]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.222895"], ["id", 3351]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.227423"], ["updated_at", "2016-12-09 21:04:22.227423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.228732"], ["updated_at", "2016-12-09 21:04:22.228732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3352], ["g5_updatable_hub_amenity_id", 1409]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.232184"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3352]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3352]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.238214"], ["updated_at", "2016-12-09 21:04:22.238214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.239190"], ["id", 1410]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3352], ["g5_updatable_hub_amenity_id", 1410]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.241479"], ["updated_at", "2016-12-09 21:04:22.241479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.242465"], ["id", 1411]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3352], ["g5_updatable_hub_amenity_id", 1411]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3352]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.245571"], ["id", 3352]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.250464"], ["updated_at", "2016-12-09 21:04:22.250464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.251848"], ["updated_at", "2016-12-09 21:04:22.251848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3353], ["g5_updatable_hub_amenity_id", 1412]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.254403"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3353]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3353]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.260663"], ["updated_at", "2016-12-09 21:04:22.260663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.261828"], ["id", 1413]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3353], ["g5_updatable_hub_amenity_id", 1413]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.264496"], ["updated_at", "2016-12-09 21:04:22.264496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.265414"], ["id", 1414]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3353], ["g5_updatable_hub_amenity_id", 1414]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3353]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.269348"], ["id", 3353]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 21:04:22.272731"], ["updated_at", "2016-12-09 21:04:22.272731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.274110"], ["updated_at", "2016-12-09 21:04:22.274110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1433]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3354]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.277264"], ["updated_at", "2016-12-09 21:04:22.277264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.278813"], ["updated_at", "2016-12-09 21:04:22.278813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3355], ["g5_updatable_hub_amenity_id", 1415]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.281699"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3355]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3355]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.291380"], ["updated_at", "2016-12-09 21:04:22.291380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.292349"], ["id", 1416]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3355], ["g5_updatable_hub_amenity_id", 1416]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.294928"], ["updated_at", "2016-12-09 21:04:22.294928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.296032"], ["id", 1417]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3355], ["g5_updatable_hub_amenity_id", 1417]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3355]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.299230"], ["id", 3355]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:04:22.303644"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:04:22.306405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.315062"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3356]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3356]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.322322"], ["updated_at", "2016-12-09 21:04:22.322322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.323482"], ["id", 1418]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3356], ["g5_updatable_hub_amenity_id", 1418]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.326352"], ["updated_at", "2016-12-09 21:04:22.326352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.327926"], ["id", 1419]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3356], ["g5_updatable_hub_amenity_id", 1419]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3356]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.331880"], ["id", 3356]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3356]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:04:22.336560"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:04:22.339047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.346243"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3357]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3357]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.352882"], ["updated_at", "2016-12-09 21:04:22.352882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.354103"], ["id", 1420]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3357], ["g5_updatable_hub_amenity_id", 1420]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.356866"], ["updated_at", "2016-12-09 21:04:22.356866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.358090"], ["id", 1421]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3357], ["g5_updatable_hub_amenity_id", 1421]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3357]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.361643"], ["id", 3357]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:22.364430"], ["updated_at", "2016-12-09 21:04:22.364430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.365652"], ["updated_at", "2016-12-09 21:04:22.365652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1434]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3358]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:22.369542"], ["updated_at", "2016-12-09 21:04:22.369542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.371603"], ["updated_at", "2016-12-09 21:04:22.371603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.372857"], ["updated_at", "2016-12-09 21:04:22.372857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:22.373979"], ["updated_at", "2016-12-09 21:04:22.373979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.375163"], ["updated_at", "2016-12-09 21:04:22.375163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 21:04:22.382398"], ["updated_at", "2016-12-09 21:04:22.382398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.384022"], ["updated_at", "2016-12-09 21:04:22.384022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.385436"], ["updated_at", "2016-12-09 21:04:22.385436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:22.386559"], ["updated_at", "2016-12-09 21:04:22.386559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.387847"], ["updated_at", "2016-12-09 21:04:22.387847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:22.399477"], ["updated_at", "2016-12-09 21:04:22.399477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1439]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:04:22.418611"], ["updated_at", "2016-12-09 21:04:22.418611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.420378"], ["updated_at", "2016-12-09 21:04:22.420378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:04:22.448572"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:04:22.449991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.452771"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.454516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3366]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3366]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:04:22.462078"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.464203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3367]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3367]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:04:22.470752"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.472730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3368]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.476842"], ["updated_at", "2016-12-09 21:04:22.476842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.478011"], ["id", 1422]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3368], ["g5_updatable_hub_amenity_id", 1422]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.480907"], ["updated_at", "2016-12-09 21:04:22.480907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.481966"], ["id", 1423]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3368], ["g5_updatable_hub_amenity_id", 1423]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3368]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.485718"], ["id", 3368]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:04:22.488568"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.490315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3369]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3369], ["g5_updatable_hub_amenity_id", 1422]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3369], ["g5_updatable_hub_amenity_id", 1423]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3369]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.499129"], ["id", 3369]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:04:22.502007"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.504307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3370]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3370]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:04:22.525409"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:04:22.526399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.528873"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.530804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3371]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3371]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:04:22.537085"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.538796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3372]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3372]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:04:22.544561"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.546361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3373]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.549924"], ["updated_at", "2016-12-09 21:04:22.549924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.550854"], ["id", 1424]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3373], ["g5_updatable_hub_amenity_id", 1424]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.553136"], ["updated_at", "2016-12-09 21:04:22.553136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.554107"], ["id", 1425]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3373], ["g5_updatable_hub_amenity_id", 1425]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3373]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.557378"], ["id", 3373]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:04:22.560050"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.561726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3374]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3374], ["g5_updatable_hub_amenity_id", 1424]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3374], ["g5_updatable_hub_amenity_id", 1425]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3374]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.569228"], ["id", 3374]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:04:22.571725"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.573368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3375]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3375]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3373]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:04:22.585353"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:04:22.586353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.588632"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.590492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3376]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3376]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:04:22.596966"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.598719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3377]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3377]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:04:22.604877"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.606577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3378]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.610679"], ["updated_at", "2016-12-09 21:04:22.610679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.611860"], ["id", 1426]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3378], ["g5_updatable_hub_amenity_id", 1426]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.614641"], ["updated_at", "2016-12-09 21:04:22.614641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.615551"], ["id", 1427]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3378], ["g5_updatable_hub_amenity_id", 1427]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3378]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.618588"], ["id", 3378]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:04:22.620982"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.622661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3379]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3379], ["g5_updatable_hub_amenity_id", 1426]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3379], ["g5_updatable_hub_amenity_id", 1427]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3379]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.630482"], ["id", 3379]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:04:22.634005"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.635800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3380]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3380]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:04:22.646459"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:04:22.647390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.649562"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.651311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3381]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3381]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:04:22.657712"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.659704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3382]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3382]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:04:22.670690"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.672528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3383]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.676004"], ["updated_at", "2016-12-09 21:04:22.676004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.676991"], ["id", 1428]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3383], ["g5_updatable_hub_amenity_id", 1428]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.679580"], ["updated_at", "2016-12-09 21:04:22.679580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.680486"], ["id", 1429]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3383], ["g5_updatable_hub_amenity_id", 1429]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3383]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.683520"], ["id", 3383]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:04:22.685889"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.687634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3384]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3384], ["g5_updatable_hub_amenity_id", 1428]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3384], ["g5_updatable_hub_amenity_id", 1429]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3384]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.694732"], ["id", 3384]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:04:22.697186"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.698713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3385]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3385]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:04:22.716324"], ["id", 1444]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3385]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3385]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3384]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1590]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1591]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3384]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3383]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1588]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1589]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3383]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3382]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3382]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3381]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3381]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:04:22.731333"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:04:22.732254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.734430"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.736018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3386]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3386]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:04:22.741742"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.743799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3387]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3387]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:04:22.749646"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.751265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3388]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.754603"], ["updated_at", "2016-12-09 21:04:22.754603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.755538"], ["id", 1430]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3388], ["g5_updatable_hub_amenity_id", 1430]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.758284"], ["updated_at", "2016-12-09 21:04:22.758284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.759198"], ["id", 1431]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3388], ["g5_updatable_hub_amenity_id", 1431]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3388]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.762730"], ["id", 3388]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:04:22.765171"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.766921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3389]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3389], ["g5_updatable_hub_amenity_id", 1430]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3389], ["g5_updatable_hub_amenity_id", 1431]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3389]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.774156"], ["id", 3389]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:04:22.776477"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.778121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3390]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3390]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:04:22.788513"], ["id", 1445]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 21:04:22.793661"], ["id", 3386]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3386]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3386]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3390]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3390]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3389]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1594]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1595]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3389]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3388]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1592]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1593]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3388]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3387]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3387]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:22.815765"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:22.818089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3391]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:22.822188"], ["updated_at", "2016-12-09 21:04:22.822188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:22.823181"], ["id", 1432]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3391], ["g5_updatable_hub_amenity_id", 1432]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:22.830555"], ["updated_at", "2016-12-09 21:04:22.830555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:22.831771"], ["id", 1433]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3391], ["g5_updatable_hub_amenity_id", 1433]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3391]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:22.835447"], ["id", 3391]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.854106"], ["updated_at", "2016-12-09 21:04:22.854106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.855520"], ["updated_at", "2016-12-09 21:04:22.855520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.856697"], ["updated_at", "2016-12-09 21:04:22.856697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3392], ["g5_updatable_hub_amenity_id", 1434]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3392], ["g5_updatable_hub_amenity_id", 1435]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3392]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-11|amenity-12|"], ["updated_at", "2016-12-09 21:04:22.862264"], ["id", 3392]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3392]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3392]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3392]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3392]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3392]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.867012"], ["updated_at", "2016-12-09 21:04:22.867012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.868191"], ["updated_at", "2016-12-09 21:04:22.868191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-09 21:04:22.869089"], ["updated_at", "2016-12-09 21:04:22.869089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3393], ["g5_updatable_hub_amenity_id", 1436]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3393], ["g5_updatable_hub_amenity_id", 1437]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3393]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-13|amenity-14|"], ["updated_at", "2016-12-09 21:04:22.873635"], ["id", 3393]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3393]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3393]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.876610"], ["updated_at", "2016-12-09 21:04:22.876610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.878059"], ["updated_at", "2016-12-09 21:04:22.878059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.881241"], ["updated_at", "2016-12-09 21:04:22.881241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.882655"], ["updated_at", "2016-12-09 21:04:22.882655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.885796"], ["updated_at", "2016-12-09 21:04:22.885796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.887285"], ["updated_at", "2016-12-09 21:04:22.887285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.890124"], ["updated_at", "2016-12-09 21:04:22.890124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.891550"], ["updated_at", "2016-12-09 21:04:22.891550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.895182"], ["updated_at", "2016-12-09 21:04:22.895182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.896626"], ["updated_at", "2016-12-09 21:04:22.896626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.918226"], ["updated_at", "2016-12-09 21:04:22.918226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.920314"], ["updated_at", "2016-12-09 21:04:22.920314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:22.922271"], ["updated_at", "2016-12-09 21:04:22.922271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.926696"], ["updated_at", "2016-12-09 21:04:22.926696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.929068"], ["updated_at", "2016-12-09 21:04:22.929068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.930383"], ["updated_at", "2016-12-09 21:04:22.930383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.933297"], ["updated_at", "2016-12-09 21:04:22.933297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.935371"], ["updated_at", "2016-12-09 21:04:22.935371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.936602"], ["updated_at", "2016-12-09 21:04:22.936602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.939635"], ["updated_at", "2016-12-09 21:04:22.939635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.941494"], ["updated_at", "2016-12-09 21:04:22.941494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.942647"], ["updated_at", "2016-12-09 21:04:22.942647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.945460"], ["updated_at", "2016-12-09 21:04:22.945460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.947633"], ["updated_at", "2016-12-09 21:04:22.947633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.948680"], ["updated_at", "2016-12-09 21:04:22.948680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.951596"], ["updated_at", "2016-12-09 21:04:22.951596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.953545"], ["updated_at", "2016-12-09 21:04:22.953545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.954670"], ["updated_at", "2016-12-09 21:04:22.954670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.958274"], ["updated_at", "2016-12-09 21:04:22.958274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.960418"], ["updated_at", "2016-12-09 21:04:22.960418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.961661"], ["updated_at", "2016-12-09 21:04:22.961661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.965130"], ["updated_at", "2016-12-09 21:04:22.965130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.967120"], ["updated_at", "2016-12-09 21:04:22.967120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.968232"], ["updated_at", "2016-12-09 21:04:22.968232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.970330"], ["updated_at", "2016-12-09 21:04:22.970330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.972169"], ["updated_at", "2016-12-09 21:04:22.972169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.973307"], ["updated_at", "2016-12-09 21:04:22.973307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:04:22.975254"], ["updated_at", "2016-12-09 21:04:22.975254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.977257"], ["updated_at", "2016-12-09 21:04:22.977257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.979181"], ["updated_at", "2016-12-09 21:04:22.979181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.980319"], ["updated_at", "2016-12-09 21:04:22.980319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.982437"], ["updated_at", "2016-12-09 21:04:22.982437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.984383"], ["updated_at", "2016-12-09 21:04:22.984383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.985454"], ["updated_at", "2016-12-09 21:04:22.985454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.989212"], ["updated_at", "2016-12-09 21:04:22.989212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.992041"], ["updated_at", "2016-12-09 21:04:22.992041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.993218"], ["updated_at", "2016-12-09 21:04:22.993218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:22.996627"], ["updated_at", "2016-12-09 21:04:22.996627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:22.998657"], ["updated_at", "2016-12-09 21:04:22.998657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:22.999785"], ["updated_at", "2016-12-09 21:04:22.999785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:04:23.002334"], ["updated_at", "2016-12-09 21:04:23.002334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:23.004247"], ["updated_at", "2016-12-09 21:04:23.004247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:04:23.005345"], ["updated_at", "2016-12-09 21:04:23.005345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:23.017489"], ["updated_at", "2016-12-09 21:04:23.017489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3434]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:23.021812"], ["updated_at", "2016-12-09 21:04:23.021812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:23.023088"], ["updated_at", "2016-12-09 21:04:23.023088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:04:23.025637"], ["updated_at", "2016-12-09 21:04:23.025637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:04:23.026885"], ["updated_at", "2016-12-09 21:04:23.026885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:23.036957"], ["updated_at", "2016-12-09 21:04:23.036957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:04:23.038118"], ["updated_at", "2016-12-09 21:04:23.038118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-09 21:04:23.039275"], ["updated_at", "2016-12-09 21:04:23.039275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-09 21:04:23.040217"], ["updated_at", "2016-12-09 21:04:23.040217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-09 21:04:23.041171"], ["updated_at", "2016-12-09 21:04:23.041171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3437], ["g5_updatable_hub_amenity_id", 1438]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3437], ["g5_updatable_hub_amenity_id", 1439]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.9ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:04:23.057692"], ["updated_at", "2016-12-09 21:04:23.057692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:04:23.059051"], ["updated_at", "2016-12-09 21:04:23.059051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-09 21:04:23.060394"], ["updated_at", "2016-12-09 21:04:23.060394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-09 21:04:23.061529"], ["updated_at", "2016-12-09 21:04:23.061529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-09 21:04:23.062758"], ["updated_at", "2016-12-09 21:04:23.062758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3438], ["g5_updatable_hub_amenity_id", 1441]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3438], ["g5_updatable_hub_amenity_id", 1442]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.5ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:04:34.582948"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:04:34.585742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:04:34.593576"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:34.596878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3439]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3439]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:04:34.623037"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:34.624853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3440]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3440]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:04:34.632358"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:34.634297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3441]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:04:34.641853"], ["updated_at", "2016-12-09 21:04:34.641853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:04:34.644300"], ["id", 1444]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3441], ["g5_updatable_hub_amenity_id", 1444]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:04:34.651881"], ["updated_at", "2016-12-09 21:04:34.651881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:04:34.653096"], ["id", 1445]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3441], ["g5_updatable_hub_amenity_id", 1445]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3441]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:34.657798"], ["id", 3441]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:04:34.666442"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:34.668474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3442]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3442], ["g5_updatable_hub_amenity_id", 1444]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3442], ["g5_updatable_hub_amenity_id", 1445]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3442]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:04:34.677555"], ["id", 3442]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:04:34.680886"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:04:34.682818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3443]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3443]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:05:45.452026"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:05:45.455373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:45.463949"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:45.466669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3444]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3444]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:05:45.495522"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:45.497386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3445]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3445]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:05:45.504381"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:45.506314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3446]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:45.513822"], ["updated_at", "2016-12-09 21:05:45.513822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:45.516271"], ["id", 1446]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3446], ["g5_updatable_hub_amenity_id", 1446]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:45.524250"], ["updated_at", "2016-12-09 21:05:45.524250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:45.525536"], ["id", 1447]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3446], ["g5_updatable_hub_amenity_id", 1447]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3446]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:45.529475"], ["id", 3446]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:05:45.532362"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:45.534267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3447]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3447], ["g5_updatable_hub_amenity_id", 1446]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3447], ["g5_updatable_hub_amenity_id", 1447]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3447]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:45.542784"], ["id", 3447]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:05:45.545486"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:45.547271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3448]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3448]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.358916"], ["updated_at", "2016-12-09 21:05:49.358916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3449]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.367534"], ["updated_at", "2016-12-09 21:05:49.367534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.369622"], ["updated_at", "2016-12-09 21:05:49.369622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.371804"], ["updated_at", "2016-12-09 21:05:49.371804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.376981"], ["updated_at", "2016-12-09 21:05:49.376981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.378715"], ["updated_at", "2016-12-09 21:05:49.378715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.381634"], ["updated_at", "2016-12-09 21:05:49.381634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.383027"], ["updated_at", "2016-12-09 21:05:49.383027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.386638"], ["updated_at", "2016-12-09 21:05:49.386638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.388101"], ["updated_at", "2016-12-09 21:05:49.388101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.393300"], ["updated_at", "2016-12-09 21:05:49.393300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.395154"], ["updated_at", "2016-12-09 21:05:49.395154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.398114"], ["updated_at", "2016-12-09 21:05:49.398114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.399479"], ["updated_at", "2016-12-09 21:05:49.399479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.402839"], ["updated_at", "2016-12-09 21:05:49.402839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.409533"], ["updated_at", "2016-12-09 21:05:49.409533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.414333"], ["updated_at", "2016-12-09 21:05:49.414333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.417732"], ["updated_at", "2016-12-09 21:05:49.417732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.419918"], ["updated_at", "2016-12-09 21:05:49.419918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.421177"], ["updated_at", "2016-12-09 21:05:49.421177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.425201"], ["updated_at", "2016-12-09 21:05:49.425201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.427962"], ["updated_at", "2016-12-09 21:05:49.427962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.429252"], ["updated_at", "2016-12-09 21:05:49.429252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.432942"], ["updated_at", "2016-12-09 21:05:49.432942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.435087"], ["updated_at", "2016-12-09 21:05:49.435087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.436329"], ["updated_at", "2016-12-09 21:05:49.436329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.439339"], ["updated_at", "2016-12-09 21:05:49.439339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.441710"], ["updated_at", "2016-12-09 21:05:49.441710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.443072"], ["updated_at", "2016-12-09 21:05:49.443072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:05:49.445142"], ["updated_at", "2016-12-09 21:05:49.445142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.446979"], ["updated_at", "2016-12-09 21:05:49.446979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.448888"], ["updated_at", "2016-12-09 21:05:49.448888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.449993"], ["updated_at", "2016-12-09 21:05:49.449993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.453039"], ["updated_at", "2016-12-09 21:05:49.453039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.456612"], ["updated_at", "2016-12-09 21:05:49.456612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.458723"], ["updated_at", "2016-12-09 21:05:49.458723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.462502"], ["updated_at", "2016-12-09 21:05:49.462502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.464778"], ["updated_at", "2016-12-09 21:05:49.464778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.466067"], ["updated_at", "2016-12-09 21:05:49.466067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.470021"], ["updated_at", "2016-12-09 21:05:49.470021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.472648"], ["updated_at", "2016-12-09 21:05:49.472648"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.474298"], ["updated_at", "2016-12-09 21:05:49.474298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.478700"], ["updated_at", "2016-12-09 21:05:49.478700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.481411"], ["updated_at", "2016-12-09 21:05:49.481411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.482673"], ["updated_at", "2016-12-09 21:05:49.482673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.485746"], ["updated_at", "2016-12-09 21:05:49.485746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.487831"], ["updated_at", "2016-12-09 21:05:49.487831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.489331"], ["updated_at", "2016-12-09 21:05:49.489331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.492730"], ["updated_at", "2016-12-09 21:05:49.492730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.494805"], ["updated_at", "2016-12-09 21:05:49.494805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.496010"], ["updated_at", "2016-12-09 21:05:49.496010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:05:49.499079"], ["updated_at", "2016-12-09 21:05:49.499079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:49.501289"], ["updated_at", "2016-12-09 21:05:49.501289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:05:49.502467"], ["updated_at", "2016-12-09 21:05:49.502467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:05:49.509280"], ["updated_at", "2016-12-09 21:05:49.509280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.510760"], ["updated_at", "2016-12-09 21:05:49.510760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:05:49.515145"], ["updated_at", "2016-12-09 21:05:49.515145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.516442"], ["updated_at", "2016-12-09 21:05:49.516442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.554183"], ["updated_at", "2016-12-09 21:05:49.554183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:05:49.562120"], ["updated_at", "2016-12-09 21:05:49.562120"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:05:49.566767"], ["updated_at", "2016-12-09 21:05:49.566767"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3492], ["g5_updatable_hub_amenity_id", 1448]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3492], ["g5_updatable_hub_amenity_id", 1449]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3492]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 21:05:49.602601"], ["id", 3492]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3492]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3492]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.607874"], ["updated_at", "2016-12-09 21:05:49.607874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:05:49.610055"], ["updated_at", "2016-12-09 21:05:49.610055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:05:49.611425"], ["updated_at", "2016-12-09 21:05:49.611425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3493], ["g5_updatable_hub_amenity_id", 1450]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3493], ["g5_updatable_hub_amenity_id", 1451]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3493]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 21:05:49.617959"], ["id", 3493]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3493]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3493]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3493]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3493]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3493]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.628141"], ["updated_at", "2016-12-09 21:05:49.628141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.72ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:49.645270"], ["updated_at", "2016-12-09 21:05:49.645270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.37ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:49.719757"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:49.723135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3496]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:49.729748"], ["updated_at", "2016-12-09 21:05:49.729748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:49.732253"], ["id", 1452]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3496], ["g5_updatable_hub_amenity_id", 1452]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:49.735703"], ["updated_at", "2016-12-09 21:05:49.735703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:49.736897"], ["id", 1453]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3496], ["g5_updatable_hub_amenity_id", 1453]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3496]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:49.741370"], ["id", 3496]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:49.751241"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:49.753603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3497]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:49.759189"], ["updated_at", "2016-12-09 21:05:49.759189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:49.760647"], ["id", 1454]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3497], ["g5_updatable_hub_amenity_id", 1454]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:49.763983"], ["updated_at", "2016-12-09 21:05:49.763983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:49.765780"], ["id", 1455]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3497], ["g5_updatable_hub_amenity_id", 1455]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3497]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:49.770149"], ["id", 3497]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:49.777273"], ["updated_at", "2016-12-09 21:05:49.777273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:49.779424"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:49.781446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3499]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:49.786252"], ["updated_at", "2016-12-09 21:05:49.786252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:49.787771"], ["id", 1456]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3499], ["g5_updatable_hub_amenity_id", 1456]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:49.791821"], ["updated_at", "2016-12-09 21:05:49.791821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:49.793005"], ["id", 1457]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3499], ["g5_updatable_hub_amenity_id", 1457]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3499]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:49.796528"], ["id", 3499]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3498]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3498]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:49.804831"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:49.807237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3500]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:49.812016"], ["updated_at", "2016-12-09 21:05:49.812016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:49.813371"], ["id", 1458]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3500], ["g5_updatable_hub_amenity_id", 1458]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:49.817224"], ["updated_at", "2016-12-09 21:05:49.817224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:49.818567"], ["id", 1459]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3500], ["g5_updatable_hub_amenity_id", 1459]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3500]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:49.825519"], ["id", 3500]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:49.832191"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:49.834621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3501]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:49.840052"], ["updated_at", "2016-12-09 21:05:49.840052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:49.841332"], ["id", 1460]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3501], ["g5_updatable_hub_amenity_id", 1460]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:49.844549"], ["updated_at", "2016-12-09 21:05:49.844549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:49.846140"], ["id", 1461]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3501], ["g5_updatable_hub_amenity_id", 1461]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3501]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:49.850331"], ["id", 3501]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:49.857062"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:49.859911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3502]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:49.867069"], ["updated_at", "2016-12-09 21:05:49.867069"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:49.870246"], ["id", 1462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3502], ["g5_updatable_hub_amenity_id", 1462]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:49.876689"], ["updated_at", "2016-12-09 21:05:49.876689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:49.878016"], ["id", 1463]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3502], ["g5_updatable_hub_amenity_id", 1463]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3502]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:49.882253"], ["id", 3502]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:49.886540"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:49.888662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3503]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:49.893911"], ["updated_at", "2016-12-09 21:05:49.893911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:49.895259"], ["id", 1464]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3503], ["g5_updatable_hub_amenity_id", 1464]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:49.900073"], ["updated_at", "2016-12-09 21:05:49.900073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:49.902489"], ["id", 1465]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3503], ["g5_updatable_hub_amenity_id", 1465]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3503]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:49.909546"], ["id", 3503]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3503]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3503]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:49.918252"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:49.920395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3504]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:49.925761"], ["updated_at", "2016-12-09 21:05:49.925761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:49.927739"], ["id", 1466]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3504], ["g5_updatable_hub_amenity_id", 1466]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:49.930869"], ["updated_at", "2016-12-09 21:05:49.930869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:49.931902"], ["id", 1467]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3504], ["g5_updatable_hub_amenity_id", 1467]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3504]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:49.935613"], ["id", 3504]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:49.942599"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:49.945078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3505]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:49.950418"], ["updated_at", "2016-12-09 21:05:49.950418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:49.951802"], ["id", 1468]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3505], ["g5_updatable_hub_amenity_id", 1468]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:49.955892"], ["updated_at", "2016-12-09 21:05:49.955892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:49.957794"], ["id", 1469]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3505], ["g5_updatable_hub_amenity_id", 1469]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3505]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:49.969359"], ["id", 3505]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:49.978672"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:49.981812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3506]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:49.996565"], ["updated_at", "2016-12-09 21:05:49.996565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:49.997920"], ["id", 1470]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3506], ["g5_updatable_hub_amenity_id", 1470]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.001060"], ["updated_at", "2016-12-09 21:05:50.001060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.002171"], ["id", 1471]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3506], ["g5_updatable_hub_amenity_id", 1471]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3506]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.006737"], ["id", 3506]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.013026"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.015258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3507]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.019783"], ["updated_at", "2016-12-09 21:05:50.019783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.021037"], ["id", 1472]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3507], ["g5_updatable_hub_amenity_id", 1472]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.024707"], ["updated_at", "2016-12-09 21:05:50.024707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.026026"], ["id", 1473]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3507], ["g5_updatable_hub_amenity_id", 1473]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3507]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.030077"], ["id", 3507]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.035739"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.038228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3508]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.043327"], ["updated_at", "2016-12-09 21:05:50.043327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.044482"], ["id", 1474]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3508], ["g5_updatable_hub_amenity_id", 1474]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.047485"], ["updated_at", "2016-12-09 21:05:50.047485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.048527"], ["id", 1475]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3508], ["g5_updatable_hub_amenity_id", 1475]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3508]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.052325"], ["id", 3508]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.058359"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.060633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3509]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.065553"], ["updated_at", "2016-12-09 21:05:50.065553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.066696"], ["id", 1476]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3509], ["g5_updatable_hub_amenity_id", 1476]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.069769"], ["updated_at", "2016-12-09 21:05:50.069769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.071027"], ["id", 1477]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3509], ["g5_updatable_hub_amenity_id", 1477]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3509]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.075705"], ["id", 3509]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:05:50.079012"], ["updated_at", "2016-12-09 21:05:50.079012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.080477"], ["updated_at", "2016-12-09 21:05:50.080477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1480]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3510]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.084501"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.086685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3511]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.092167"], ["updated_at", "2016-12-09 21:05:50.092167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.093532"], ["id", 1478]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3511], ["g5_updatable_hub_amenity_id", 1478]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.096732"], ["updated_at", "2016-12-09 21:05:50.096732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.098000"], ["id", 1479]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3511], ["g5_updatable_hub_amenity_id", 1479]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3511]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.102054"], ["id", 3511]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.110678"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.113125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3512]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.118265"], ["updated_at", "2016-12-09 21:05:50.118265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.119472"], ["id", 1480]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3512], ["g5_updatable_hub_amenity_id", 1480]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.122450"], ["updated_at", "2016-12-09 21:05:50.122450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.123904"], ["id", 1481]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3512], ["g5_updatable_hub_amenity_id", 1481]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3512]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.128514"], ["id", 3512]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.137019"], ["updated_at", "2016-12-09 21:05:50.137019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 21:05:50.144245"], ["updated_at", "2016-12-09 21:05:50.144245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.148901"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.151044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3515]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.156035"], ["updated_at", "2016-12-09 21:05:50.156035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.157256"], ["id", 1482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3515], ["g5_updatable_hub_amenity_id", 1482]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.160318"], ["updated_at", "2016-12-09 21:05:50.160318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.161306"], ["id", 1483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3515], ["g5_updatable_hub_amenity_id", 1483]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3515]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.164971"], ["id", 3515]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3513]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3513]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.173885"], ["updated_at", "2016-12-09 21:05:50.173885"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.178625"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3516]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3516]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.191533"], ["updated_at", "2016-12-09 21:05:50.191533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.193796"], ["id", 1484]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3516], ["g5_updatable_hub_amenity_id", 1484]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.199122"], ["updated_at", "2016-12-09 21:05:50.199122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.201075"], ["id", 1485]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3516], ["g5_updatable_hub_amenity_id", 1485]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3516]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.208797"], ["id", 3516]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.217938"], ["updated_at", "2016-12-09 21:05:50.217938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.221460"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3517]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3517]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.236063"], ["updated_at", "2016-12-09 21:05:50.236063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.238205"], ["id", 1486]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3517], ["g5_updatable_hub_amenity_id", 1486]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.245282"], ["updated_at", "2016-12-09 21:05:50.245282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.247056"], ["id", 1487]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3517], ["g5_updatable_hub_amenity_id", 1487]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3517]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.255018"], ["id", 3517]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.281926"], ["updated_at", "2016-12-09 21:05:50.281926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.284929"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3518]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3518]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.294023"], ["updated_at", "2016-12-09 21:05:50.294023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.295450"], ["id", 1488]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3518], ["g5_updatable_hub_amenity_id", 1488]]  (0.7ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.300918"], ["updated_at", "2016-12-09 21:05:50.300918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.303226"], ["id", 1489]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3518], ["g5_updatable_hub_amenity_id", 1489]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3518]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.311521"], ["id", 3518]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.318293"], ["updated_at", "2016-12-09 21:05:50.318293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 21:05:50.320896"], ["updated_at", "2016-12-09 21:05:50.320896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3519], ["g5_updatable_hub_amenity_id", 1490]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.324751"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3519]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3519]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.335514"], ["updated_at", "2016-12-09 21:05:50.335514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.337451"], ["id", 1491]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3519], ["g5_updatable_hub_amenity_id", 1491]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.342563"], ["updated_at", "2016-12-09 21:05:50.342563"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.344431"], ["id", 1492]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3519], ["g5_updatable_hub_amenity_id", 1492]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3519]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.349548"], ["id", 3519]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.356685"], ["updated_at", "2016-12-09 21:05:50.356685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 21:05:50.359014"], ["updated_at", "2016-12-09 21:05:50.359014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3520], ["g5_updatable_hub_amenity_id", 1493]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.362200"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3520]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3520]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.372538"], ["updated_at", "2016-12-09 21:05:50.372538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.374407"], ["id", 1494]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3520], ["g5_updatable_hub_amenity_id", 1494]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.378748"], ["updated_at", "2016-12-09 21:05:50.378748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.380509"], ["id", 1495]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3520], ["g5_updatable_hub_amenity_id", 1495]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3520]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.384469"], ["id", 3520]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.390280"], ["updated_at", "2016-12-09 21:05:50.390280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 21:05:50.392656"], ["updated_at", "2016-12-09 21:05:50.392656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3521], ["g5_updatable_hub_amenity_id", 1496]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.396903"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3521]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3521]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.406691"], ["updated_at", "2016-12-09 21:05:50.406691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.409179"], ["id", 1497]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3521], ["g5_updatable_hub_amenity_id", 1497]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.413853"], ["id", 1496]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3521], ["g5_updatable_hub_amenity_id", 1496]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3521]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.418461"], ["id", 3521]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3521]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (6.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.427505"], ["updated_at", "2016-12-09 21:05:50.427505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 21:05:50.436844"], ["updated_at", "2016-12-09 21:05:50.436844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3522], ["g5_updatable_hub_amenity_id", 1498]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.443316"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3522]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3522]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.452866"], ["updated_at", "2016-12-09 21:05:50.452866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.454760"], ["id", 1499]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3522], ["g5_updatable_hub_amenity_id", 1499]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.459689"], ["updated_at", "2016-12-09 21:05:50.459689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.461561"], ["id", 1500]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3522], ["g5_updatable_hub_amenity_id", 1500]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3522]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.468988"], ["id", 3522]]  (0.8ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.479403"], ["updated_at", "2016-12-09 21:05:50.479403"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 21:05:50.482638"], ["updated_at", "2016-12-09 21:05:50.482638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3523], ["g5_updatable_hub_amenity_id", 1501]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.488171"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3523]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3523]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.499811"], ["updated_at", "2016-12-09 21:05:50.499811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.501810"], ["id", 1502]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3523], ["g5_updatable_hub_amenity_id", 1502]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (1.0ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.507945"], ["updated_at", "2016-12-09 21:05:50.507945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.509963"], ["id", 1503]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3523], ["g5_updatable_hub_amenity_id", 1503]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3523]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.515845"], ["id", 3523]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.525062"], ["updated_at", "2016-12-09 21:05:50.525062"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 21:05:50.528599"], ["updated_at", "2016-12-09 21:05:50.528599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3524], ["g5_updatable_hub_amenity_id", 1504]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.533013"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3524]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3524]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.542932"], ["updated_at", "2016-12-09 21:05:50.542932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.544395"], ["id", 1505]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3524], ["g5_updatable_hub_amenity_id", 1505]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.547363"], ["updated_at", "2016-12-09 21:05:50.547363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.548477"], ["id", 1506]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3524], ["g5_updatable_hub_amenity_id", 1506]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3524]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.553525"], ["id", 3524]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.559927"], ["updated_at", "2016-12-09 21:05:50.559927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-09 21:05:50.562437"], ["updated_at", "2016-12-09 21:05:50.562437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3525], ["g5_updatable_hub_amenity_id", 1507]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.566842"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3525]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3525]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.577914"], ["updated_at", "2016-12-09 21:05:50.577914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.579590"], ["id", 1508]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3525], ["g5_updatable_hub_amenity_id", 1508]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.583536"], ["updated_at", "2016-12-09 21:05:50.583536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.585205"], ["id", 1509]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3525], ["g5_updatable_hub_amenity_id", 1509]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3525]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.591021"], ["id", 3525]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.598699"], ["updated_at", "2016-12-09 21:05:50.598699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-09 21:05:50.600565"], ["updated_at", "2016-12-09 21:05:50.600565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3526], ["g5_updatable_hub_amenity_id", 1510]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.604885"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3526]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3526]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.616343"], ["updated_at", "2016-12-09 21:05:50.616343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.618327"], ["id", 1511]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3526], ["g5_updatable_hub_amenity_id", 1511]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.622608"], ["updated_at", "2016-12-09 21:05:50.622608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.624655"], ["id", 1512]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3526], ["g5_updatable_hub_amenity_id", 1512]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3526]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.634017"], ["id", 3526]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.642550"], ["updated_at", "2016-12-09 21:05:50.642550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-09 21:05:50.645763"], ["updated_at", "2016-12-09 21:05:50.645763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3527], ["g5_updatable_hub_amenity_id", 1513]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.650831"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3527]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3527]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.661064"], ["updated_at", "2016-12-09 21:05:50.661064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.663044"], ["id", 1514]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3527], ["g5_updatable_hub_amenity_id", 1514]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.667542"], ["updated_at", "2016-12-09 21:05:50.667542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.669365"], ["id", 1515]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3527], ["g5_updatable_hub_amenity_id", 1515]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (2.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3527]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.677963"], ["id", 3527]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:05:50.681400"], ["updated_at", "2016-12-09 21:05:50.681400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.682958"], ["updated_at", "2016-12-09 21:05:50.682958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1481]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3528]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.686163"], ["updated_at", "2016-12-09 21:05:50.686163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-09 21:05:50.687838"], ["updated_at", "2016-12-09 21:05:50.687838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3529], ["g5_updatable_hub_amenity_id", 1516]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.691499"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3529]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3529]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.698129"], ["updated_at", "2016-12-09 21:05:50.698129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.699297"], ["id", 1517]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3529], ["g5_updatable_hub_amenity_id", 1517]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.702275"], ["updated_at", "2016-12-09 21:05:50.702275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.703437"], ["id", 1518]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3529], ["g5_updatable_hub_amenity_id", 1518]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3529]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.707988"], ["id", 3529]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:05:50.710809"], ["updated_at", "2016-12-09 21:05:50.710809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.712441"], ["updated_at", "2016-12-09 21:05:50.712441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1482]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3530]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:05:50.715078"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:05:50.717294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.726872"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3531]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3531]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.734071"], ["updated_at", "2016-12-09 21:05:50.734071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.735265"], ["id", 1519]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3531], ["g5_updatable_hub_amenity_id", 1519]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.738045"], ["updated_at", "2016-12-09 21:05:50.738045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.739143"], ["id", 1520]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3531], ["g5_updatable_hub_amenity_id", 1520]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3531]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.743126"], ["id", 3531]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3531]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:05:50.748466"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:05:50.751201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.758672"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3532]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3532]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.765207"], ["updated_at", "2016-12-09 21:05:50.765207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.766332"], ["id", 1521]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3532], ["g5_updatable_hub_amenity_id", 1521]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.769765"], ["updated_at", "2016-12-09 21:05:50.769765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.770945"], ["id", 1522]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3532], ["g5_updatable_hub_amenity_id", 1522]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3532]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.774806"], ["id", 3532]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:05:50.777646"], ["updated_at", "2016-12-09 21:05:50.777646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.779359"], ["updated_at", "2016-12-09 21:05:50.779359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1483]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3533]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:05:50.801763"], ["updated_at", "2016-12-09 21:05:50.801763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.803553"], ["updated_at", "2016-12-09 21:05:50.803553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.805093"], ["updated_at", "2016-12-09 21:05:50.805093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:05:50.806538"], ["updated_at", "2016-12-09 21:05:50.806538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.807952"], ["updated_at", "2016-12-09 21:05:50.807952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:05:50.815002"], ["updated_at", "2016-12-09 21:05:50.815002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.816719"], ["updated_at", "2016-12-09 21:05:50.816719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.818566"], ["updated_at", "2016-12-09 21:05:50.818566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:05:50.819966"], ["updated_at", "2016-12-09 21:05:50.819966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.821359"], ["updated_at", "2016-12-09 21:05:50.821359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:05:50.831434"], ["updated_at", "2016-12-09 21:05:50.831434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:05:50.833007"], ["updated_at", "2016-12-09 21:05:50.833007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:05:50.839176"], ["updated_at", "2016-12-09 21:05:50.839176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1489]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:05:50.851112"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:05:50.851621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:05:50.855642"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:05:50.856019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:05:50.859280"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:05:50.859661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:05:50.862752"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:05:50.863219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:05:50.865757"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:05:50.866172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:05:50.869700"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:05:50.870094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:05:50.873255"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:05:50.873665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:50.877064"], ["updated_at", "2016-12-09 21:05:50.877064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:05:50.878449"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1497]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:50.881601"], ["updated_at", "2016-12-09 21:05:50.881601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:05:50.882960"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1498]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:50.886878"], ["updated_at", "2016-12-09 21:05:50.886878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:05:50.888216"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1499]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:50.892544"], ["updated_at", "2016-12-09 21:05:50.892544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:05:50.894173"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1500]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:05:50.898243"], ["updated_at", "2016-12-09 21:05:50.898243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:05:50.900060"], ["id", 1501]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1501]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:05:50.906963"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:05:50.908533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:50.911361"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.913312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3541]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3541]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:05:50.928282"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.930570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3542]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3542]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:05:50.938340"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.940601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3543]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:50.945297"], ["updated_at", "2016-12-09 21:05:50.945297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:50.946447"], ["id", 1523]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3543], ["g5_updatable_hub_amenity_id", 1523]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:50.950691"], ["updated_at", "2016-12-09 21:05:50.950691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:50.952314"], ["id", 1524]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3543], ["g5_updatable_hub_amenity_id", 1524]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3543]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.957175"], ["id", 3543]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:05:50.960859"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.962842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3544]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3544], ["g5_updatable_hub_amenity_id", 1523]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3544], ["g5_updatable_hub_amenity_id", 1524]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3544]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:50.972164"], ["id", 3544]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:05:50.975734"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:50.978075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3545]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3545]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:05:51.015172"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:05:51.016362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:51.019590"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.021714"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3546]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3546]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:05:51.033052"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.035211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3547]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3547]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:05:51.043890"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.045741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3548]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:51.050189"], ["updated_at", "2016-12-09 21:05:51.050189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:51.051506"], ["id", 1525]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3548], ["g5_updatable_hub_amenity_id", 1525]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:51.054762"], ["updated_at", "2016-12-09 21:05:51.054762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:51.055862"], ["id", 1526]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3548], ["g5_updatable_hub_amenity_id", 1526]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3548]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:51.060242"], ["id", 3548]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:05:51.063613"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.065691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3549]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3549], ["g5_updatable_hub_amenity_id", 1525]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3549], ["g5_updatable_hub_amenity_id", 1526]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3549]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:51.075904"], ["id", 3549]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:05:51.079137"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.081114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3550]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3550]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:05:51.099447"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:05:51.100588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:51.103163"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.105240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3551]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3551]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:05:51.113192"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.115114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3552]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3552]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:05:51.122063"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.124233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3553]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:51.133417"], ["updated_at", "2016-12-09 21:05:51.133417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:51.134781"], ["id", 1527]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3553], ["g5_updatable_hub_amenity_id", 1527]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:51.137833"], ["updated_at", "2016-12-09 21:05:51.137833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:51.139018"], ["id", 1528]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3553], ["g5_updatable_hub_amenity_id", 1528]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3553]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:51.142861"], ["id", 3553]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:05:51.145574"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.147414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3554]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3554], ["g5_updatable_hub_amenity_id", 1527]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3554], ["g5_updatable_hub_amenity_id", 1528]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3554]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:51.156950"], ["id", 3554]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:05:51.160069"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.162353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3555]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3555]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3553]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:05:51.175907"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:05:51.176985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:51.179269"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.180985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3556]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3556]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:05:51.188723"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.193180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3557]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3557]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:05:51.199699"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.201752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3558]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:51.205248"], ["updated_at", "2016-12-09 21:05:51.205248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:51.206518"], ["id", 1529]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3558], ["g5_updatable_hub_amenity_id", 1529]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:51.209656"], ["updated_at", "2016-12-09 21:05:51.209656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:51.211192"], ["id", 1530]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3558], ["g5_updatable_hub_amenity_id", 1530]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3558]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:51.215441"], ["id", 3558]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:05:51.218454"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.220360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3559]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3559], ["g5_updatable_hub_amenity_id", 1529]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3559], ["g5_updatable_hub_amenity_id", 1530]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3559]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:51.228095"], ["id", 3559]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:05:51.230471"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.232223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3560]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3560]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:05:51.243282"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:05:51.244369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:51.246556"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.248214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3561]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3561]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:05:51.254423"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.256096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3562]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3562]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:05:51.263135"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.264870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3563]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:51.268891"], ["updated_at", "2016-12-09 21:05:51.268891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:51.269877"], ["id", 1531]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3563], ["g5_updatable_hub_amenity_id", 1531]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:51.272385"], ["updated_at", "2016-12-09 21:05:51.272385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:51.273398"], ["id", 1532]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3563], ["g5_updatable_hub_amenity_id", 1532]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3563]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:51.277118"], ["id", 3563]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:05:51.279614"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.281344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3564]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3564], ["g5_updatable_hub_amenity_id", 1531]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3564], ["g5_updatable_hub_amenity_id", 1532]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3564]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:51.289465"], ["id", 3564]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:05:51.296705"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.298436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3565]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3565]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:05:51.316832"], ["id", 1506]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3565]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3565]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3564]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1708]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1709]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3564]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3563]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1706]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1707]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3563]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3562]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3562]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3561]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3561]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:05:51.332724"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:05:51.334009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:51.336347"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.338006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3566]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3566]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:05:51.344793"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.346475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3567]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3567]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:05:51.352613"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.354341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3568]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:51.358097"], ["updated_at", "2016-12-09 21:05:51.358097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:51.359058"], ["id", 1533]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3568], ["g5_updatable_hub_amenity_id", 1533]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:51.361483"], ["updated_at", "2016-12-09 21:05:51.361483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:51.362353"], ["id", 1534]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3568], ["g5_updatable_hub_amenity_id", 1534]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3568]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:51.365948"], ["id", 3568]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:05:51.369120"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.370860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3569]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3569], ["g5_updatable_hub_amenity_id", 1533]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3569], ["g5_updatable_hub_amenity_id", 1534]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3569]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:51.379573"], ["id", 3569]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:05:51.381873"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.383533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3570]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3570]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:05:51.393978"], ["id", 1507]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 21:05:51.399120"], ["id", 3566]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3566]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3566]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3570]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3570]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3569]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1712]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1713]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3569]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3568]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1710]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1711]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3568]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3567]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3567]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:05:51.419489"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:05:51.421366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3571]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:05:51.425771"], ["updated_at", "2016-12-09 21:05:51.425771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:05:51.426890"], ["id", 1535]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3571], ["g5_updatable_hub_amenity_id", 1535]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:05:51.429521"], ["updated_at", "2016-12-09 21:05:51.429521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:05:51.430421"], ["id", 1536]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3571], ["g5_updatable_hub_amenity_id", 1536]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3571]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:05:51.433614"], ["id", 3571]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:51.445733"], ["updated_at", "2016-12-09 21:05:51.445733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:05:51.446956"], ["updated_at", "2016-12-09 21:05:51.446956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-09 21:05:51.448822"], ["updated_at", "2016-12-09 21:05:51.448822"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-09 21:05:51.454186"], ["updated_at", "2016-12-09 21:05:51.454186"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-09 21:05:51.457332"], ["updated_at", "2016-12-09 21:05:51.457332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3572], ["g5_updatable_hub_amenity_id", 1537]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3572], ["g5_updatable_hub_amenity_id", 1538]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.8ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:05:51.468681"], ["updated_at", "2016-12-09 21:05:51.468681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:05:51.470055"], ["updated_at", "2016-12-09 21:05:51.470055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-09 21:05:51.471419"], ["updated_at", "2016-12-09 21:05:51.471419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-09 21:05:51.472579"], ["updated_at", "2016-12-09 21:05:51.472579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-09 21:05:51.473994"], ["updated_at", "2016-12-09 21:05:51.473994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3573], ["g5_updatable_hub_amenity_id", 1540]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3573], ["g5_updatable_hub_amenity_id", 1541]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:06.479971"], ["updated_at", "2016-12-09 21:07:06.479971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:06.491346"], ["updated_at", "2016-12-09 21:07:06.491346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:06.493746"], ["updated_at", "2016-12-09 21:07:06.493746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:06.495338"], ["updated_at", "2016-12-09 21:07:06.495338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:06.497325"], ["updated_at", "2016-12-09 21:07:06.497325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:06.511034"], ["updated_at", "2016-12-09 21:07:06.511034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:06.512594"], ["updated_at", "2016-12-09 21:07:06.512594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:06.513972"], ["updated_at", "2016-12-09 21:07:06.513972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:06.515104"], ["updated_at", "2016-12-09 21:07:06.515104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:06.516351"], ["updated_at", "2016-12-09 21:07:06.516351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.07ms) Completed 200 OK in 11ms (Views: 3.3ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 21:07:06.533160"], ["updated_at", "2016-12-09 21:07:06.533160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1514]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:07:06.552316"], ["updated_at", "2016-12-09 21:07:06.552316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:06.554122"], ["updated_at", "2016-12-09 21:07:06.554122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:06.597054"], ["updated_at", "2016-12-09 21:07:06.597054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.34ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:06.605577"], ["updated_at", "2016-12-09 21:07:06.605577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.32ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:06.619662"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:06.621182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.623706"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.626285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3583]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3583]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:06.641342"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.643399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3584]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3584]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:06.650531"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.652558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3585]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.659285"], ["updated_at", "2016-12-09 21:07:06.659285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.661598"], ["id", 1543]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3585], ["g5_updatable_hub_amenity_id", 1543]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.666423"], ["updated_at", "2016-12-09 21:07:06.666423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.667809"], ["id", 1544]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3585], ["g5_updatable_hub_amenity_id", 1544]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3585]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.671991"], ["id", 3585]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:06.675166"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.677132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3586]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3586], ["g5_updatable_hub_amenity_id", 1543]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3586], ["g5_updatable_hub_amenity_id", 1544]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3586]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.685541"], ["id", 3586]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:06.688159"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.690217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3587]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3587]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:06.705559"], ["updated_at", "2016-12-09 21:07:06.705559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:07:06.708118"], ["id", 1517]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1517]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:06.719251"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:06.719712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:06.723517"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:06.723940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:06.726599"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:06.726912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:06.729932"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:06.730279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:06.733545"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:06.733997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:06.736739"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:06.737110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:06.739714"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:06.740043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:06.742708"], ["updated_at", "2016-12-09 21:07:06.742708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:06.744023"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1525]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:06.747380"], ["updated_at", "2016-12-09 21:07:06.747380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:06.748680"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1526]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:06.751932"], ["updated_at", "2016-12-09 21:07:06.751932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:06.753120"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1527]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:06.756289"], ["updated_at", "2016-12-09 21:07:06.756289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:06.757358"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1528]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.761518"], ["updated_at", "2016-12-09 21:07:06.761518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.763066"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.764861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3589]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.769016"], ["updated_at", "2016-12-09 21:07:06.769016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.770048"], ["id", 1545]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3589], ["g5_updatable_hub_amenity_id", 1545]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.772670"], ["updated_at", "2016-12-09 21:07:06.772670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.773707"], ["id", 1546]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3589], ["g5_updatable_hub_amenity_id", 1546]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3589]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.777292"], ["id", 3589]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3588]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3588]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.785255"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.787607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3590]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.791912"], ["updated_at", "2016-12-09 21:07:06.791912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.793051"], ["id", 1547]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3590], ["g5_updatable_hub_amenity_id", 1547]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.795850"], ["updated_at", "2016-12-09 21:07:06.795850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.796952"], ["id", 1548]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3590], ["g5_updatable_hub_amenity_id", 1548]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3590]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.800583"], ["id", 3590]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3590]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3590]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.807156"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.808974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3591]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.813059"], ["updated_at", "2016-12-09 21:07:06.813059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.814294"], ["id", 1549]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3591], ["g5_updatable_hub_amenity_id", 1549]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.817238"], ["updated_at", "2016-12-09 21:07:06.817238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.818283"], ["id", 1550]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3591], ["g5_updatable_hub_amenity_id", 1550]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3591]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.821486"], ["id", 3591]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.827501"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.829276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3592]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.838862"], ["updated_at", "2016-12-09 21:07:06.838862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.840034"], ["id", 1551]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3592], ["g5_updatable_hub_amenity_id", 1551]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.842953"], ["updated_at", "2016-12-09 21:07:06.842953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.843946"], ["id", 1552]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3592], ["g5_updatable_hub_amenity_id", 1552]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3592]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.847413"], ["id", 3592]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.851696"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.853597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3593]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.857157"], ["updated_at", "2016-12-09 21:07:06.857157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.858088"], ["id", 1553]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3593], ["g5_updatable_hub_amenity_id", 1553]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.860506"], ["updated_at", "2016-12-09 21:07:06.860506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.861383"], ["id", 1554]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3593], ["g5_updatable_hub_amenity_id", 1554]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3593]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.864663"], ["id", 3593]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.870069"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.871906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3594]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.875534"], ["updated_at", "2016-12-09 21:07:06.875534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.876495"], ["id", 1555]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3594], ["g5_updatable_hub_amenity_id", 1555]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.879377"], ["updated_at", "2016-12-09 21:07:06.879377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.880660"], ["id", 1556]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3594], ["g5_updatable_hub_amenity_id", 1556]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3594]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.883988"], ["id", 3594]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.888870"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.890648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3595]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.894397"], ["updated_at", "2016-12-09 21:07:06.894397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.895458"], ["id", 1557]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3595], ["g5_updatable_hub_amenity_id", 1557]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.898277"], ["updated_at", "2016-12-09 21:07:06.898277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.899347"], ["id", 1558]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3595], ["g5_updatable_hub_amenity_id", 1558]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3595]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.903176"], ["id", 3595]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.908352"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.910149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3596]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.913994"], ["updated_at", "2016-12-09 21:07:06.913994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.915196"], ["id", 1559]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3596], ["g5_updatable_hub_amenity_id", 1559]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.918583"], ["updated_at", "2016-12-09 21:07:06.918583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.919571"], ["id", 1560]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3596], ["g5_updatable_hub_amenity_id", 1560]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3596]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.922891"], ["id", 3596]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:06.925179"], ["updated_at", "2016-12-09 21:07:06.925179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:06.926407"], ["updated_at", "2016-12-09 21:07:06.926407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1529]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3597]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.929636"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.931433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3598]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.935512"], ["updated_at", "2016-12-09 21:07:06.935512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.936449"], ["id", 1561]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3598], ["g5_updatable_hub_amenity_id", 1561]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.938835"], ["updated_at", "2016-12-09 21:07:06.938835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.939767"], ["id", 1562]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3598], ["g5_updatable_hub_amenity_id", 1562]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3598]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.943511"], ["id", 3598]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.954473"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.956618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3599]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.960804"], ["updated_at", "2016-12-09 21:07:06.960804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.961893"], ["id", 1563]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3599], ["g5_updatable_hub_amenity_id", 1563]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.964606"], ["updated_at", "2016-12-09 21:07:06.964606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.965558"], ["id", 1564]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3599], ["g5_updatable_hub_amenity_id", 1564]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3599]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.969649"], ["id", 3599]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.975720"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.977536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3600]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:06.981748"], ["updated_at", "2016-12-09 21:07:06.981748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:06.982739"], ["id", 1565]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3600], ["g5_updatable_hub_amenity_id", 1565]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:06.985673"], ["updated_at", "2016-12-09 21:07:06.985673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:06.986695"], ["id", 1566]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3600], ["g5_updatable_hub_amenity_id", 1566]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3600]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:06.990106"], ["id", 3600]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:06.995767"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:06.998016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3601]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.002575"], ["updated_at", "2016-12-09 21:07:07.002575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.003646"], ["id", 1567]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3601], ["g5_updatable_hub_amenity_id", 1567]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.006235"], ["updated_at", "2016-12-09 21:07:07.006235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.007175"], ["id", 1568]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3601], ["g5_updatable_hub_amenity_id", 1568]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3601]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.010533"], ["id", 3601]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.016106"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.018266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3602]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.022361"], ["updated_at", "2016-12-09 21:07:07.022361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (8.5ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.023368"], ["id", 1569]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3602], ["g5_updatable_hub_amenity_id", 1569]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.035555"], ["updated_at", "2016-12-09 21:07:07.035555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.036596"], ["id", 1570]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3602], ["g5_updatable_hub_amenity_id", 1570]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3602]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.040364"], ["id", 3602]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:07:07.045046"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:07:07.047824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.056733"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3603]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3603]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.065709"], ["updated_at", "2016-12-09 21:07:07.065709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.067269"], ["id", 1571]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3603], ["g5_updatable_hub_amenity_id", 1571]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.071251"], ["updated_at", "2016-12-09 21:07:07.071251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.072617"], ["id", 1572]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3603], ["g5_updatable_hub_amenity_id", 1572]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3603]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.077176"], ["id", 3603]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3603]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:07:07.083362"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:07:07.086851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.096244"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3604]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3604]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.104955"], ["updated_at", "2016-12-09 21:07:07.104955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.106069"], ["id", 1573]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3604], ["g5_updatable_hub_amenity_id", 1573]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.108847"], ["updated_at", "2016-12-09 21:07:07.108847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.110244"], ["id", 1574]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3604], ["g5_updatable_hub_amenity_id", 1574]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3604]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.114302"], ["id", 3604]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:07.117350"], ["updated_at", "2016-12-09 21:07:07.117350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.119066"], ["updated_at", "2016-12-09 21:07:07.119066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1530]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3605]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.122326"], ["updated_at", "2016-12-09 21:07:07.122326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.124261"], ["updated_at", "2016-12-09 21:07:07.124261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3606], ["g5_updatable_hub_amenity_id", 1575]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.127317"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3606]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3606]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.136079"], ["id", 1575]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3606], ["g5_updatable_hub_amenity_id", 1575]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.138758"], ["updated_at", "2016-12-09 21:07:07.138758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.139729"], ["id", 1576]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3606], ["g5_updatable_hub_amenity_id", 1576]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3606]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.144729"], ["id", 3606]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.150420"], ["updated_at", "2016-12-09 21:07:07.150420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.152438"], ["updated_at", "2016-12-09 21:07:07.152438"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3607], ["g5_updatable_hub_amenity_id", 1577]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.155343"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3607]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3607]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.163825"], ["updated_at", "2016-12-09 21:07:07.163825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.165440"], ["id", 1578]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3607], ["g5_updatable_hub_amenity_id", 1578]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.169470"], ["updated_at", "2016-12-09 21:07:07.169470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.170783"], ["id", 1579]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3607], ["g5_updatable_hub_amenity_id", 1579]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3607]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.175614"], ["id", 3607]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3607]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.182218"], ["updated_at", "2016-12-09 21:07:07.182218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.183889"], ["updated_at", "2016-12-09 21:07:07.183889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3608], ["g5_updatable_hub_amenity_id", 1580]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.187083"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3608]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3608]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.208491"], ["updated_at", "2016-12-09 21:07:07.208491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.209461"], ["id", 1581]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3608], ["g5_updatable_hub_amenity_id", 1581]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.212069"], ["updated_at", "2016-12-09 21:07:07.212069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.213194"], ["id", 1582]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3608], ["g5_updatable_hub_amenity_id", 1582]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3608]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.216504"], ["id", 3608]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.221350"], ["updated_at", "2016-12-09 21:07:07.221350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.222742"], ["updated_at", "2016-12-09 21:07:07.222742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3609], ["g5_updatable_hub_amenity_id", 1583]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.225300"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3609]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3609]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.231310"], ["updated_at", "2016-12-09 21:07:07.231310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.232275"], ["id", 1584]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3609], ["g5_updatable_hub_amenity_id", 1584]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.235016"], ["updated_at", "2016-12-09 21:07:07.235016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.235982"], ["id", 1585]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3609], ["g5_updatable_hub_amenity_id", 1585]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3609]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.239257"], ["id", 3609]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.244046"], ["updated_at", "2016-12-09 21:07:07.244046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.245600"], ["updated_at", "2016-12-09 21:07:07.245600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3610], ["g5_updatable_hub_amenity_id", 1586]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.248604"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3610]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3610]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.254798"], ["updated_at", "2016-12-09 21:07:07.254798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.255727"], ["id", 1587]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3610], ["g5_updatable_hub_amenity_id", 1587]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.258336"], ["updated_at", "2016-12-09 21:07:07.258336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.259890"], ["id", 1588]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3610], ["g5_updatable_hub_amenity_id", 1588]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3610]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.263429"], ["id", 3610]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:07:07.266113"], ["updated_at", "2016-12-09 21:07:07.266113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.267650"], ["updated_at", "2016-12-09 21:07:07.267650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1531]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3611]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.270723"], ["updated_at", "2016-12-09 21:07:07.270723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.272116"], ["updated_at", "2016-12-09 21:07:07.272116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3612], ["g5_updatable_hub_amenity_id", 1589]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.274659"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3612]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3612]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.280433"], ["updated_at", "2016-12-09 21:07:07.280433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.281397"], ["id", 1590]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3612], ["g5_updatable_hub_amenity_id", 1590]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.284053"], ["updated_at", "2016-12-09 21:07:07.284053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.284963"], ["id", 1591]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3612], ["g5_updatable_hub_amenity_id", 1591]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3612]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.288271"], ["id", 3612]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.293615"], ["updated_at", "2016-12-09 21:07:07.293615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.295395"], ["updated_at", "2016-12-09 21:07:07.295395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3613], ["g5_updatable_hub_amenity_id", 1592]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.298500"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3613]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3613]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.305127"], ["updated_at", "2016-12-09 21:07:07.305127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.306261"], ["id", 1593]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3613], ["g5_updatable_hub_amenity_id", 1593]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.309248"], ["id", 1592]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3613], ["g5_updatable_hub_amenity_id", 1592]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3613]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.313085"], ["id", 3613]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.317788"], ["updated_at", "2016-12-09 21:07:07.317788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.319839"], ["updated_at", "2016-12-09 21:07:07.319839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3614], ["g5_updatable_hub_amenity_id", 1594]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.323355"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3614]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3614]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.330933"], ["updated_at", "2016-12-09 21:07:07.330933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.332100"], ["id", 1595]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3614], ["g5_updatable_hub_amenity_id", 1595]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.335248"], ["updated_at", "2016-12-09 21:07:07.335248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.336449"], ["id", 1596]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3614], ["g5_updatable_hub_amenity_id", 1596]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3614]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.340192"], ["id", 3614]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.345884"], ["updated_at", "2016-12-09 21:07:07.345884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.347929"], ["updated_at", "2016-12-09 21:07:07.347929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3615], ["g5_updatable_hub_amenity_id", 1597]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.350916"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3615]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3615]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.357333"], ["updated_at", "2016-12-09 21:07:07.357333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.358305"], ["id", 1598]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3615], ["g5_updatable_hub_amenity_id", 1598]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.360815"], ["updated_at", "2016-12-09 21:07:07.360815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.361866"], ["id", 1599]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3615], ["g5_updatable_hub_amenity_id", 1599]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3615]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.365182"], ["id", 3615]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:07.367742"], ["updated_at", "2016-12-09 21:07:07.367742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.369138"], ["updated_at", "2016-12-09 21:07:07.369138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1532]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3616]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.372146"], ["updated_at", "2016-12-09 21:07:07.372146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.373613"], ["updated_at", "2016-12-09 21:07:07.373613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3617], ["g5_updatable_hub_amenity_id", 1600]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.376237"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3617]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3617]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.382059"], ["updated_at", "2016-12-09 21:07:07.382059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.382998"], ["id", 1601]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3617], ["g5_updatable_hub_amenity_id", 1601]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.385743"], ["updated_at", "2016-12-09 21:07:07.385743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.386636"], ["id", 1602]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3617], ["g5_updatable_hub_amenity_id", 1602]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3617]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.389727"], ["id", 3617]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.397023"], ["updated_at", "2016-12-09 21:07:07.397023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 21:07:07.402627"], ["updated_at", "2016-12-09 21:07:07.402627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.406531"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.408621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3620]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.416682"], ["updated_at", "2016-12-09 21:07:07.416682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.417866"], ["id", 1603]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3620], ["g5_updatable_hub_amenity_id", 1603]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.420552"], ["updated_at", "2016-12-09 21:07:07.420552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.421450"], ["id", 1604]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3620], ["g5_updatable_hub_amenity_id", 1604]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3620]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.424643"], ["id", 3620]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3618]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3618]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.431467"], ["updated_at", "2016-12-09 21:07:07.431467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.433288"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3621]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3621]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.439648"], ["updated_at", "2016-12-09 21:07:07.439648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.440811"], ["id", 1605]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3621], ["g5_updatable_hub_amenity_id", 1605]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.443650"], ["updated_at", "2016-12-09 21:07:07.443650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.444576"], ["id", 1606]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3621], ["g5_updatable_hub_amenity_id", 1606]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3621]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.448034"], ["id", 3621]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.468861"], ["updated_at", "2016-12-09 21:07:07.468861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.470796"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3622]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3622]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.476634"], ["updated_at", "2016-12-09 21:07:07.476634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.477564"], ["id", 1607]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3622], ["g5_updatable_hub_amenity_id", 1607]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.480054"], ["updated_at", "2016-12-09 21:07:07.480054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.481026"], ["id", 1608]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3622], ["g5_updatable_hub_amenity_id", 1608]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3622]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.484370"], ["id", 3622]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.488101"], ["updated_at", "2016-12-09 21:07:07.488101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.489740"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3623]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3623]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.495654"], ["updated_at", "2016-12-09 21:07:07.495654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.496682"], ["id", 1609]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3623], ["g5_updatable_hub_amenity_id", 1609]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.499421"], ["updated_at", "2016-12-09 21:07:07.499421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.500327"], ["id", 1610]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3623], ["g5_updatable_hub_amenity_id", 1610]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3623]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.504195"], ["id", 3623]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.508937"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.510827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3624]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.514477"], ["updated_at", "2016-12-09 21:07:07.514477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.515416"], ["id", 1611]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3624], ["g5_updatable_hub_amenity_id", 1611]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.518047"], ["updated_at", "2016-12-09 21:07:07.518047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.519132"], ["id", 1612]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3624], ["g5_updatable_hub_amenity_id", 1612]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3624]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.522443"], ["id", 3624]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.529320"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.531176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3625]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.535088"], ["updated_at", "2016-12-09 21:07:07.535088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.536196"], ["id", 1613]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3625], ["g5_updatable_hub_amenity_id", 1613]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.538600"], ["updated_at", "2016-12-09 21:07:07.538600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.539486"], ["id", 1614]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3625], ["g5_updatable_hub_amenity_id", 1614]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3625]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.542813"], ["id", 3625]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.561255"], ["updated_at", "2016-12-09 21:07:07.561255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:07:07.562622"], ["updated_at", "2016-12-09 21:07:07.562622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.563824"], ["updated_at", "2016-12-09 21:07:07.563824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.564845"], ["updated_at", "2016-12-09 21:07:07.564845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.565821"], ["updated_at", "2016-12-09 21:07:07.565821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3626], ["g5_updatable_hub_amenity_id", 1615]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3626], ["g5_updatable_hub_amenity_id", 1616]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.574088"], ["updated_at", "2016-12-09 21:07:07.574088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:07:07.575197"], ["updated_at", "2016-12-09 21:07:07.575197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.576365"], ["updated_at", "2016-12-09 21:07:07.576365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.577249"], ["updated_at", "2016-12-09 21:07:07.577249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.578180"], ["updated_at", "2016-12-09 21:07:07.578180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3627], ["g5_updatable_hub_amenity_id", 1618]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3627], ["g5_updatable_hub_amenity_id", 1619]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.5ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.585565"], ["updated_at", "2016-12-09 21:07:07.585565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.587481"], ["updated_at", "2016-12-09 21:07:07.587481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.589199"], ["updated_at", "2016-12-09 21:07:07.589199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:07.591019"], ["updated_at", "2016-12-09 21:07:07.591019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.592359"], ["updated_at", "2016-12-09 21:07:07.592359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:07.595475"], ["updated_at", "2016-12-09 21:07:07.595475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.596786"], ["updated_at", "2016-12-09 21:07:07.596786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.599081"], ["updated_at", "2016-12-09 21:07:07.599081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.601530"], ["updated_at", "2016-12-09 21:07:07.601530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.602764"], ["updated_at", "2016-12-09 21:07:07.602764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.605936"], ["updated_at", "2016-12-09 21:07:07.605936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.607847"], ["updated_at", "2016-12-09 21:07:07.607847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.608970"], ["updated_at", "2016-12-09 21:07:07.608970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.611761"], ["updated_at", "2016-12-09 21:07:07.611761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.614002"], ["updated_at", "2016-12-09 21:07:07.614002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.615403"], ["updated_at", "2016-12-09 21:07:07.615403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.618694"], ["updated_at", "2016-12-09 21:07:07.618694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.620800"], ["updated_at", "2016-12-09 21:07:07.620800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.621944"], ["updated_at", "2016-12-09 21:07:07.621944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.624974"], ["updated_at", "2016-12-09 21:07:07.624974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.626994"], ["updated_at", "2016-12-09 21:07:07.626994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.628113"], ["updated_at", "2016-12-09 21:07:07.628113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.631568"], ["updated_at", "2016-12-09 21:07:07.631568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.633798"], ["updated_at", "2016-12-09 21:07:07.633798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.634980"], ["updated_at", "2016-12-09 21:07:07.634980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.638138"], ["updated_at", "2016-12-09 21:07:07.638138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.640378"], ["updated_at", "2016-12-09 21:07:07.640378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.641878"], ["updated_at", "2016-12-09 21:07:07.641878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.644917"], ["updated_at", "2016-12-09 21:07:07.644917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.647131"], ["updated_at", "2016-12-09 21:07:07.647131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.648501"], ["updated_at", "2016-12-09 21:07:07.648501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.652195"], ["updated_at", "2016-12-09 21:07:07.652195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.658800"], ["updated_at", "2016-12-09 21:07:07.658800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.660107"], ["updated_at", "2016-12-09 21:07:07.660107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.663587"], ["updated_at", "2016-12-09 21:07:07.663587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.665907"], ["updated_at", "2016-12-09 21:07:07.665907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.667093"], ["updated_at", "2016-12-09 21:07:07.667093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.8ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.673740"], ["updated_at", "2016-12-09 21:07:07.673740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.676848"], ["updated_at", "2016-12-09 21:07:07.676848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.678463"], ["updated_at", "2016-12-09 21:07:07.678463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.681890"], ["updated_at", "2016-12-09 21:07:07.681890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.684984"], ["updated_at", "2016-12-09 21:07:07.684984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.686949"], ["updated_at", "2016-12-09 21:07:07.686949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:07.690409"], ["updated_at", "2016-12-09 21:07:07.690409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:07.692934"], ["updated_at", "2016-12-09 21:07:07.692934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:07.694452"], ["updated_at", "2016-12-09 21:07:07.694452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:07:07.696906"], ["updated_at", "2016-12-09 21:07:07.696906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.699560"], ["updated_at", "2016-12-09 21:07:07.699560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.701356"], ["updated_at", "2016-12-09 21:07:07.701356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.702569"], ["updated_at", "2016-12-09 21:07:07.702569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3660], ["g5_updatable_hub_amenity_id", 1621]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3660], ["g5_updatable_hub_amenity_id", 1622]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3660]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-17|amenity-18|"], ["updated_at", "2016-12-09 21:07:07.707209"], ["id", 3660]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3660]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3660]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.710776"], ["updated_at", "2016-12-09 21:07:07.710776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.712035"], ["updated_at", "2016-12-09 21:07:07.712035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-09 21:07:07.712934"], ["updated_at", "2016-12-09 21:07:07.712934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3661], ["g5_updatable_hub_amenity_id", 1623]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3661], ["g5_updatable_hub_amenity_id", 1624]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3661]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-19|amenity-20|"], ["updated_at", "2016-12-09 21:07:07.717034"], ["id", 3661]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3661]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3661]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3661]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3661]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3661]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.731656"], ["updated_at", "2016-12-09 21:07:07.731656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.733354"], ["updated_at", "2016-12-09 21:07:07.733354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.736348"], ["updated_at", "2016-12-09 21:07:07.736348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.737801"], ["updated_at", "2016-12-09 21:07:07.737801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.741450"], ["updated_at", "2016-12-09 21:07:07.741450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.742832"], ["updated_at", "2016-12-09 21:07:07.742832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.745680"], ["updated_at", "2016-12-09 21:07:07.745680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.747276"], ["updated_at", "2016-12-09 21:07:07.747276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.750771"], ["updated_at", "2016-12-09 21:07:07.750771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.752391"], ["updated_at", "2016-12-09 21:07:07.752391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:07.777671"], ["updated_at", "2016-12-09 21:07:07.777671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3672]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:07.809580"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:07.810658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.813112"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.815095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3673]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3673]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:07.822319"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.824117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3674]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3674]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:07.830626"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.832547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3675]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.837172"], ["updated_at", "2016-12-09 21:07:07.837172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.838376"], ["id", 1625]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3675], ["g5_updatable_hub_amenity_id", 1625]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.841436"], ["updated_at", "2016-12-09 21:07:07.841436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.842556"], ["id", 1626]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3675], ["g5_updatable_hub_amenity_id", 1626]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3675]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.846368"], ["id", 3675]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:07.849319"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.851447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3676]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3676], ["g5_updatable_hub_amenity_id", 1625]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3676], ["g5_updatable_hub_amenity_id", 1626]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3676]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.862457"], ["id", 3676]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:07.868047"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.870101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3677]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3677]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:07.883092"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:07.884773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.888983"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.891069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3678]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3678]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:07.899011"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.901263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3679]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3679]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:07.914022"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.916012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3680]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.921043"], ["updated_at", "2016-12-09 21:07:07.921043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.922278"], ["id", 1627]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3680], ["g5_updatable_hub_amenity_id", 1627]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:07.925350"], ["updated_at", "2016-12-09 21:07:07.925350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:07.926484"], ["id", 1628]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3680], ["g5_updatable_hub_amenity_id", 1628]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3680]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.930403"], ["id", 3680]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:07.933670"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.935980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3681]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3681], ["g5_updatable_hub_amenity_id", 1627]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3681], ["g5_updatable_hub_amenity_id", 1628]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3681]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:07.945921"], ["id", 3681]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:07.948914"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.950937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3682]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3682]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3680]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:07.965054"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:07.966247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:07.969304"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.971385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3683]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3683]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:07.978796"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.980827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3684]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3684]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:07.991816"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:07.994074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3685]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:07.998510"], ["updated_at", "2016-12-09 21:07:07.998510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:07.999666"], ["id", 1629]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3685], ["g5_updatable_hub_amenity_id", 1629]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:08.002819"], ["updated_at", "2016-12-09 21:07:08.002819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:08.003897"], ["id", 1630]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3685], ["g5_updatable_hub_amenity_id", 1630]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3685]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:08.007144"], ["id", 3685]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:08.009575"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.011318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3686]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3686], ["g5_updatable_hub_amenity_id", 1629]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3686], ["g5_updatable_hub_amenity_id", 1630]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3686]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:08.019283"], ["id", 3686]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:08.021781"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.023440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3687]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3687]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:08.037431"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:08.038450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:08.040921"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.043450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3688]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3688]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:08.050986"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.052935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3689]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3689]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:08.058973"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.060680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3690]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:08.064502"], ["updated_at", "2016-12-09 21:07:08.064502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:08.065490"], ["id", 1631]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3690], ["g5_updatable_hub_amenity_id", 1631]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:08.068269"], ["updated_at", "2016-12-09 21:07:08.068269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:08.069242"], ["id", 1632]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3690], ["g5_updatable_hub_amenity_id", 1632]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3690]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:08.072554"], ["id", 3690]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:08.075153"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.076976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3691]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3691], ["g5_updatable_hub_amenity_id", 1631]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3691], ["g5_updatable_hub_amenity_id", 1632]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3691]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:08.089197"], ["id", 3691]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:08.091631"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.093506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3692]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3692]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:07:08.112455"], ["id", 1553]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 21:07:08.117908"], ["id", 3688]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3688]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3688]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3692]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3692]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3691]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1818]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1819]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3691]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3690]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1816]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1817]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3690]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3689]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3689]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:08.136992"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:08.137989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:08.140317"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.142043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3693]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3693]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:08.148498"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.150241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3694]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3694]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:08.156497"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.158223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3695]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:08.161655"], ["updated_at", "2016-12-09 21:07:08.161655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:08.162627"], ["id", 1633]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3695], ["g5_updatable_hub_amenity_id", 1633]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:08.165102"], ["updated_at", "2016-12-09 21:07:08.165102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:08.166038"], ["id", 1634]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3695], ["g5_updatable_hub_amenity_id", 1634]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3695]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:08.169539"], ["id", 3695]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:08.171931"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.173625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3696]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3696], ["g5_updatable_hub_amenity_id", 1633]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3696], ["g5_updatable_hub_amenity_id", 1634]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3696]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:08.181002"], ["id", 3696]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:08.183474"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.185325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3697]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3697]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:07:08.195704"], ["id", 1554]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3697]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3697]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3696]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1822]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1823]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3696]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3695]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1820]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1821]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3695]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3694]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3694]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3693]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3693]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:08.212613"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:08.214601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3698]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:08.218602"], ["updated_at", "2016-12-09 21:07:08.218602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:08.219728"], ["id", 1635]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3698], ["g5_updatable_hub_amenity_id", 1635]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:08.222379"], ["updated_at", "2016-12-09 21:07:08.222379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:08.223530"], ["id", 1636]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3698], ["g5_updatable_hub_amenity_id", 1636]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3698]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:08.227749"], ["id", 3698]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.597373"], ["updated_at", "2016-12-09 21:07:40.597373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.601499"], ["updated_at", "2016-12-09 21:07:40.601499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:07:40.611628"], ["updated_at", "2016-12-09 21:07:40.611628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.613288"], ["updated_at", "2016-12-09 21:07:40.613288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.628860"], ["updated_at", "2016-12-09 21:07:40.628860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3701]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.634743"], ["updated_at", "2016-12-09 21:07:40.634743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.636463"], ["updated_at", "2016-12-09 21:07:40.636463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.640703"], ["updated_at", "2016-12-09 21:07:40.640703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.642433"], ["updated_at", "2016-12-09 21:07:40.642433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.646403"], ["updated_at", "2016-12-09 21:07:40.646403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.647936"], ["updated_at", "2016-12-09 21:07:40.647936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.650874"], ["updated_at", "2016-12-09 21:07:40.650874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.652431"], ["updated_at", "2016-12-09 21:07:40.652431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.656323"], ["updated_at", "2016-12-09 21:07:40.656323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.657948"], ["updated_at", "2016-12-09 21:07:40.657948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.685084"], ["updated_at", "2016-12-09 21:07:40.685084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.687647"], ["updated_at", "2016-12-09 21:07:40.687647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.690031"], ["updated_at", "2016-12-09 21:07:40.690031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.696411"], ["updated_at", "2016-12-09 21:07:40.696411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.699576"], ["updated_at", "2016-12-09 21:07:40.699576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.700814"], ["updated_at", "2016-12-09 21:07:40.700814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.704180"], ["updated_at", "2016-12-09 21:07:40.704180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.706610"], ["updated_at", "2016-12-09 21:07:40.706610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.707967"], ["updated_at", "2016-12-09 21:07:40.707967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.711588"], ["updated_at", "2016-12-09 21:07:40.711588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.714050"], ["updated_at", "2016-12-09 21:07:40.714050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.715554"], ["updated_at", "2016-12-09 21:07:40.715554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.719374"], ["updated_at", "2016-12-09 21:07:40.719374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.721600"], ["updated_at", "2016-12-09 21:07:40.721600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.722905"], ["updated_at", "2016-12-09 21:07:40.722905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.726503"], ["updated_at", "2016-12-09 21:07:40.726503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.728918"], ["updated_at", "2016-12-09 21:07:40.728918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.730263"], ["updated_at", "2016-12-09 21:07:40.730263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.734081"], ["updated_at", "2016-12-09 21:07:40.734081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.736630"], ["updated_at", "2016-12-09 21:07:40.736630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.738091"], ["updated_at", "2016-12-09 21:07:40.738091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.742041"], ["updated_at", "2016-12-09 21:07:40.742041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.744340"], ["updated_at", "2016-12-09 21:07:40.744340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.745771"], ["updated_at", "2016-12-09 21:07:40.745771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.748441"], ["updated_at", "2016-12-09 21:07:40.748441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.750708"], ["updated_at", "2016-12-09 21:07:40.750708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.752041"], ["updated_at", "2016-12-09 21:07:40.752041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.754579"], ["updated_at", "2016-12-09 21:07:40.754579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.756919"], ["updated_at", "2016-12-09 21:07:40.756919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.758249"], ["updated_at", "2016-12-09 21:07:40.758249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:07:40.760431"], ["updated_at", "2016-12-09 21:07:40.760431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.762950"], ["updated_at", "2016-12-09 21:07:40.762950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.765406"], ["updated_at", "2016-12-09 21:07:40.765406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.766787"], ["updated_at", "2016-12-09 21:07:40.766787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.770653"], ["updated_at", "2016-12-09 21:07:40.770653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.772841"], ["updated_at", "2016-12-09 21:07:40.772841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.774039"], ["updated_at", "2016-12-09 21:07:40.774039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.776910"], ["updated_at", "2016-12-09 21:07:40.776910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.779072"], ["updated_at", "2016-12-09 21:07:40.779072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.780333"], ["updated_at", "2016-12-09 21:07:40.780333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:07:40.783863"], ["updated_at", "2016-12-09 21:07:40.783863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:40.786144"], ["updated_at", "2016-12-09 21:07:40.786144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:07:40.787292"], ["updated_at", "2016-12-09 21:07:40.787292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.792237"], ["updated_at", "2016-12-09 21:07:40.792237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:07:40.797006"], ["updated_at", "2016-12-09 21:07:40.797006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:07:40.798499"], ["updated_at", "2016-12-09 21:07:40.798499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3742], ["g5_updatable_hub_amenity_id", 1637]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3742], ["g5_updatable_hub_amenity_id", 1638]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3742]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 21:07:40.815072"], ["id", 3742]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3742]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3742]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:40.819212"], ["updated_at", "2016-12-09 21:07:40.819212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:07:40.820468"], ["updated_at", "2016-12-09 21:07:40.820468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:07:40.821443"], ["updated_at", "2016-12-09 21:07:40.821443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3743], ["g5_updatable_hub_amenity_id", 1639]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3743], ["g5_updatable_hub_amenity_id", 1640]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3743]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 21:07:40.825824"], ["id", 3743]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3743]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3743]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3743]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3743]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3743]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:40.832145"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:40.834900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3744]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:40.846405"], ["updated_at", "2016-12-09 21:07:40.846405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:40.848648"], ["id", 1641]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3744], ["g5_updatable_hub_amenity_id", 1641]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:40.851430"], ["updated_at", "2016-12-09 21:07:40.851430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:40.852463"], ["id", 1642]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3744], ["g5_updatable_hub_amenity_id", 1642]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3744]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:40.856037"], ["id", 3744]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:40.872226"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:40.874156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3745]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:40.878184"], ["updated_at", "2016-12-09 21:07:40.878184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:40.879190"], ["id", 1643]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3745], ["g5_updatable_hub_amenity_id", 1643]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:40.882023"], ["updated_at", "2016-12-09 21:07:40.882023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:40.883121"], ["id", 1644]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3745], ["g5_updatable_hub_amenity_id", 1644]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3745]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:40.886719"], ["id", 3745]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:40.892478"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:40.894393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3746]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:40.898654"], ["updated_at", "2016-12-09 21:07:40.898654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:40.899711"], ["id", 1645]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3746], ["g5_updatable_hub_amenity_id", 1645]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:40.902279"], ["updated_at", "2016-12-09 21:07:40.902279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:40.903255"], ["id", 1646]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3746], ["g5_updatable_hub_amenity_id", 1646]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3746]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:40.906539"], ["id", 3746]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:40.912786"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:40.914940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3747]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:40.918845"], ["updated_at", "2016-12-09 21:07:40.918845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:40.919824"], ["id", 1647]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3747], ["g5_updatable_hub_amenity_id", 1647]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:40.922361"], ["updated_at", "2016-12-09 21:07:40.922361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:40.923291"], ["id", 1648]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3747], ["g5_updatable_hub_amenity_id", 1648]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3747]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:40.926470"], ["id", 3747]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:40.930475"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:40.932373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3748]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:40.936461"], ["updated_at", "2016-12-09 21:07:40.936461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:40.937419"], ["id", 1649]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3748], ["g5_updatable_hub_amenity_id", 1649]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:40.939992"], ["updated_at", "2016-12-09 21:07:40.939992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:40.941053"], ["id", 1650]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3748], ["g5_updatable_hub_amenity_id", 1650]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3748]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:40.944244"], ["id", 3748]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3748]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3748]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:40.950746"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:40.952625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3749]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:40.956500"], ["updated_at", "2016-12-09 21:07:40.956500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:40.957481"], ["id", 1651]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3749], ["g5_updatable_hub_amenity_id", 1651]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:40.959897"], ["updated_at", "2016-12-09 21:07:40.959897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:40.960826"], ["id", 1652]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3749], ["g5_updatable_hub_amenity_id", 1652]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3749]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:40.963941"], ["id", 3749]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:40.968952"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:40.970715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3750]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:40.974373"], ["updated_at", "2016-12-09 21:07:40.974373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:40.975355"], ["id", 1653]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3750], ["g5_updatable_hub_amenity_id", 1653]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:40.977678"], ["updated_at", "2016-12-09 21:07:40.977678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:40.978649"], ["id", 1654]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3750], ["g5_updatable_hub_amenity_id", 1654]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3750]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:40.982208"], ["id", 3750]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:40.988181"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:40.989936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3751]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:40.993907"], ["updated_at", "2016-12-09 21:07:40.993907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:40.994855"], ["id", 1655]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3751], ["g5_updatable_hub_amenity_id", 1655]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:40.997484"], ["updated_at", "2016-12-09 21:07:40.997484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:40.998490"], ["id", 1656]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3751], ["g5_updatable_hub_amenity_id", 1656]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3751]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.001608"], ["id", 3751]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.006297"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.008123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3752]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.011920"], ["updated_at", "2016-12-09 21:07:41.011920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.013061"], ["id", 1657]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3752], ["g5_updatable_hub_amenity_id", 1657]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.016081"], ["updated_at", "2016-12-09 21:07:41.016081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.017151"], ["id", 1658]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3752], ["g5_updatable_hub_amenity_id", 1658]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3752]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.020401"], ["id", 3752]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.025267"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.027387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3753]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.031685"], ["updated_at", "2016-12-09 21:07:41.031685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.032794"], ["id", 1659]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3753], ["g5_updatable_hub_amenity_id", 1659]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.035343"], ["updated_at", "2016-12-09 21:07:41.035343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.036268"], ["id", 1660]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3753], ["g5_updatable_hub_amenity_id", 1660]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3753]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.039996"], ["id", 3753]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:41.042716"], ["updated_at", "2016-12-09 21:07:41.042716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:41.043999"], ["updated_at", "2016-12-09 21:07:41.043999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1570]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3754]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.047430"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.049534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3755]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.053443"], ["updated_at", "2016-12-09 21:07:41.053443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.054404"], ["id", 1661]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3755], ["g5_updatable_hub_amenity_id", 1661]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.056875"], ["updated_at", "2016-12-09 21:07:41.056875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.057779"], ["id", 1662]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3755], ["g5_updatable_hub_amenity_id", 1662]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3755]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.067059"], ["id", 3755]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.072005"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.074003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3756]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.077980"], ["updated_at", "2016-12-09 21:07:41.077980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.079146"], ["id", 1663]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3756], ["g5_updatable_hub_amenity_id", 1663]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.082018"], ["updated_at", "2016-12-09 21:07:41.082018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.083218"], ["id", 1664]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3756], ["g5_updatable_hub_amenity_id", 1664]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3756]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.086812"], ["id", 3756]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.092158"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.094271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3757]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.098558"], ["updated_at", "2016-12-09 21:07:41.098558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.099550"], ["id", 1665]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3757], ["g5_updatable_hub_amenity_id", 1665]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.102021"], ["updated_at", "2016-12-09 21:07:41.102021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.103027"], ["id", 1666]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3757], ["g5_updatable_hub_amenity_id", 1666]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3757]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.106237"], ["id", 3757]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.111413"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.113463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3758]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.117548"], ["updated_at", "2016-12-09 21:07:41.117548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.118569"], ["id", 1667]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3758], ["g5_updatable_hub_amenity_id", 1667]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.120963"], ["updated_at", "2016-12-09 21:07:41.120963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.121975"], ["id", 1668]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3758], ["g5_updatable_hub_amenity_id", 1668]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3758]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.125219"], ["id", 3758]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:07:41.129427"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:07:41.132088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.139815"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3759]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3759]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.147921"], ["updated_at", "2016-12-09 21:07:41.147921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.148974"], ["id", 1669]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3759], ["g5_updatable_hub_amenity_id", 1669]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.151551"], ["updated_at", "2016-12-09 21:07:41.151551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.152544"], ["id", 1670]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3759], ["g5_updatable_hub_amenity_id", 1670]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3759]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.156052"], ["id", 3759]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3759]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:07:41.161117"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:07:41.165143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.176008"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3760]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3760]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.185418"], ["updated_at", "2016-12-09 21:07:41.185418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.186646"], ["id", 1671]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3760], ["g5_updatable_hub_amenity_id", 1671]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.189723"], ["updated_at", "2016-12-09 21:07:41.189723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.190788"], ["id", 1672]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3760], ["g5_updatable_hub_amenity_id", 1672]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3760]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.194541"], ["id", 3760]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:41.197778"], ["updated_at", "2016-12-09 21:07:41.197778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:41.199178"], ["updated_at", "2016-12-09 21:07:41.199178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1571]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3761]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.202704"], ["updated_at", "2016-12-09 21:07:41.202704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 21:07:41.204256"], ["updated_at", "2016-12-09 21:07:41.204256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3762], ["g5_updatable_hub_amenity_id", 1673]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.207261"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3762]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3762]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.215845"], ["updated_at", "2016-12-09 21:07:41.215845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.217193"], ["id", 1674]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3762], ["g5_updatable_hub_amenity_id", 1674]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.219968"], ["updated_at", "2016-12-09 21:07:41.219968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.221017"], ["id", 1675]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3762], ["g5_updatable_hub_amenity_id", 1675]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3762]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.225092"], ["id", 3762]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.229946"], ["updated_at", "2016-12-09 21:07:41.229946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 21:07:41.231920"], ["updated_at", "2016-12-09 21:07:41.231920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3763], ["g5_updatable_hub_amenity_id", 1676]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.235048"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3763]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3763]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.243292"], ["updated_at", "2016-12-09 21:07:41.243292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.244383"], ["id", 1677]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3763], ["g5_updatable_hub_amenity_id", 1677]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.247165"], ["updated_at", "2016-12-09 21:07:41.247165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.248466"], ["id", 1678]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3763], ["g5_updatable_hub_amenity_id", 1678]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3763]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.252420"], ["id", 3763]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3763]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.259553"], ["updated_at", "2016-12-09 21:07:41.259553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 21:07:41.261329"], ["updated_at", "2016-12-09 21:07:41.261329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3764], ["g5_updatable_hub_amenity_id", 1679]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.264639"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3764]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3764]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.272981"], ["updated_at", "2016-12-09 21:07:41.272981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.274041"], ["id", 1680]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3764], ["g5_updatable_hub_amenity_id", 1680]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.276947"], ["id", 1679]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3764], ["g5_updatable_hub_amenity_id", 1679]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3764]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.280939"], ["id", 3764]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.299270"], ["updated_at", "2016-12-09 21:07:41.299270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 21:07:41.301127"], ["updated_at", "2016-12-09 21:07:41.301127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3765], ["g5_updatable_hub_amenity_id", 1681]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.303582"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3765]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3765]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.309270"], ["updated_at", "2016-12-09 21:07:41.309270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.310251"], ["id", 1682]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3765], ["g5_updatable_hub_amenity_id", 1682]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.312953"], ["updated_at", "2016-12-09 21:07:41.312953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.313852"], ["id", 1683]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3765], ["g5_updatable_hub_amenity_id", 1683]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3765]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.320264"], ["id", 3765]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:41.322651"], ["updated_at", "2016-12-09 21:07:41.322651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:41.323854"], ["updated_at", "2016-12-09 21:07:41.323854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1572]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3766]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.326622"], ["updated_at", "2016-12-09 21:07:41.326622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 21:07:41.327988"], ["updated_at", "2016-12-09 21:07:41.327988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3767], ["g5_updatable_hub_amenity_id", 1684]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.330609"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3767]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3767]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.336786"], ["updated_at", "2016-12-09 21:07:41.336786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.337744"], ["id", 1685]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3767], ["g5_updatable_hub_amenity_id", 1685]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.340225"], ["updated_at", "2016-12-09 21:07:41.340225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.341392"], ["id", 1686]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3767], ["g5_updatable_hub_amenity_id", 1686]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3767]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.345954"], ["id", 3767]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.359621"], ["updated_at", "2016-12-09 21:07:41.359621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 21:07:41.361191"], ["updated_at", "2016-12-09 21:07:41.361191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3768], ["g5_updatable_hub_amenity_id", 1687]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.363822"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3768]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3768]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.369750"], ["updated_at", "2016-12-09 21:07:41.369750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.370689"], ["id", 1688]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3768], ["g5_updatable_hub_amenity_id", 1688]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.373102"], ["updated_at", "2016-12-09 21:07:41.373102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.374032"], ["id", 1689]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3768], ["g5_updatable_hub_amenity_id", 1689]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3768]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.377337"], ["id", 3768]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.382218"], ["updated_at", "2016-12-09 21:07:41.382218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-09 21:07:41.383927"], ["updated_at", "2016-12-09 21:07:41.383927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3769], ["g5_updatable_hub_amenity_id", 1690]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.386583"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3769]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3769]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.392339"], ["updated_at", "2016-12-09 21:07:41.392339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.393412"], ["id", 1691]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3769], ["g5_updatable_hub_amenity_id", 1691]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.395946"], ["updated_at", "2016-12-09 21:07:41.395946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.396872"], ["id", 1692]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3769], ["g5_updatable_hub_amenity_id", 1692]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3769]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.400210"], ["id", 3769]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:41.402530"], ["updated_at", "2016-12-09 21:07:41.402530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:41.403723"], ["updated_at", "2016-12-09 21:07:41.403723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1573]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3770]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.406466"], ["updated_at", "2016-12-09 21:07:41.406466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-09 21:07:41.407847"], ["updated_at", "2016-12-09 21:07:41.407847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3771], ["g5_updatable_hub_amenity_id", 1693]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.410289"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3771]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3771]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.416440"], ["updated_at", "2016-12-09 21:07:41.416440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.417451"], ["id", 1694]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3771], ["g5_updatable_hub_amenity_id", 1694]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.419771"], ["updated_at", "2016-12-09 21:07:41.419771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.420651"], ["id", 1695]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3771], ["g5_updatable_hub_amenity_id", 1695]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3771]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.423745"], ["id", 3771]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.428402"], ["updated_at", "2016-12-09 21:07:41.428402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-09 21:07:41.429927"], ["updated_at", "2016-12-09 21:07:41.429927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3772], ["g5_updatable_hub_amenity_id", 1696]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.432558"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3772]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3772]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.438702"], ["updated_at", "2016-12-09 21:07:41.438702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.439885"], ["id", 1697]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3772], ["g5_updatable_hub_amenity_id", 1697]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.442656"], ["updated_at", "2016-12-09 21:07:41.442656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.443561"], ["id", 1698]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3772], ["g5_updatable_hub_amenity_id", 1698]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3772]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.446982"], ["id", 3772]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.451777"], ["updated_at", "2016-12-09 21:07:41.451777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-09 21:07:41.453292"], ["updated_at", "2016-12-09 21:07:41.453292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3773], ["g5_updatable_hub_amenity_id", 1699]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.455858"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3773]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3773]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.461607"], ["updated_at", "2016-12-09 21:07:41.461607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.462710"], ["id", 1700]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3773], ["g5_updatable_hub_amenity_id", 1700]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.465601"], ["updated_at", "2016-12-09 21:07:41.465601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.466652"], ["id", 1701]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3773], ["g5_updatable_hub_amenity_id", 1701]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3773]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.469757"], ["id", 3773]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.475761"], ["updated_at", "2016-12-09 21:07:41.475761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 21:07:41.480816"], ["updated_at", "2016-12-09 21:07:41.480816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.484720"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.486509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3776]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.490623"], ["updated_at", "2016-12-09 21:07:41.490623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.491676"], ["id", 1702]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3776], ["g5_updatable_hub_amenity_id", 1702]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.494242"], ["updated_at", "2016-12-09 21:07:41.494242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.495259"], ["id", 1703]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3776], ["g5_updatable_hub_amenity_id", 1703]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3776]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.498815"], ["id", 3776]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3774]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3774]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:41.510391"], ["updated_at", "2016-12-09 21:07:41.510391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.521067"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3777]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3777]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.528050"], ["updated_at", "2016-12-09 21:07:41.528050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.529266"], ["id", 1704]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3777], ["g5_updatable_hub_amenity_id", 1704]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.531929"], ["updated_at", "2016-12-09 21:07:41.531929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.533077"], ["id", 1705]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3777], ["g5_updatable_hub_amenity_id", 1705]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3777]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.536287"], ["id", 3777]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:41.539857"], ["updated_at", "2016-12-09 21:07:41.539857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.541746"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3778]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3778]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.547739"], ["updated_at", "2016-12-09 21:07:41.547739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.548742"], ["id", 1706]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3778], ["g5_updatable_hub_amenity_id", 1706]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.551113"], ["updated_at", "2016-12-09 21:07:41.551113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.552026"], ["id", 1707]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3778], ["g5_updatable_hub_amenity_id", 1707]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3778]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.555111"], ["id", 3778]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:41.558267"], ["updated_at", "2016-12-09 21:07:41.558267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.559913"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3779]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3779]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.565960"], ["updated_at", "2016-12-09 21:07:41.565960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.566866"], ["id", 1708]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3779], ["g5_updatable_hub_amenity_id", 1708]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.569199"], ["updated_at", "2016-12-09 21:07:41.569199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.570094"], ["id", 1709]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3779], ["g5_updatable_hub_amenity_id", 1709]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3779]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.573153"], ["id", 3779]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.587726"], ["updated_at", "2016-12-09 21:07:41.587726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.589614"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.591563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3781]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.595152"], ["updated_at", "2016-12-09 21:07:41.595152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.596093"], ["id", 1710]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3781], ["g5_updatable_hub_amenity_id", 1710]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.598662"], ["updated_at", "2016-12-09 21:07:41.598662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.599598"], ["id", 1711]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3781], ["g5_updatable_hub_amenity_id", 1711]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3781]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.602723"], ["id", 3781]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3780]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3780]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:41.648897"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:41.650207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.652525"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.654452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3782]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3782]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:41.660435"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.661999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3783]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3783]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:41.668387"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.670047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3784]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.674075"], ["updated_at", "2016-12-09 21:07:41.674075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.675035"], ["id", 1712]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3784], ["g5_updatable_hub_amenity_id", 1712]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.677409"], ["updated_at", "2016-12-09 21:07:41.677409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.678305"], ["id", 1713]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3784], ["g5_updatable_hub_amenity_id", 1713]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3784]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.681716"], ["id", 3784]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:41.684381"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.686230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3785]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3785], ["g5_updatable_hub_amenity_id", 1712]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3785], ["g5_updatable_hub_amenity_id", 1713]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3785]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.693970"], ["id", 3785]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:41.696457"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.698370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3786]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3786]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:41.714114"], ["updated_at", "2016-12-09 21:07:41.714114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:07:41.716282"], ["id", 1575]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1575]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:41.719636"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:41.719972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:41.722472"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:41.722848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:41.726166"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:41.726532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:41.733663"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:41.734130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:41.736917"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:41.737221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:41.739851"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:41.740221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:41.743262"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:07:41.743604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:41.746385"], ["updated_at", "2016-12-09 21:07:41.746385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:41.747634"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1583]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:41.750672"], ["updated_at", "2016-12-09 21:07:41.750672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:41.751714"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1584]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:41.754395"], ["updated_at", "2016-12-09 21:07:41.754395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:41.755568"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1585]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:41.758712"], ["updated_at", "2016-12-09 21:07:41.758712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:07:41.759790"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1586]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:41.796336"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:41.797410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.800166"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.802034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3787]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3787]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:41.809223"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.810991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3788]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3788]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:41.817707"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.819403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3789]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.822950"], ["updated_at", "2016-12-09 21:07:41.822950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.823894"], ["id", 1714]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3789], ["g5_updatable_hub_amenity_id", 1714]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.826225"], ["updated_at", "2016-12-09 21:07:41.826225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.827121"], ["id", 1715]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3789], ["g5_updatable_hub_amenity_id", 1715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3789]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.830431"], ["id", 3789]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:41.833179"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.835151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3790]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3790], ["g5_updatable_hub_amenity_id", 1714]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3790], ["g5_updatable_hub_amenity_id", 1715]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3790]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.845498"], ["id", 3790]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:41.850754"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.854249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3791]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3791]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:41.867406"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:41.868340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.870478"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.872093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3792]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3792]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:41.878080"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.879813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3793]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3793]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:41.887043"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.889077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3794]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.893368"], ["updated_at", "2016-12-09 21:07:41.893368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.894338"], ["id", 1716]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3794], ["g5_updatable_hub_amenity_id", 1716]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.896916"], ["updated_at", "2016-12-09 21:07:41.896916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.898065"], ["id", 1717]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3794], ["g5_updatable_hub_amenity_id", 1717]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3794]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.901107"], ["id", 3794]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:41.903591"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.905294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3795]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3795], ["g5_updatable_hub_amenity_id", 1716]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3795], ["g5_updatable_hub_amenity_id", 1717]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3795]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.912974"], ["id", 3795]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:41.915534"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.917220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3796]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3796]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:41.932539"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:41.933803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:41.940308"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.942288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3797]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3797]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:41.948662"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.950381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3798]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3798]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:41.959075"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.961003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3799]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:41.964766"], ["updated_at", "2016-12-09 21:07:41.964766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:41.965714"], ["id", 1718]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3799], ["g5_updatable_hub_amenity_id", 1718]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:41.968007"], ["updated_at", "2016-12-09 21:07:41.968007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:41.968897"], ["id", 1719]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3799], ["g5_updatable_hub_amenity_id", 1719]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3799]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.971882"], ["id", 3799]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:41.974239"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.975936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3800]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3800], ["g5_updatable_hub_amenity_id", 1718]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3800], ["g5_updatable_hub_amenity_id", 1719]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3800]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:41.983329"], ["id", 3800]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:41.985832"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:41.987460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3801]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3801]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3799]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:41.999088"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:42.000028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:42.002066"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:42.003990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3802]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3802]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:42.009717"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:42.011283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3803]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3803]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:42.017600"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:42.019374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3804]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:42.022843"], ["updated_at", "2016-12-09 21:07:42.022843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:42.023876"], ["id", 1720]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3804], ["g5_updatable_hub_amenity_id", 1720]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:42.026192"], ["updated_at", "2016-12-09 21:07:42.026192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:42.027240"], ["id", 1721]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3804], ["g5_updatable_hub_amenity_id", 1721]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3804]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:42.030409"], ["id", 3804]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (8.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:42.033034"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:42.034908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3805]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3805], ["g5_updatable_hub_amenity_id", 1720]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3805], ["g5_updatable_hub_amenity_id", 1721]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3805]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:42.051602"], ["id", 3805]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:42.053982"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:42.055575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3806]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3806]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:07:42.066445"], ["id", 1590]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3806]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3806]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3805]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1920]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1921]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3805]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3804]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1918]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1919]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3804]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3803]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3803]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3802]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3802]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:07:42.083127"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:07:42.084377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:42.086866"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:42.088552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3807]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3807]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:07:42.095033"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:42.097229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3808]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3808]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:07:42.107463"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:42.109116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3809]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:42.112781"], ["updated_at", "2016-12-09 21:07:42.112781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:42.113735"], ["id", 1722]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3809], ["g5_updatable_hub_amenity_id", 1722]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:42.116301"], ["updated_at", "2016-12-09 21:07:42.116301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:42.117169"], ["id", 1723]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3809], ["g5_updatable_hub_amenity_id", 1723]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3809]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:42.120236"], ["id", 3809]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:07:42.122484"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:42.124183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3810]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3810], ["g5_updatable_hub_amenity_id", 1722]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3810], ["g5_updatable_hub_amenity_id", 1723]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3810]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:42.131602"], ["id", 3810]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:07:42.134035"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:42.135615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3811]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3811]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:07:42.145410"], ["id", 1591]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 21:07:42.150423"], ["id", 3807]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3807]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3807]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3811]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3811]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3810]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1924]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1925]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3810]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3809]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1922]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1923]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3809]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3808]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3808]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:07:42.169399"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:07:42.171112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3812]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:07:42.174574"], ["updated_at", "2016-12-09 21:07:42.174574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:07:42.175705"], ["id", 1724]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3812], ["g5_updatable_hub_amenity_id", 1724]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:07:42.178099"], ["updated_at", "2016-12-09 21:07:42.178099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:07:42.179137"], ["id", 1725]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3812], ["g5_updatable_hub_amenity_id", 1725]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3812]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:07:42.182431"], ["id", 3812]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2016-12-09 21:07:42.209001"], ["updated_at", "2016-12-09 21:07:42.209001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1592]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:07:42.218359"], ["updated_at", "2016-12-09 21:07:42.218359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:42.220011"], ["updated_at", "2016-12-09 21:07:42.220011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:42.234669"], ["updated_at", "2016-12-09 21:07:42.234669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:07:42.235952"], ["updated_at", "2016-12-09 21:07:42.235952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-09 21:07:42.237210"], ["updated_at", "2016-12-09 21:07:42.237210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-09 21:07:42.238387"], ["updated_at", "2016-12-09 21:07:42.238387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-09 21:07:42.239484"], ["updated_at", "2016-12-09 21:07:42.239484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3814], ["g5_updatable_hub_amenity_id", 1726]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3814], ["g5_updatable_hub_amenity_id", 1727]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.9ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:07:42.250342"], ["updated_at", "2016-12-09 21:07:42.250342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:07:42.251653"], ["updated_at", "2016-12-09 21:07:42.251653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-09 21:07:42.252892"], ["updated_at", "2016-12-09 21:07:42.252892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-09 21:07:42.253821"], ["updated_at", "2016-12-09 21:07:42.253821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-09 21:07:42.254745"], ["updated_at", "2016-12-09 21:07:42.254745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3815], ["g5_updatable_hub_amenity_id", 1729]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3815], ["g5_updatable_hub_amenity_id", 1730]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:07:42.261610"], ["updated_at", "2016-12-09 21:07:42.261610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:42.263496"], ["updated_at", "2016-12-09 21:07:42.263496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:42.265418"], ["updated_at", "2016-12-09 21:07:42.265418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:42.266852"], ["updated_at", "2016-12-09 21:07:42.266852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:42.268202"], ["updated_at", "2016-12-09 21:07:42.268202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:42.276114"], ["updated_at", "2016-12-09 21:07:42.276114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:42.277771"], ["updated_at", "2016-12-09 21:07:42.277771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:42.279212"], ["updated_at", "2016-12-09 21:07:42.279212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:07:42.280603"], ["updated_at", "2016-12-09 21:07:42.280603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:42.282167"], ["updated_at", "2016-12-09 21:07:42.282167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:42.288499"], ["updated_at", "2016-12-09 21:07:42.288499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.32ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:07:42.297511"], ["updated_at", "2016-12-09 21:07:42.297511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.32ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:09.519730"], ["updated_at", "2016-12-09 21:13:09.519730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:13:09.526057"], ["updated_at", "2016-12-09 21:13:09.526057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:13:09.528168"], ["updated_at", "2016-12-09 21:13:09.528168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:13:09.529333"], ["updated_at", "2016-12-09 21:13:09.529333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:13:09.530216"], ["updated_at", "2016-12-09 21:13:09.530216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3824], ["g5_updatable_hub_amenity_id", 1732]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3824], ["g5_updatable_hub_amenity_id", 1733]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (1.0ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:09.551731"], ["updated_at", "2016-12-09 21:13:09.551731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:13:09.552947"], ["updated_at", "2016-12-09 21:13:09.552947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:13:09.554031"], ["updated_at", "2016-12-09 21:13:09.554031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 21:13:09.554936"], ["updated_at", "2016-12-09 21:13:09.554936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 21:13:09.555825"], ["updated_at", "2016-12-09 21:13:09.555825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3825], ["g5_updatable_hub_amenity_id", 1735]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3825], ["g5_updatable_hub_amenity_id", 1736]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:13:09.602019"], ["updated_at", "2016-12-09 21:13:09.602019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:09.603649"], ["updated_at", "2016-12-09 21:13:09.603649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:09.604957"], ["updated_at", "2016-12-09 21:13:09.604957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:13:09.606056"], ["updated_at", "2016-12-09 21:13:09.606056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:09.607466"], ["updated_at", "2016-12-09 21:13:09.607466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:09.619329"], ["updated_at", "2016-12-09 21:13:09.619329"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:09.622739"], ["updated_at", "2016-12-09 21:13:09.622739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:09.626186"], ["updated_at", "2016-12-09 21:13:09.626186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:09.628126"], ["updated_at", "2016-12-09 21:13:09.628126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:09.629786"], ["updated_at", "2016-12-09 21:13:09.629786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:09.639186"], ["updated_at", "2016-12-09 21:13:09.639186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.31ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:09.646327"], ["updated_at", "2016-12-09 21:13:09.646327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.35ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (8.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:09.658604"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.661232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3834]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:09.674787"], ["updated_at", "2016-12-09 21:13:09.674787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:09.677117"], ["id", 1738]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3834], ["g5_updatable_hub_amenity_id", 1738]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:09.680903"], ["updated_at", "2016-12-09 21:13:09.680903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:09.681877"], ["id", 1739]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3834], ["g5_updatable_hub_amenity_id", 1739]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3834]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:09.685778"], ["id", 3834]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:13:09.694566"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:13:09.695964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:09.698376"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.700177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3835]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3835]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:13:09.706478"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.708481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3836]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3836]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:13:09.715008"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.716819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3837]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:09.720683"], ["updated_at", "2016-12-09 21:13:09.720683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:09.721841"], ["id", 1740]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3837], ["g5_updatable_hub_amenity_id", 1740]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:09.724993"], ["updated_at", "2016-12-09 21:13:09.724993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:09.726184"], ["id", 1741]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3837], ["g5_updatable_hub_amenity_id", 1741]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3837]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:09.730007"], ["id", 3837]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:13:09.732594"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.734319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3838]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3838], ["g5_updatable_hub_amenity_id", 1740]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3838], ["g5_updatable_hub_amenity_id", 1741]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3838]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:09.750100"], ["id", 3838]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:13:09.752778"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.754459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3839]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3839]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3837]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:13:09.768704"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:13:09.769883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:09.772689"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.774785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3840]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3840]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:13:09.781947"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.783795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3841]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3841]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:13:09.790819"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.792812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3842]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:09.797194"], ["updated_at", "2016-12-09 21:13:09.797194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:09.798356"], ["id", 1742]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3842], ["g5_updatable_hub_amenity_id", 1742]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:09.801233"], ["updated_at", "2016-12-09 21:13:09.801233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:09.802278"], ["id", 1743]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3842], ["g5_updatable_hub_amenity_id", 1743]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3842]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:09.805802"], ["id", 3842]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:13:09.808762"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.810482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3843]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3843], ["g5_updatable_hub_amenity_id", 1742]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3843], ["g5_updatable_hub_amenity_id", 1743]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3843]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:09.821666"], ["id", 3843]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:13:09.826109"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.827890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3844]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3844]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:13:09.840215"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:13:09.841364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:09.843772"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.845856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3845]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3845]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:13:09.852250"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.853896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3846]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3846]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:13:09.859723"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.861372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3847]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:09.865118"], ["updated_at", "2016-12-09 21:13:09.865118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:09.866047"], ["id", 1744]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3847], ["g5_updatable_hub_amenity_id", 1744]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:09.868371"], ["updated_at", "2016-12-09 21:13:09.868371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:09.869262"], ["id", 1745]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3847], ["g5_updatable_hub_amenity_id", 1745]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3847]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:09.872705"], ["id", 3847]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:13:09.875616"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.877621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3848]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3848], ["g5_updatable_hub_amenity_id", 1744]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3848], ["g5_updatable_hub_amenity_id", 1745]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3848]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:09.885083"], ["id", 3848]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:13:09.887520"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.889152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3849]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3849]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:13:09.903616"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:13:09.904653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:09.906945"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.913906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3850]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3850]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:13:09.920828"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.923025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3851]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3851]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:13:09.930332"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.932161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3852]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:09.935932"], ["updated_at", "2016-12-09 21:13:09.935932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:09.936899"], ["id", 1746]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3852], ["g5_updatable_hub_amenity_id", 1746]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:09.939355"], ["updated_at", "2016-12-09 21:13:09.939355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:09.940584"], ["id", 1747]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3852], ["g5_updatable_hub_amenity_id", 1747]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3852]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:09.943881"], ["id", 3852]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:13:09.946429"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.948328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3853]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3853], ["g5_updatable_hub_amenity_id", 1746]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3853], ["g5_updatable_hub_amenity_id", 1747]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3853]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:09.955988"], ["id", 3853]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:13:09.959278"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:09.961068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3854]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3854]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:13:09.971302"], ["id", 1609]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 21:13:09.977382"], ["id", 3850]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3850]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3850]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3854]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3854]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3853]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1952]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1953]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3853]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3852]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1950]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1951]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3852]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3851]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3851]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:13:10.001634"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:13:10.003184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.005612"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.008522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3855]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3855]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:13:10.018657"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.021505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3856]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3856]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:13:10.030559"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.032534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3857]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.037097"], ["updated_at", "2016-12-09 21:13:10.037097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.038120"], ["id", 1748]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3857], ["g5_updatable_hub_amenity_id", 1748]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.041197"], ["updated_at", "2016-12-09 21:13:10.041197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.042271"], ["id", 1749]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3857], ["g5_updatable_hub_amenity_id", 1749]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3857]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.045938"], ["id", 3857]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:13:10.049267"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.051706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3858]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3858], ["g5_updatable_hub_amenity_id", 1748]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3858], ["g5_updatable_hub_amenity_id", 1749]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3858]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.061789"], ["id", 3858]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:13:10.065139"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.067286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3859]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3859]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:13:10.080621"], ["id", 1610]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3859]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3859]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3858]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1956]] SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1957]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3858]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3857]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1954]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 1955]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3857]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3856]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3856]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3855]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3855]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.141774"], ["updated_at", "2016-12-09 21:13:10.141774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.143302"], ["updated_at", "2016-12-09 21:13:10.143302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.144189"], ["updated_at", "2016-12-09 21:13:10.144189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3860], ["g5_updatable_hub_amenity_id", 1750]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3860], ["g5_updatable_hub_amenity_id", 1751]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3860]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-7|amenity-8|"], ["updated_at", "2016-12-09 21:13:10.148371"], ["id", 3860]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3860]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3860]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.151337"], ["updated_at", "2016-12-09 21:13:10.151337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.152435"], ["updated_at", "2016-12-09 21:13:10.152435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.153309"], ["updated_at", "2016-12-09 21:13:10.153309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3861], ["g5_updatable_hub_amenity_id", 1752]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3861], ["g5_updatable_hub_amenity_id", 1753]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3861]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-10|amenity-9|"], ["updated_at", "2016-12-09 21:13:10.157269"], ["id", 3861]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3861]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3861]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3861]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3861]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3861]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.163826"], ["updated_at", "2016-12-09 21:13:10.163826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.166057"], ["updated_at", "2016-12-09 21:13:10.166057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.167194"], ["updated_at", "2016-12-09 21:13:10.167194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.170090"], ["updated_at", "2016-12-09 21:13:10.170090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.172279"], ["updated_at", "2016-12-09 21:13:10.172279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.173443"], ["updated_at", "2016-12-09 21:13:10.173443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.176235"], ["updated_at", "2016-12-09 21:13:10.176235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.178518"], ["updated_at", "2016-12-09 21:13:10.178518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.179810"], ["updated_at", "2016-12-09 21:13:10.179810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:13:10.181728"], ["updated_at", "2016-12-09 21:13:10.181728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.183519"], ["updated_at", "2016-12-09 21:13:10.183519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.185393"], ["updated_at", "2016-12-09 21:13:10.185393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.186480"], ["updated_at", "2016-12-09 21:13:10.186480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.188763"], ["updated_at", "2016-12-09 21:13:10.188763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.191188"], ["updated_at", "2016-12-09 21:13:10.191188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.192976"], ["updated_at", "2016-12-09 21:13:10.192976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.197595"], ["updated_at", "2016-12-09 21:13:10.197595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.199615"], ["updated_at", "2016-12-09 21:13:10.199615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.200692"], ["updated_at", "2016-12-09 21:13:10.200692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.203349"], ["updated_at", "2016-12-09 21:13:10.203349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.205200"], ["updated_at", "2016-12-09 21:13:10.205200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.206264"], ["updated_at", "2016-12-09 21:13:10.206264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.209668"], ["updated_at", "2016-12-09 21:13:10.209668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.211655"], ["updated_at", "2016-12-09 21:13:10.211655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.212726"], ["updated_at", "2016-12-09 21:13:10.212726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.215545"], ["updated_at", "2016-12-09 21:13:10.215545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.217396"], ["updated_at", "2016-12-09 21:13:10.217396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.218448"], ["updated_at", "2016-12-09 21:13:10.218448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.221377"], ["updated_at", "2016-12-09 21:13:10.221377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.223371"], ["updated_at", "2016-12-09 21:13:10.223371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.224890"], ["updated_at", "2016-12-09 21:13:10.224890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.228282"], ["updated_at", "2016-12-09 21:13:10.228282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.230478"], ["updated_at", "2016-12-09 21:13:10.230478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.231545"], ["updated_at", "2016-12-09 21:13:10.231545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.234291"], ["updated_at", "2016-12-09 21:13:10.234291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.236196"], ["updated_at", "2016-12-09 21:13:10.236196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.237283"], ["updated_at", "2016-12-09 21:13:10.237283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:13:10.240388"], ["updated_at", "2016-12-09 21:13:10.240388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.242449"], ["updated_at", "2016-12-09 21:13:10.242449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:13:10.243550"], ["updated_at", "2016-12-09 21:13:10.243550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:13:10.269524"], ["updated_at", "2016-12-09 21:13:10.269524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.271215"], ["updated_at", "2016-12-09 21:13:10.271215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:13:10.274205"], ["updated_at", "2016-12-09 21:13:10.274205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.275522"], ["updated_at", "2016-12-09 21:13:10.275522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.282225"], ["updated_at", "2016-12-09 21:13:10.282225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.284247"], ["updated_at", "2016-12-09 21:13:10.284247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.286059"], ["updated_at", "2016-12-09 21:13:10.286059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.289568"], ["updated_at", "2016-12-09 21:13:10.289568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3894]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.294965"], ["updated_at", "2016-12-09 21:13:10.294965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.296388"], ["updated_at", "2016-12-09 21:13:10.296388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.299171"], ["updated_at", "2016-12-09 21:13:10.299171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.300456"], ["updated_at", "2016-12-09 21:13:10.300456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.303682"], ["updated_at", "2016-12-09 21:13:10.303682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.305077"], ["updated_at", "2016-12-09 21:13:10.305077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.307493"], ["updated_at", "2016-12-09 21:13:10.307493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.308871"], ["updated_at", "2016-12-09 21:13:10.308871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.312134"], ["updated_at", "2016-12-09 21:13:10.312134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.313473"], ["updated_at", "2016-12-09 21:13:10.313473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:13:10.317080"], ["updated_at", "2016-12-09 21:13:10.317080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.318286"], ["updated_at", "2016-12-09 21:13:10.318286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:13:10.323342"], ["updated_at", "2016-12-09 21:13:10.323342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1627]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:13:10.334416"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:13:10.335380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.337508"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.339321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3906]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3906]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:13:10.345429"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.347152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3907]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3907]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:13:10.352688"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.354395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3908]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.358289"], ["updated_at", "2016-12-09 21:13:10.358289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.359410"], ["id", 1754]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3908], ["g5_updatable_hub_amenity_id", 1754]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.361975"], ["updated_at", "2016-12-09 21:13:10.361975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.363088"], ["id", 1755]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3908], ["g5_updatable_hub_amenity_id", 1755]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3908]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.366699"], ["id", 3908]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:13:10.374579"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.377171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3909]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3909], ["g5_updatable_hub_amenity_id", 1754]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3909], ["g5_updatable_hub_amenity_id", 1755]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3909]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.385486"], ["id", 3909]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:13:10.387918"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.389603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3910]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3910]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.403232"], ["updated_at", "2016-12-09 21:13:10.403232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:13:10.404550"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1629]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.408202"], ["updated_at", "2016-12-09 21:13:10.408202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:13:10.409574"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1630]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.412658"], ["updated_at", "2016-12-09 21:13:10.412658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:13:10.413772"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1631]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:13:10.416887"], ["updated_at", "2016-12-09 21:13:10.416887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:13:10.418032"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1632]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:13:10.421299"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:13:10.421693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:13:10.424523"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:13:10.424931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:13:10.427872"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:13:10.428359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:13:10.431524"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:13:10.431865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:13:10.434001"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:13:10.434346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:13:10.436868"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:13:10.437188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:13:10.439845"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:13:10.440171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:13:10.443014"], ["updated_at", "2016-12-09 21:13:10.443014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:13:10.444639"], ["id", 1640]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1640]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (1.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.463366"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.466063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3911]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.471551"], ["updated_at", "2016-12-09 21:13:10.471551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.472858"], ["id", 1756]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3911], ["g5_updatable_hub_amenity_id", 1756]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.476491"], ["updated_at", "2016-12-09 21:13:10.476491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.477811"], ["id", 1757]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3911], ["g5_updatable_hub_amenity_id", 1757]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3911]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.481827"], ["id", 3911]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.489608"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.491877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3912]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.496317"], ["updated_at", "2016-12-09 21:13:10.496317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.497509"], ["id", 1758]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3912], ["g5_updatable_hub_amenity_id", 1758]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.500288"], ["updated_at", "2016-12-09 21:13:10.500288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.501334"], ["id", 1759]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3912], ["g5_updatable_hub_amenity_id", 1759]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3912]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.505194"], ["id", 3912]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.511799"], ["updated_at", "2016-12-09 21:13:10.511799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.513598"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.515420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3914]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.519315"], ["updated_at", "2016-12-09 21:13:10.519315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.520496"], ["id", 1760]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3914], ["g5_updatable_hub_amenity_id", 1760]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.524325"], ["updated_at", "2016-12-09 21:13:10.524325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.525471"], ["id", 1761]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3914], ["g5_updatable_hub_amenity_id", 1761]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3914]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.529499"], ["id", 3914]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3913]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3913]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.536151"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.538044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3915]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.542437"], ["updated_at", "2016-12-09 21:13:10.542437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.543634"], ["id", 1762]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3915], ["g5_updatable_hub_amenity_id", 1762]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.546447"], ["updated_at", "2016-12-09 21:13:10.546447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.547689"], ["id", 1763]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3915], ["g5_updatable_hub_amenity_id", 1763]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3915]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.552081"], ["id", 3915]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3915]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3915]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.559730"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.561709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3916]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.565973"], ["updated_at", "2016-12-09 21:13:10.565973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.567103"], ["id", 1764]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3916], ["g5_updatable_hub_amenity_id", 1764]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.569860"], ["updated_at", "2016-12-09 21:13:10.569860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.570999"], ["id", 1765]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3916], ["g5_updatable_hub_amenity_id", 1765]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3916]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.574867"], ["id", 3916]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.581565"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.583317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3917]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.587238"], ["updated_at", "2016-12-09 21:13:10.587238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.588210"], ["id", 1766]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3917], ["g5_updatable_hub_amenity_id", 1766]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.590799"], ["updated_at", "2016-12-09 21:13:10.590799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.591737"], ["id", 1767]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3917], ["g5_updatable_hub_amenity_id", 1767]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3917]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.594948"], ["id", 3917]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.598639"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.600425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3918]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.604117"], ["updated_at", "2016-12-09 21:13:10.604117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.605100"], ["id", 1768]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3918], ["g5_updatable_hub_amenity_id", 1768]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.607707"], ["updated_at", "2016-12-09 21:13:10.607707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.608690"], ["id", 1769]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3918], ["g5_updatable_hub_amenity_id", 1769]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3918]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.611916"], ["id", 3918]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.621326"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.622973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3919]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.627148"], ["updated_at", "2016-12-09 21:13:10.627148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.628244"], ["id", 1770]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3919], ["g5_updatable_hub_amenity_id", 1770]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.630790"], ["updated_at", "2016-12-09 21:13:10.630790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.631688"], ["id", 1771]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3919], ["g5_updatable_hub_amenity_id", 1771]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3919]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.634819"], ["id", 3919]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.639447"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.641420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3920]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.645699"], ["updated_at", "2016-12-09 21:13:10.645699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.646868"], ["id", 1772]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3920], ["g5_updatable_hub_amenity_id", 1772]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.649260"], ["updated_at", "2016-12-09 21:13:10.649260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.650141"], ["id", 1773]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3920], ["g5_updatable_hub_amenity_id", 1773]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3920]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.653458"], ["id", 3920]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.658307"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.660133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3921]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.663984"], ["updated_at", "2016-12-09 21:13:10.663984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.665048"], ["id", 1774]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3921], ["g5_updatable_hub_amenity_id", 1774]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.667454"], ["updated_at", "2016-12-09 21:13:10.667454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.668435"], ["id", 1775]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3921], ["g5_updatable_hub_amenity_id", 1775]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3921]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.671894"], ["id", 3921]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.677368"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.679117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3922]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.682806"], ["updated_at", "2016-12-09 21:13:10.682806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.683765"], ["id", 1776]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3922], ["g5_updatable_hub_amenity_id", 1776]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.686153"], ["updated_at", "2016-12-09 21:13:10.686153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.687046"], ["id", 1777]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3922], ["g5_updatable_hub_amenity_id", 1777]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3922]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.690299"], ["id", 3922]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:13:10.692699"], ["updated_at", "2016-12-09 21:13:10.692699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.694017"], ["updated_at", "2016-12-09 21:13:10.694017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1641]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3923]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.697092"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.698804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3924]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.702233"], ["updated_at", "2016-12-09 21:13:10.702233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.703191"], ["id", 1778]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3924], ["g5_updatable_hub_amenity_id", 1778]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.705607"], ["updated_at", "2016-12-09 21:13:10.705607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.706720"], ["id", 1779]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3924], ["g5_updatable_hub_amenity_id", 1779]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3924]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.709768"], ["id", 3924]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.714558"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.716235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3925]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.719693"], ["updated_at", "2016-12-09 21:13:10.719693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.720766"], ["id", 1780]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3925], ["g5_updatable_hub_amenity_id", 1780]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.723625"], ["updated_at", "2016-12-09 21:13:10.723625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.724758"], ["id", 1781]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3925], ["g5_updatable_hub_amenity_id", 1781]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3925]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.728177"], ["id", 3925]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.733866"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.735718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3926]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.739143"], ["updated_at", "2016-12-09 21:13:10.739143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.740116"], ["id", 1782]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3926], ["g5_updatable_hub_amenity_id", 1782]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.742806"], ["updated_at", "2016-12-09 21:13:10.742806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.743736"], ["id", 1783]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3926], ["g5_updatable_hub_amenity_id", 1783]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3926]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.746875"], ["id", 3926]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.751403"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.753229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3927]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.756922"], ["updated_at", "2016-12-09 21:13:10.756922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.758041"], ["id", 1784]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3927], ["g5_updatable_hub_amenity_id", 1784]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.760594"], ["updated_at", "2016-12-09 21:13:10.760594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.761503"], ["id", 1785]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3927], ["g5_updatable_hub_amenity_id", 1785]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3927]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.764857"], ["id", 3927]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.769407"], ["updated_at", "2016-12-09 21:13:10.769407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.771404"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3928]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3928]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.777905"], ["updated_at", "2016-12-09 21:13:10.777905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.778933"], ["id", 1786]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3928], ["g5_updatable_hub_amenity_id", 1786]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.781403"], ["updated_at", "2016-12-09 21:13:10.781403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.782328"], ["id", 1787]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3928], ["g5_updatable_hub_amenity_id", 1787]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3928]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.785454"], ["id", 3928]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.788761"], ["updated_at", "2016-12-09 21:13:10.788761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.790573"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3929]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3929]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.796700"], ["updated_at", "2016-12-09 21:13:10.796700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.797712"], ["id", 1788]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3929], ["g5_updatable_hub_amenity_id", 1788]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.800098"], ["updated_at", "2016-12-09 21:13:10.800098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.801041"], ["id", 1789]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3929], ["g5_updatable_hub_amenity_id", 1789]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3929]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.808752"], ["id", 3929]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.813029"], ["updated_at", "2016-12-09 21:13:10.813029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.814511"], ["updated_at", "2016-12-09 21:13:10.814511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3930], ["g5_updatable_hub_amenity_id", 1790]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.816933"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3930]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3930]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.822940"], ["updated_at", "2016-12-09 21:13:10.822940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.824078"], ["id", 1791]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3930], ["g5_updatable_hub_amenity_id", 1791]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.826942"], ["updated_at", "2016-12-09 21:13:10.826942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.828025"], ["id", 1792]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3930], ["g5_updatable_hub_amenity_id", 1792]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3930]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.831568"], ["id", 3930]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.836039"], ["updated_at", "2016-12-09 21:13:10.836039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.837398"], ["updated_at", "2016-12-09 21:13:10.837398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3931], ["g5_updatable_hub_amenity_id", 1793]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.839852"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3931]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3931]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.845856"], ["updated_at", "2016-12-09 21:13:10.845856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.846849"], ["id", 1794]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3931], ["g5_updatable_hub_amenity_id", 1794]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.849275"], ["updated_at", "2016-12-09 21:13:10.849275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.850206"], ["id", 1795]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3931], ["g5_updatable_hub_amenity_id", 1795]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3931]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.853669"], ["id", 3931]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.857541"], ["updated_at", "2016-12-09 21:13:10.857541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.859024"], ["updated_at", "2016-12-09 21:13:10.859024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3932], ["g5_updatable_hub_amenity_id", 1796]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.861572"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3932]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3932]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.867342"], ["updated_at", "2016-12-09 21:13:10.867342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.868417"], ["id", 1797]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3932], ["g5_updatable_hub_amenity_id", 1797]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.871069"], ["updated_at", "2016-12-09 21:13:10.871069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.871966"], ["id", 1798]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3932], ["g5_updatable_hub_amenity_id", 1798]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3932]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.875265"], ["id", 3932]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3932]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.881111"], ["updated_at", "2016-12-09 21:13:10.881111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.882504"], ["updated_at", "2016-12-09 21:13:10.882504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3933], ["g5_updatable_hub_amenity_id", 1799]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.884967"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3933]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3933]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.891024"], ["updated_at", "2016-12-09 21:13:10.891024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.892069"], ["id", 1800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3933], ["g5_updatable_hub_amenity_id", 1800]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.894478"], ["updated_at", "2016-12-09 21:13:10.894478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.895373"], ["id", 1801]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3933], ["g5_updatable_hub_amenity_id", 1801]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3933]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.898640"], ["id", 3933]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:13:10.900928"], ["updated_at", "2016-12-09 21:13:10.900928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.902112"], ["updated_at", "2016-12-09 21:13:10.902112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1642]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3934]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.904810"], ["updated_at", "2016-12-09 21:13:10.904810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.906228"], ["updated_at", "2016-12-09 21:13:10.906228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3935], ["g5_updatable_hub_amenity_id", 1802]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.909161"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3935]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3935]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.916043"], ["updated_at", "2016-12-09 21:13:10.916043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.917019"], ["id", 1803]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3935], ["g5_updatable_hub_amenity_id", 1803]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.919503"], ["updated_at", "2016-12-09 21:13:10.919503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.920567"], ["id", 1804]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3935], ["g5_updatable_hub_amenity_id", 1804]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3935]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.924208"], ["id", 3935]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.929141"], ["updated_at", "2016-12-09 21:13:10.929141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.930759"], ["updated_at", "2016-12-09 21:13:10.930759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3936], ["g5_updatable_hub_amenity_id", 1805]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.933373"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3936]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3936]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.938833"], ["updated_at", "2016-12-09 21:13:10.938833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.940021"], ["id", 1806]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3936], ["g5_updatable_hub_amenity_id", 1806]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.942374"], ["updated_at", "2016-12-09 21:13:10.942374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.943354"], ["id", 1807]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3936], ["g5_updatable_hub_amenity_id", 1807]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3936]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.946477"], ["id", 3936]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.950385"], ["updated_at", "2016-12-09 21:13:10.950385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.951746"], ["updated_at", "2016-12-09 21:13:10.951746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3937], ["g5_updatable_hub_amenity_id", 1808]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.954209"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3937]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3937]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.960194"], ["updated_at", "2016-12-09 21:13:10.960194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.961212"], ["id", 1809]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3937], ["g5_updatable_hub_amenity_id", 1809]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.963689"], ["updated_at", "2016-12-09 21:13:10.963689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.964653"], ["id", 1810]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3937], ["g5_updatable_hub_amenity_id", 1810]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3937]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.967897"], ["id", 3937]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:13:10.970667"], ["updated_at", "2016-12-09 21:13:10.970667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:10.972035"], ["updated_at", "2016-12-09 21:13:10.972035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1643]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3938]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.975037"], ["updated_at", "2016-12-09 21:13:10.975037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.976513"], ["updated_at", "2016-12-09 21:13:10.976513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3939], ["g5_updatable_hub_amenity_id", 1811]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:10.979318"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3939]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3939]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:10.985460"], ["updated_at", "2016-12-09 21:13:10.985460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:10.986404"], ["id", 1812]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3939], ["g5_updatable_hub_amenity_id", 1812]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:10.988782"], ["updated_at", "2016-12-09 21:13:10.988782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:10.989961"], ["id", 1813]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3939], ["g5_updatable_hub_amenity_id", 1813]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3939]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:10.993227"], ["id", 3939]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:10.998304"], ["updated_at", "2016-12-09 21:13:10.998304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-09 21:13:10.999810"], ["updated_at", "2016-12-09 21:13:10.999810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3940], ["g5_updatable_hub_amenity_id", 1814]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:11.006229"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3940]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3940]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:11.012463"], ["updated_at", "2016-12-09 21:13:11.012463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:11.013498"], ["id", 1815]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3940], ["g5_updatable_hub_amenity_id", 1815]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:11.015860"], ["updated_at", "2016-12-09 21:13:11.015860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:11.016769"], ["id", 1816]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3940], ["g5_updatable_hub_amenity_id", 1816]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3940]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:11.019956"], ["id", 3940]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:11.024888"], ["updated_at", "2016-12-09 21:13:11.024888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-09 21:13:11.026524"], ["updated_at", "2016-12-09 21:13:11.026524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3941], ["g5_updatable_hub_amenity_id", 1817]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:11.029364"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3941]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3941]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:11.035253"], ["updated_at", "2016-12-09 21:13:11.035253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:11.036157"], ["id", 1818]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3941], ["g5_updatable_hub_amenity_id", 1818]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:11.038458"], ["updated_at", "2016-12-09 21:13:11.038458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:11.039346"], ["id", 1819]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3941], ["g5_updatable_hub_amenity_id", 1819]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3941]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:11.042552"], ["id", 3941]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:11.048566"], ["updated_at", "2016-12-09 21:13:11.048566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 21:13:11.053353"], ["updated_at", "2016-12-09 21:13:11.053353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:11.056536"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:13:11.058403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3944]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:11.061985"], ["updated_at", "2016-12-09 21:13:11.061985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:11.062907"], ["id", 1820]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3944], ["g5_updatable_hub_amenity_id", 1820]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:11.065327"], ["updated_at", "2016-12-09 21:13:11.065327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:11.066226"], ["id", 1821]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3944], ["g5_updatable_hub_amenity_id", 1821]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3944]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:11.069595"], ["id", 3944]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3942]] SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3942]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:13:11.075908"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:13:11.078326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:11.085174"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3945]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3945]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:11.092014"], ["updated_at", "2016-12-09 21:13:11.092014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:11.093797"], ["id", 1822]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3945], ["g5_updatable_hub_amenity_id", 1822]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:11.096342"], ["updated_at", "2016-12-09 21:13:11.096342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:11.097405"], ["id", 1823]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3945], ["g5_updatable_hub_amenity_id", 1823]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3945]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:11.100487"], ["id", 3945]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3945]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:13:11.104539"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:13:11.106713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:13:11.113622"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3946]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3946]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:13:11.119773"], ["updated_at", "2016-12-09 21:13:11.119773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:13:11.120865"], ["id", 1824]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3946], ["g5_updatable_hub_amenity_id", 1824]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:13:11.123652"], ["updated_at", "2016-12-09 21:13:11.123652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:13:11.124616"], ["id", 1825]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3946], ["g5_updatable_hub_amenity_id", 1825]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3946]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:13:11.128113"], ["id", 3946]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:13:11.130655"], ["updated_at", "2016-12-09 21:13:11.130655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:13:11.131917"], ["updated_at", "2016-12-09 21:13:11.131917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1644]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3947]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:33.124626"], ["updated_at", "2016-12-09 21:14:33.124626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:33.137533"], ["updated_at", "2016-12-09 21:14:33.137533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:33.139974"], ["updated_at", "2016-12-09 21:14:33.139974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:14:33.141421"], ["updated_at", "2016-12-09 21:14:33.141421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:33.142838"], ["updated_at", "2016-12-09 21:14:33.142838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.5ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.07ms) Completed 200 OK in 16ms (Views: 3.7ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:14:33.166832"], ["updated_at", "2016-12-09 21:14:33.166832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:33.168978"], ["updated_at", "2016-12-09 21:14:33.168978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:33.171425"], ["updated_at", "2016-12-09 21:14:33.171425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:14:33.172914"], ["updated_at", "2016-12-09 21:14:33.172914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:33.174436"], ["updated_at", "2016-12-09 21:14:33.174436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.191802"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.194498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3954]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.204554"], ["updated_at", "2016-12-09 21:14:33.204554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.207119"], ["id", 1826]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3954], ["g5_updatable_hub_amenity_id", 1826]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.216316"], ["updated_at", "2016-12-09 21:14:33.216316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.217634"], ["id", 1827]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3954], ["g5_updatable_hub_amenity_id", 1827]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3954]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.225725"], ["id", 3954]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:14:33.235587"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:14:33.236971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.239416"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.241129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3955]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3955]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:14:33.247403"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.249159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3956]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3956]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:14:33.256036"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.257925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3957]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.262008"], ["updated_at", "2016-12-09 21:14:33.262008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.263104"], ["id", 1828]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3957], ["g5_updatable_hub_amenity_id", 1828]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.266090"], ["updated_at", "2016-12-09 21:14:33.266090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.267426"], ["id", 1829]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3957], ["g5_updatable_hub_amenity_id", 1829]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3957]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.271054"], ["id", 3957]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:14:33.273804"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.275635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3958]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3958], ["g5_updatable_hub_amenity_id", 1828]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3958], ["g5_updatable_hub_amenity_id", 1829]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3958]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.284789"], ["id", 3958]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:14:33.287609"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.289412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3959]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3959]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:14:33.302368"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:14:33.303353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.305633"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.313937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3960]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3960]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:14:33.320792"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.322588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3961]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3961]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:14:33.328717"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.330562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3962]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.334356"], ["updated_at", "2016-12-09 21:14:33.334356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.335328"], ["id", 1830]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3962], ["g5_updatable_hub_amenity_id", 1830]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.337863"], ["updated_at", "2016-12-09 21:14:33.337863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.338905"], ["id", 1831]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3962], ["g5_updatable_hub_amenity_id", 1831]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3962]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.342211"], ["id", 3962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:14:33.344989"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.346777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3963]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3963], ["g5_updatable_hub_amenity_id", 1830]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3963], ["g5_updatable_hub_amenity_id", 1831]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3963]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.356133"], ["id", 3963]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:14:33.358903"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.360810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3964]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3964]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:14:33.376163"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:14:33.377337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.379650"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.381277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3965]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3965]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:14:33.387289"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.388939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3966]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3966]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:14:33.394706"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.396390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3967]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.400085"], ["updated_at", "2016-12-09 21:14:33.400085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.401313"], ["id", 1832]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3967], ["g5_updatable_hub_amenity_id", 1832]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.403663"], ["updated_at", "2016-12-09 21:14:33.403663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.404559"], ["id", 1833]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3967], ["g5_updatable_hub_amenity_id", 1833]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3967]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.407804"], ["id", 3967]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:14:33.410358"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.412285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3968]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3968], ["g5_updatable_hub_amenity_id", 1832]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3968], ["g5_updatable_hub_amenity_id", 1833]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3968]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.420251"], ["id", 3968]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:14:33.422565"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.424211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3969]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3969]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3967]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:14:33.436269"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:14:33.437291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.439523"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.441203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3970]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3970]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:14:33.447045"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.448645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3971]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3971]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:14:33.454912"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.456838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3972]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.461244"], ["updated_at", "2016-12-09 21:14:33.461244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.462339"], ["id", 1834]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3972], ["g5_updatable_hub_amenity_id", 1834]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.464970"], ["updated_at", "2016-12-09 21:14:33.464970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.465931"], ["id", 1835]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3972], ["g5_updatable_hub_amenity_id", 1835]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3972]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.475457"], ["id", 3972]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:14:33.478191"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.480096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3973]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3973], ["g5_updatable_hub_amenity_id", 1834]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3973], ["g5_updatable_hub_amenity_id", 1835]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3973]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.488526"], ["id", 3973]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:14:33.491130"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.492865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3974]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3974]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:14:33.503698"], ["id", 1652]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3974]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3974]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3973]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2052]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2053]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3973]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3972]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2050]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2051]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3972]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3971]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3971]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3970]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3970]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:14:33.520033"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:14:33.521054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.523349"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.525298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3975]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3975]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:14:33.532919"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.534871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3976]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3976]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:14:33.541701"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.543578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3977]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.547746"], ["updated_at", "2016-12-09 21:14:33.547746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.548764"], ["id", 1836]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3977], ["g5_updatable_hub_amenity_id", 1836]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.551625"], ["updated_at", "2016-12-09 21:14:33.551625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.552569"], ["id", 1837]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3977], ["g5_updatable_hub_amenity_id", 1837]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3977]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.556167"], ["id", 3977]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:14:33.559830"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.562897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3978]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3978], ["g5_updatable_hub_amenity_id", 1836]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3978], ["g5_updatable_hub_amenity_id", 1837]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3978]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.573625"], ["id", 3978]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:14:33.577603"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.579793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3979]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3979]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:14:33.592752"], ["id", 1653]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 21:14:33.599277"], ["id", 3975]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3975]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3975]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3979]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3979]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3978]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2056]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2057]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3978]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3977]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2054]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2055]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3977]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3976]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3976]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:33.635977"], ["updated_at", "2016-12-09 21:14:33.635977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.41ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:33.642913"], ["updated_at", "2016-12-09 21:14:33.642913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.27ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:14:33.680456"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:14:33.683759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.693368"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3982]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3982]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.701353"], ["updated_at", "2016-12-09 21:14:33.701353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.716726"], ["id", 1838]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3982], ["g5_updatable_hub_amenity_id", 1838]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.719989"], ["updated_at", "2016-12-09 21:14:33.719989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.720929"], ["id", 1839]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3982], ["g5_updatable_hub_amenity_id", 1839]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3982]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.724135"], ["id", 3982]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3982]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:14:33.728351"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:14:33.730467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.737073"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 3983]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3983]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.742998"], ["updated_at", "2016-12-09 21:14:33.742998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.744043"], ["id", 1840]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3983], ["g5_updatable_hub_amenity_id", 1840]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.746350"], ["updated_at", "2016-12-09 21:14:33.746350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.747240"], ["id", 1841]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3983], ["g5_updatable_hub_amenity_id", 1841]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3983]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.750277"], ["id", 3983]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:14:33.752645"], ["updated_at", "2016-12-09 21:14:33.752645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:33.753919"], ["updated_at", "2016-12-09 21:14:33.753919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1654]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3984]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.758675"], ["updated_at", "2016-12-09 21:14:33.758675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 21:14:33.770985"], ["updated_at", "2016-12-09 21:14:33.770985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.774711"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.776419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3987]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.780404"], ["updated_at", "2016-12-09 21:14:33.780404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.781413"], ["id", 1842]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3987], ["g5_updatable_hub_amenity_id", 1842]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.784186"], ["updated_at", "2016-12-09 21:14:33.784186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.785132"], ["id", 1843]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3987], ["g5_updatable_hub_amenity_id", 1843]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3987]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.790301"], ["id", 3987]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3985]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 3985]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.796946"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.798954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3988]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.802896"], ["updated_at", "2016-12-09 21:14:33.802896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.803843"], ["id", 1844]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3988], ["g5_updatable_hub_amenity_id", 1844]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.806396"], ["updated_at", "2016-12-09 21:14:33.806396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.807310"], ["id", 1845]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3988], ["g5_updatable_hub_amenity_id", 1845]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3988]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.810478"], ["id", 3988]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.814715"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.816454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3989]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.820128"], ["updated_at", "2016-12-09 21:14:33.820128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.821078"], ["id", 1846]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3989], ["g5_updatable_hub_amenity_id", 1846]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.823553"], ["updated_at", "2016-12-09 21:14:33.823553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.824467"], ["id", 1847]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3989], ["g5_updatable_hub_amenity_id", 1847]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3989]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.827626"], ["id", 3989]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.833654"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.835412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3990]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.838908"], ["updated_at", "2016-12-09 21:14:33.838908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.839999"], ["id", 1848]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3990], ["g5_updatable_hub_amenity_id", 1848]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.842374"], ["updated_at", "2016-12-09 21:14:33.842374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.843398"], ["id", 1849]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3990], ["g5_updatable_hub_amenity_id", 1849]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3990]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.846503"], ["id", 3990]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3990]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3990]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.852429"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.854146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3991]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.857765"], ["updated_at", "2016-12-09 21:14:33.857765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.858717"], ["id", 1850]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3991], ["g5_updatable_hub_amenity_id", 1850]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.861250"], ["updated_at", "2016-12-09 21:14:33.861250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.862315"], ["id", 1851]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3991], ["g5_updatable_hub_amenity_id", 1851]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3991]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.865925"], ["id", 3991]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.870974"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.872748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3992]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.876275"], ["updated_at", "2016-12-09 21:14:33.876275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.877224"], ["id", 1852]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3992], ["g5_updatable_hub_amenity_id", 1852]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.879932"], ["updated_at", "2016-12-09 21:14:33.879932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.880949"], ["id", 1853]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3992], ["g5_updatable_hub_amenity_id", 1853]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3992]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.884418"], ["id", 3992]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.890207"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.892079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3993]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.896240"], ["updated_at", "2016-12-09 21:14:33.896240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.897326"], ["id", 1854]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3993], ["g5_updatable_hub_amenity_id", 1854]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.899789"], ["updated_at", "2016-12-09 21:14:33.899789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.900986"], ["id", 1855]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3993], ["g5_updatable_hub_amenity_id", 1855]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3993]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.904280"], ["id", 3993]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.912883"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.914901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3994]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.918745"], ["updated_at", "2016-12-09 21:14:33.918745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.919765"], ["id", 1856]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3994], ["g5_updatable_hub_amenity_id", 1856]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.922286"], ["updated_at", "2016-12-09 21:14:33.922286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.923308"], ["id", 1857]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3994], ["g5_updatable_hub_amenity_id", 1857]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3994]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.926422"], ["id", 3994]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.931030"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.932656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3995]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.936279"], ["updated_at", "2016-12-09 21:14:33.936279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.937196"], ["id", 1858]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3995], ["g5_updatable_hub_amenity_id", 1858]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.939681"], ["updated_at", "2016-12-09 21:14:33.939681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.940560"], ["id", 1859]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3995], ["g5_updatable_hub_amenity_id", 1859]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3995]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.943815"], ["id", 3995]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.948520"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.950123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3996]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.953900"], ["updated_at", "2016-12-09 21:14:33.953900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.954818"], ["id", 1860]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3996], ["g5_updatable_hub_amenity_id", 1860]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.957288"], ["updated_at", "2016-12-09 21:14:33.957288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.958163"], ["id", 1861]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3996], ["g5_updatable_hub_amenity_id", 1861]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3996]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.961417"], ["id", 3996]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.966662"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.968522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3997]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.972075"], ["updated_at", "2016-12-09 21:14:33.972075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.973132"], ["id", 1862]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3997], ["g5_updatable_hub_amenity_id", 1862]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.975438"], ["updated_at", "2016-12-09 21:14:33.975438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.976355"], ["id", 1863]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3997], ["g5_updatable_hub_amenity_id", 1863]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3997]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.979506"], ["id", 3997]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:33.984253"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:33.985917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3998]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:33.989656"], ["updated_at", "2016-12-09 21:14:33.989656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:33.990599"], ["id", 1864]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3998], ["g5_updatable_hub_amenity_id", 1864]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:33.992893"], ["updated_at", "2016-12-09 21:14:33.992893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:33.993813"], ["id", 1865]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 3998], ["g5_updatable_hub_amenity_id", 1865]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 3998]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:33.997021"], ["id", 3998]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:14:33.999381"], ["updated_at", "2016-12-09 21:14:33.999381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.000835"], ["updated_at", "2016-12-09 21:14:34.000835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1655]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 3999]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.003811"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.005532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4000]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.009071"], ["updated_at", "2016-12-09 21:14:34.009071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.009988"], ["id", 1866]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4000], ["g5_updatable_hub_amenity_id", 1866]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.012687"], ["updated_at", "2016-12-09 21:14:34.012687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.013749"], ["id", 1867]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4000], ["g5_updatable_hub_amenity_id", 1867]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4000]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.017335"], ["id", 4000]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.022045"], ["updated_at", "2016-12-09 21:14:34.022045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.023646"], ["updated_at", "2016-12-09 21:14:34.023646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4001], ["g5_updatable_hub_amenity_id", 1868]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.026222"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4001]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4001]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.032671"], ["id", 1868]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4001], ["g5_updatable_hub_amenity_id", 1868]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.035179"], ["updated_at", "2016-12-09 21:14:34.035179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.036093"], ["id", 1869]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4001], ["g5_updatable_hub_amenity_id", 1869]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4001]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.039179"], ["id", 4001]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.042738"], ["updated_at", "2016-12-09 21:14:34.042738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.044185"], ["updated_at", "2016-12-09 21:14:34.044185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4002], ["g5_updatable_hub_amenity_id", 1870]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.046720"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4002]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4002]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.052789"], ["updated_at", "2016-12-09 21:14:34.052789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.053907"], ["id", 1871]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4002], ["g5_updatable_hub_amenity_id", 1871]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.056733"], ["updated_at", "2016-12-09 21:14:34.056733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.057733"], ["id", 1872]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4002], ["g5_updatable_hub_amenity_id", 1872]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4002]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.061058"], ["id", 4002]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.066389"], ["updated_at", "2016-12-09 21:14:34.066389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.068372"], ["updated_at", "2016-12-09 21:14:34.068372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4003], ["g5_updatable_hub_amenity_id", 1873]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.072010"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4003]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4003]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.078613"], ["updated_at", "2016-12-09 21:14:34.078613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.079775"], ["id", 1874]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4003], ["g5_updatable_hub_amenity_id", 1874]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.082396"], ["updated_at", "2016-12-09 21:14:34.082396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.083321"], ["id", 1875]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4003], ["g5_updatable_hub_amenity_id", 1875]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4003]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.086652"], ["id", 4003]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4003]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.092038"], ["updated_at", "2016-12-09 21:14:34.092038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.093480"], ["updated_at", "2016-12-09 21:14:34.093480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4004], ["g5_updatable_hub_amenity_id", 1876]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.096037"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4004]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4004]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.102348"], ["updated_at", "2016-12-09 21:14:34.102348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.103310"], ["id", 1877]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4004], ["g5_updatable_hub_amenity_id", 1877]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.109724"], ["updated_at", "2016-12-09 21:14:34.109724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.110860"], ["id", 1878]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4004], ["g5_updatable_hub_amenity_id", 1878]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4004]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.114285"], ["id", 4004]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:14:34.116964"], ["updated_at", "2016-12-09 21:14:34.116964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.118230"], ["updated_at", "2016-12-09 21:14:34.118230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1656]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4005]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.121085"], ["updated_at", "2016-12-09 21:14:34.121085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.122575"], ["updated_at", "2016-12-09 21:14:34.122575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4006], ["g5_updatable_hub_amenity_id", 1879]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.125088"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4006]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4006]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.130885"], ["updated_at", "2016-12-09 21:14:34.130885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.131816"], ["id", 1880]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4006], ["g5_updatable_hub_amenity_id", 1880]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.134417"], ["updated_at", "2016-12-09 21:14:34.134417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.135323"], ["id", 1881]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4006], ["g5_updatable_hub_amenity_id", 1881]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4006]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.138413"], ["id", 4006]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.142441"], ["updated_at", "2016-12-09 21:14:34.142441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.143848"], ["updated_at", "2016-12-09 21:14:34.143848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4007], ["g5_updatable_hub_amenity_id", 1882]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.146501"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4007]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4007]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.152447"], ["updated_at", "2016-12-09 21:14:34.152447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.153504"], ["id", 1883]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4007], ["g5_updatable_hub_amenity_id", 1883]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.155757"], ["updated_at", "2016-12-09 21:14:34.155757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.156779"], ["id", 1884]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4007], ["g5_updatable_hub_amenity_id", 1884]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4007]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.159858"], ["id", 4007]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.165240"], ["updated_at", "2016-12-09 21:14:34.165240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.166844"], ["updated_at", "2016-12-09 21:14:34.166844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4008], ["g5_updatable_hub_amenity_id", 1885]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.169728"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4008]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4008]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.175272"], ["updated_at", "2016-12-09 21:14:34.175272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.176204"], ["id", 1886]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4008], ["g5_updatable_hub_amenity_id", 1886]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.178901"], ["id", 1885]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4008], ["g5_updatable_hub_amenity_id", 1885]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4008]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.182009"], ["id", 4008]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.186949"], ["updated_at", "2016-12-09 21:14:34.186949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.188368"], ["updated_at", "2016-12-09 21:14:34.188368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4009], ["g5_updatable_hub_amenity_id", 1887]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.190865"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4009]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4009]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.196535"], ["updated_at", "2016-12-09 21:14:34.196535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.197470"], ["id", 1888]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4009], ["g5_updatable_hub_amenity_id", 1888]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.199962"], ["updated_at", "2016-12-09 21:14:34.199962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.200940"], ["id", 1889]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4009], ["g5_updatable_hub_amenity_id", 1889]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4009]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.204104"], ["id", 4009]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:14:34.206663"], ["updated_at", "2016-12-09 21:14:34.206663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.207867"], ["updated_at", "2016-12-09 21:14:34.207867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1657]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4010]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.210933"], ["updated_at", "2016-12-09 21:14:34.210933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.213083"], ["updated_at", "2016-12-09 21:14:34.213083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4011], ["g5_updatable_hub_amenity_id", 1890]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.216687"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4011]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4011]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.225272"], ["updated_at", "2016-12-09 21:14:34.225272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.227303"], ["id", 1891]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4011], ["g5_updatable_hub_amenity_id", 1891]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.231378"], ["updated_at", "2016-12-09 21:14:34.231378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.232629"], ["id", 1892]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4011], ["g5_updatable_hub_amenity_id", 1892]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4011]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.237138"], ["id", 4011]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.244983"], ["updated_at", "2016-12-09 21:14:34.244983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.247813"], ["updated_at", "2016-12-09 21:14:34.247813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4012], ["g5_updatable_hub_amenity_id", 1893]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.254766"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4012]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4012]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.263050"], ["updated_at", "2016-12-09 21:14:34.263050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.264205"], ["id", 1894]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4012], ["g5_updatable_hub_amenity_id", 1894]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.267672"], ["updated_at", "2016-12-09 21:14:34.267672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.268835"], ["id", 1895]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4012], ["g5_updatable_hub_amenity_id", 1895]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4012]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.272767"], ["id", 4012]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.279292"], ["updated_at", "2016-12-09 21:14:34.279292"]]  (1.6ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.284118"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.286199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4014]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.290820"], ["updated_at", "2016-12-09 21:14:34.290820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.292076"], ["id", 1896]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4014], ["g5_updatable_hub_amenity_id", 1896]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.295044"], ["updated_at", "2016-12-09 21:14:34.295044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.296182"], ["id", 1897]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4014], ["g5_updatable_hub_amenity_id", 1897]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4014]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.300390"], ["id", 4014]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4013]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4013]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.306933"], ["updated_at", "2016-12-09 21:14:34.306933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.309498"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4015]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4015]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.316448"], ["updated_at", "2016-12-09 21:14:34.316448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.317661"], ["id", 1898]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4015], ["g5_updatable_hub_amenity_id", 1898]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.320068"], ["updated_at", "2016-12-09 21:14:34.320068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.321000"], ["id", 1899]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (11.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4015], ["g5_updatable_hub_amenity_id", 1899]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4015]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.336370"], ["id", 4015]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.340251"], ["updated_at", "2016-12-09 21:14:34.340251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.341994"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4016]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4016]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.352320"], ["updated_at", "2016-12-09 21:14:34.352320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.353319"], ["id", 1900]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4016], ["g5_updatable_hub_amenity_id", 1900]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.355707"], ["updated_at", "2016-12-09 21:14:34.355707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.356773"], ["id", 1901]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4016], ["g5_updatable_hub_amenity_id", 1901]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4016]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.359851"], ["id", 4016]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.363689"], ["updated_at", "2016-12-09 21:14:34.363689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.365670"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4017]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4017]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4017]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.381361"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.383060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4018]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.386770"], ["updated_at", "2016-12-09 21:14:34.386770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.387783"], ["id", 1902]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4018], ["g5_updatable_hub_amenity_id", 1902]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.390346"], ["updated_at", "2016-12-09 21:14:34.390346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.391256"], ["id", 1903]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4018], ["g5_updatable_hub_amenity_id", 1903]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4018]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.394441"], ["id", 4018]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.401967"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.403821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4019]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.407321"], ["updated_at", "2016-12-09 21:14:34.407321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.408284"], ["id", 1904]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4019], ["g5_updatable_hub_amenity_id", 1904]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.410804"], ["updated_at", "2016-12-09 21:14:34.410804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.411905"], ["id", 1905]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4019], ["g5_updatable_hub_amenity_id", 1905]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4019]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.415837"], ["id", 4019]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.454897"], ["updated_at", "2016-12-09 21:14:34.454897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.457827"], ["updated_at", "2016-12-09 21:14:34.457827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.459032"], ["updated_at", "2016-12-09 21:14:34.459032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.462684"], ["updated_at", "2016-12-09 21:14:34.462684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.465302"], ["updated_at", "2016-12-09 21:14:34.465302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.466683"], ["updated_at", "2016-12-09 21:14:34.466683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.469772"], ["updated_at", "2016-12-09 21:14:34.469772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.471792"], ["updated_at", "2016-12-09 21:14:34.471792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.472970"], ["updated_at", "2016-12-09 21:14:34.472970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.476057"], ["updated_at", "2016-12-09 21:14:34.476057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.478214"], ["updated_at", "2016-12-09 21:14:34.478214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.479455"], ["updated_at", "2016-12-09 21:14:34.479455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.482656"], ["updated_at", "2016-12-09 21:14:34.482656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.485005"], ["updated_at", "2016-12-09 21:14:34.485005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.486283"], ["updated_at", "2016-12-09 21:14:34.486283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.488672"], ["updated_at", "2016-12-09 21:14:34.488672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.490680"], ["updated_at", "2016-12-09 21:14:34.490680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.491811"], ["updated_at", "2016-12-09 21:14:34.491811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:14:34.493716"], ["updated_at", "2016-12-09 21:14:34.493716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.495694"], ["updated_at", "2016-12-09 21:14:34.495694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.497635"], ["updated_at", "2016-12-09 21:14:34.497635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.498733"], ["updated_at", "2016-12-09 21:14:34.498733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.501378"], ["updated_at", "2016-12-09 21:14:34.501378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.503499"], ["updated_at", "2016-12-09 21:14:34.503499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.504611"], ["updated_at", "2016-12-09 21:14:34.504611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.507579"], ["updated_at", "2016-12-09 21:14:34.507579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.509546"], ["updated_at", "2016-12-09 21:14:34.509546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.510961"], ["updated_at", "2016-12-09 21:14:34.510961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.515295"], ["updated_at", "2016-12-09 21:14:34.515295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.517695"], ["updated_at", "2016-12-09 21:14:34.517695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.518855"], ["updated_at", "2016-12-09 21:14:34.518855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.521722"], ["updated_at", "2016-12-09 21:14:34.521722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.523700"], ["updated_at", "2016-12-09 21:14:34.523700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.524846"], ["updated_at", "2016-12-09 21:14:34.524846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.528118"], ["updated_at", "2016-12-09 21:14:34.528118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.530205"], ["updated_at", "2016-12-09 21:14:34.530205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.531289"], ["updated_at", "2016-12-09 21:14:34.531289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:14:34.534217"], ["updated_at", "2016-12-09 21:14:34.534217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.536191"], ["updated_at", "2016-12-09 21:14:34.536191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:14:34.537315"], ["updated_at", "2016-12-09 21:14:34.537315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.540384"], ["updated_at", "2016-12-09 21:14:34.540384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.542307"], ["updated_at", "2016-12-09 21:14:34.542307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.544124"], ["updated_at", "2016-12-09 21:14:34.544124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.546325"], ["updated_at", "2016-12-09 21:14:34.546325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.547694"], ["updated_at", "2016-12-09 21:14:34.547694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.550666"], ["updated_at", "2016-12-09 21:14:34.550666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.552033"], ["updated_at", "2016-12-09 21:14:34.552033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.555630"], ["updated_at", "2016-12-09 21:14:34.555630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.557094"], ["updated_at", "2016-12-09 21:14:34.557094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.560622"], ["updated_at", "2016-12-09 21:14:34.560622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.562268"], ["updated_at", "2016-12-09 21:14:34.562268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.566246"], ["updated_at", "2016-12-09 21:14:34.566246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.567923"], ["updated_at", "2016-12-09 21:14:34.567923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.572483"], ["updated_at", "2016-12-09 21:14:34.572483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4060]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:14:34.579164"], ["updated_at", "2016-12-09 21:14:34.579164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.584952"], ["updated_at", "2016-12-09 21:14:34.584952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:14:34.587940"], ["updated_at", "2016-12-09 21:14:34.587940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.589189"], ["updated_at", "2016-12-09 21:14:34.589189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.597261"], ["updated_at", "2016-12-09 21:14:34.597261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.598549"], ["updated_at", "2016-12-09 21:14:34.598549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.599477"], ["updated_at", "2016-12-09 21:14:34.599477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4063], ["g5_updatable_hub_amenity_id", 1906]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4063], ["g5_updatable_hub_amenity_id", 1907]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4063]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-11|amenity-12|"], ["updated_at", "2016-12-09 21:14:34.603667"], ["id", 4063]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4063]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4063]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4063]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4063]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4063]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.609474"], ["updated_at", "2016-12-09 21:14:34.609474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.611316"], ["updated_at", "2016-12-09 21:14:34.611316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.612436"], ["updated_at", "2016-12-09 21:14:34.612436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4064], ["g5_updatable_hub_amenity_id", 1908]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4064], ["g5_updatable_hub_amenity_id", 1909]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4064]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-13|amenity-14|"], ["updated_at", "2016-12-09 21:14:34.616882"], ["id", 4064]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4064]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4064]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.623305"], ["updated_at", "2016-12-09 21:14:34.623305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:14:34.624388"], ["updated_at", "2016-12-09 21:14:34.624388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.625457"], ["updated_at", "2016-12-09 21:14:34.625457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.626360"], ["updated_at", "2016-12-09 21:14:34.626360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.627225"], ["updated_at", "2016-12-09 21:14:34.627225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4065], ["g5_updatable_hub_amenity_id", 1910]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4065], ["g5_updatable_hub_amenity_id", 1911]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.635083"], ["updated_at", "2016-12-09 21:14:34.635083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:14:34.636198"], ["updated_at", "2016-12-09 21:14:34.636198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.637241"], ["updated_at", "2016-12-09 21:14:34.637241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.638128"], ["updated_at", "2016-12-09 21:14:34.638128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-09 21:14:34.639163"], ["updated_at", "2016-12-09 21:14:34.639163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4066], ["g5_updatable_hub_amenity_id", 1913]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4066], ["g5_updatable_hub_amenity_id", 1914]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.646082"], ["updated_at", "2016-12-09 21:14:34.646082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:14:34.647361"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1675]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.650702"], ["updated_at", "2016-12-09 21:14:34.650702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:14:34.651801"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1676]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.654572"], ["updated_at", "2016-12-09 21:14:34.654572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:14:34.655822"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1677]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:14:34.659255"], ["updated_at", "2016-12-09 21:14:34.659255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:14:34.660493"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1678]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:14:34.664314"], ["updated_at", "2016-12-09 21:14:34.664314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:14:34.666181"], ["id", 1679]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1679]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:14:34.670571"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:14:34.671457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:14:34.673645"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.675593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4067]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4067]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:14:34.681925"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.683797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4068]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4068]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:14:34.689987"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.691820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4069]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:14:34.695601"], ["updated_at", "2016-12-09 21:14:34.695601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:14:34.696559"], ["id", 1916]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4069], ["g5_updatable_hub_amenity_id", 1916]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:14:34.698991"], ["updated_at", "2016-12-09 21:14:34.698991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:14:34.700176"], ["id", 1917]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4069], ["g5_updatable_hub_amenity_id", 1917]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4069]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.703315"], ["id", 4069]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:14:34.706021"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.707891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4070]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4070], ["g5_updatable_hub_amenity_id", 1916]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4070], ["g5_updatable_hub_amenity_id", 1917]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4070]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:14:34.716216"], ["id", 4070]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:14:34.718919"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:14:34.720673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4071]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4071]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:14:34.733006"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:14:34.733505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:14:34.735963"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:14:34.736284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:14:34.738692"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:14:34.739037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:14:34.741126"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:14:34.741427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:14:34.744559"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:14:34.744864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:14:34.747414"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:14:34.747747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:14:34.750437"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:14:34.750787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:14:34.753804"], ["updated_at", "2016-12-09 21:14:34.753804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1688]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:14:34.765911"], ["updated_at", "2016-12-09 21:14:34.765911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:14:34.767578"], ["updated_at", "2016-12-09 21:14:34.767578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:15:17.886547"], ["updated_at", "2016-12-09 21:15:17.886547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:15:17.895401"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4073]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4073]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4073]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:15:28.045064"], ["updated_at", "2016-12-09 21:15:28.045064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:15:42.088539"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4074]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4074]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4074]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:35.794749"], ["updated_at", "2016-12-09 21:17:35.794749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 21:17:35.801654"], ["updated_at", "2016-12-09 21:17:35.801654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:35.808324"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:35.810212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4077]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:35.827465"], ["updated_at", "2016-12-09 21:17:35.827465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:35.830424"], ["id", 1918]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4077], ["g5_updatable_hub_amenity_id", 1918]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:35.839940"], ["updated_at", "2016-12-09 21:17:35.839940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:35.840986"], ["id", 1919]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4077], ["g5_updatable_hub_amenity_id", 1919]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4077]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:35.848727"], ["id", 4077]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4075]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4075]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:17:35.856400"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:17:35.858705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:35.867349"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4078]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4078]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:35.874149"], ["updated_at", "2016-12-09 21:17:35.874149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:35.875354"], ["id", 1920]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4078], ["g5_updatable_hub_amenity_id", 1920]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:35.878145"], ["updated_at", "2016-12-09 21:17:35.878145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:35.879124"], ["id", 1921]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4078], ["g5_updatable_hub_amenity_id", 1921]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4078]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:35.882671"], ["id", 4078]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4078]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:17:35.887755"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:17:35.890070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:35.897092"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4079]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4079]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:35.903623"], ["updated_at", "2016-12-09 21:17:35.903623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:35.904650"], ["id", 1922]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4079], ["g5_updatable_hub_amenity_id", 1922]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:35.907238"], ["updated_at", "2016-12-09 21:17:35.907238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:35.908249"], ["id", 1923]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4079], ["g5_updatable_hub_amenity_id", 1923]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4079]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:35.911853"], ["id", 4079]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:17:35.917827"], ["updated_at", "2016-12-09 21:17:35.917827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:35.919707"], ["updated_at", "2016-12-09 21:17:35.919707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1690]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4080]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:35.923302"], ["updated_at", "2016-12-09 21:17:35.923302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:35.925062"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4081]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4081]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:35.931751"], ["updated_at", "2016-12-09 21:17:35.931751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:35.933016"], ["id", 1924]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4081], ["g5_updatable_hub_amenity_id", 1924]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:35.935512"], ["updated_at", "2016-12-09 21:17:35.935512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:35.936719"], ["id", 1925]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4081], ["g5_updatable_hub_amenity_id", 1925]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4081]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:35.940096"], ["id", 4081]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:35.944969"], ["updated_at", "2016-12-09 21:17:35.944969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:35.946827"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4082]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4082]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:35.953255"], ["updated_at", "2016-12-09 21:17:35.953255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:35.954274"], ["id", 1926]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4082], ["g5_updatable_hub_amenity_id", 1926]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:35.956744"], ["updated_at", "2016-12-09 21:17:35.956744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:35.957690"], ["id", 1927]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4082], ["g5_updatable_hub_amenity_id", 1927]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4082]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:35.961219"], ["id", 4082]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:35.964923"], ["updated_at", "2016-12-09 21:17:35.964923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:17:35.966575"], ["updated_at", "2016-12-09 21:17:35.966575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4083], ["g5_updatable_hub_amenity_id", 1928]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:35.969468"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4083]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4083]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:35.976645"], ["id", 1928]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4083], ["g5_updatable_hub_amenity_id", 1928]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:35.979329"], ["updated_at", "2016-12-09 21:17:35.979329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:35.980301"], ["id", 1929]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4083], ["g5_updatable_hub_amenity_id", 1929]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4083]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:35.983662"], ["id", 4083]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:35.987624"], ["updated_at", "2016-12-09 21:17:35.987624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:17:35.993776"], ["updated_at", "2016-12-09 21:17:35.993776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4084], ["g5_updatable_hub_amenity_id", 1930]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:35.996343"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4084]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4084]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.002853"], ["updated_at", "2016-12-09 21:17:36.002853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.003837"], ["id", 1931]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4084], ["g5_updatable_hub_amenity_id", 1931]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.006229"], ["updated_at", "2016-12-09 21:17:36.006229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.007143"], ["id", 1932]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4084], ["g5_updatable_hub_amenity_id", 1932]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4084]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.010394"], ["id", 4084]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4084]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.015519"], ["updated_at", "2016-12-09 21:17:36.015519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:17:36.017188"], ["updated_at", "2016-12-09 21:17:36.017188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4085], ["g5_updatable_hub_amenity_id", 1933]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.020234"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4085]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4085]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.026393"], ["updated_at", "2016-12-09 21:17:36.026393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.027451"], ["id", 1934]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4085], ["g5_updatable_hub_amenity_id", 1934]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.029771"], ["updated_at", "2016-12-09 21:17:36.029771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.030702"], ["id", 1935]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4085], ["g5_updatable_hub_amenity_id", 1935]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4085]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.033991"], ["id", 4085]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.039186"], ["updated_at", "2016-12-09 21:17:36.039186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:17:36.041092"], ["updated_at", "2016-12-09 21:17:36.041092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4086], ["g5_updatable_hub_amenity_id", 1936]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.044550"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4086]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4086]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.050703"], ["updated_at", "2016-12-09 21:17:36.050703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.051697"], ["id", 1937]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4086], ["g5_updatable_hub_amenity_id", 1937]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.054181"], ["updated_at", "2016-12-09 21:17:36.054181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.055089"], ["id", 1938]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4086], ["g5_updatable_hub_amenity_id", 1938]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4086]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.058221"], ["id", 4086]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:17:36.060628"], ["updated_at", "2016-12-09 21:17:36.060628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:36.062058"], ["updated_at", "2016-12-09 21:17:36.062058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1691]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4087]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.065175"], ["updated_at", "2016-12-09 21:17:36.065175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 21:17:36.066655"], ["updated_at", "2016-12-09 21:17:36.066655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4088], ["g5_updatable_hub_amenity_id", 1939]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.069948"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4088]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4088]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.076028"], ["updated_at", "2016-12-09 21:17:36.076028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.077151"], ["id", 1940]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4088], ["g5_updatable_hub_amenity_id", 1940]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.079543"], ["updated_at", "2016-12-09 21:17:36.079543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.080447"], ["id", 1941]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4088], ["g5_updatable_hub_amenity_id", 1941]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4088]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.083816"], ["id", 4088]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.092382"], ["updated_at", "2016-12-09 21:17:36.092382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 21:17:36.093939"], ["updated_at", "2016-12-09 21:17:36.093939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4089], ["g5_updatable_hub_amenity_id", 1942]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.096401"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4089]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4089]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.102090"], ["updated_at", "2016-12-09 21:17:36.102090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.103234"], ["id", 1943]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4089], ["g5_updatable_hub_amenity_id", 1943]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.105461"], ["updated_at", "2016-12-09 21:17:36.105461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.106380"], ["id", 1944]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4089], ["g5_updatable_hub_amenity_id", 1944]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4089]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.109646"], ["id", 4089]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.114336"], ["updated_at", "2016-12-09 21:17:36.114336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 21:17:36.115767"], ["updated_at", "2016-12-09 21:17:36.115767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4090], ["g5_updatable_hub_amenity_id", 1945]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.118297"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4090]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4090]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.124852"], ["updated_at", "2016-12-09 21:17:36.124852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.125940"], ["id", 1946]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4090], ["g5_updatable_hub_amenity_id", 1946]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.128744"], ["id", 1945]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4090], ["g5_updatable_hub_amenity_id", 1945]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4090]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.131750"], ["id", 4090]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.137140"], ["updated_at", "2016-12-09 21:17:36.137140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 21:17:36.138607"], ["updated_at", "2016-12-09 21:17:36.138607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4091], ["g5_updatable_hub_amenity_id", 1947]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.141001"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4091]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4091]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.146592"], ["updated_at", "2016-12-09 21:17:36.146592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.147539"], ["id", 1948]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4091], ["g5_updatable_hub_amenity_id", 1948]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.149896"], ["updated_at", "2016-12-09 21:17:36.149896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.151012"], ["id", 1949]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4091], ["g5_updatable_hub_amenity_id", 1949]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4091]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.154322"], ["id", 4091]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:17:36.156890"], ["updated_at", "2016-12-09 21:17:36.156890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:36.158188"], ["updated_at", "2016-12-09 21:17:36.158188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1692]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4092]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.161128"], ["updated_at", "2016-12-09 21:17:36.161128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 21:17:36.162466"], ["updated_at", "2016-12-09 21:17:36.162466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4093], ["g5_updatable_hub_amenity_id", 1950]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.164908"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4093]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4093]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.171164"], ["updated_at", "2016-12-09 21:17:36.171164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.172142"], ["id", 1951]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4093], ["g5_updatable_hub_amenity_id", 1951]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.174495"], ["updated_at", "2016-12-09 21:17:36.174495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.175570"], ["id", 1952]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4093], ["g5_updatable_hub_amenity_id", 1952]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4093]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.178989"], ["id", 4093]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.183878"], ["updated_at", "2016-12-09 21:17:36.183878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 21:17:36.185293"], ["updated_at", "2016-12-09 21:17:36.185293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4094], ["g5_updatable_hub_amenity_id", 1953]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.187901"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4094]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4094]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.193841"], ["updated_at", "2016-12-09 21:17:36.193841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.194838"], ["id", 1954]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4094], ["g5_updatable_hub_amenity_id", 1954]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.197177"], ["updated_at", "2016-12-09 21:17:36.197177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.198105"], ["id", 1955]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4094], ["g5_updatable_hub_amenity_id", 1955]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4094]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.201226"], ["id", 4094]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.205901"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.207482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4095]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.215995"], ["updated_at", "2016-12-09 21:17:36.215995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.217076"], ["id", 1956]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4095], ["g5_updatable_hub_amenity_id", 1956]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.220324"], ["updated_at", "2016-12-09 21:17:36.220324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.221580"], ["id", 1957]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4095], ["g5_updatable_hub_amenity_id", 1957]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4095]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.226114"], ["id", 4095]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.231321"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.233124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4096]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.237298"], ["updated_at", "2016-12-09 21:17:36.237298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.238417"], ["id", 1958]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4096], ["g5_updatable_hub_amenity_id", 1958]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.240904"], ["updated_at", "2016-12-09 21:17:36.240904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.241796"], ["id", 1959]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4096], ["g5_updatable_hub_amenity_id", 1959]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4096]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.245456"], ["id", 4096]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4096]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4096]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.251497"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.253418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4097]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.257028"], ["updated_at", "2016-12-09 21:17:36.257028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.257979"], ["id", 1960]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4097], ["g5_updatable_hub_amenity_id", 1960]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.260770"], ["updated_at", "2016-12-09 21:17:36.260770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.261903"], ["id", 1961]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4097], ["g5_updatable_hub_amenity_id", 1961]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4097]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.265211"], ["id", 4097]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.271348"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.273050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4098]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.276962"], ["updated_at", "2016-12-09 21:17:36.276962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.278024"], ["id", 1962]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4098], ["g5_updatable_hub_amenity_id", 1962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.280321"], ["updated_at", "2016-12-09 21:17:36.280321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.281217"], ["id", 1963]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4098], ["g5_updatable_hub_amenity_id", 1963]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4098]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.284487"], ["id", 4098]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.288985"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.290801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4099]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.294404"], ["updated_at", "2016-12-09 21:17:36.294404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.295350"], ["id", 1964]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4099], ["g5_updatable_hub_amenity_id", 1964]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.297719"], ["updated_at", "2016-12-09 21:17:36.297719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.298629"], ["id", 1965]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4099], ["g5_updatable_hub_amenity_id", 1965]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4099]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.301865"], ["id", 4099]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:17:36.304284"], ["updated_at", "2016-12-09 21:17:36.304284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:36.305526"], ["updated_at", "2016-12-09 21:17:36.305526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1693]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4100]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.308465"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.310265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4101]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.313883"], ["updated_at", "2016-12-09 21:17:36.313883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.314802"], ["id", 1966]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4101], ["g5_updatable_hub_amenity_id", 1966]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.317324"], ["updated_at", "2016-12-09 21:17:36.317324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.318319"], ["id", 1967]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4101], ["g5_updatable_hub_amenity_id", 1967]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4101]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.321666"], ["id", 4101]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.326747"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.328601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4102]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.332599"], ["updated_at", "2016-12-09 21:17:36.332599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.333841"], ["id", 1968]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4102], ["g5_updatable_hub_amenity_id", 1968]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.336521"], ["updated_at", "2016-12-09 21:17:36.336521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.337449"], ["id", 1969]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4102], ["g5_updatable_hub_amenity_id", 1969]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4102]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.340513"], ["id", 4102]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.344955"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.346652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4103]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.350219"], ["updated_at", "2016-12-09 21:17:36.350219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.351136"], ["id", 1970]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4103], ["g5_updatable_hub_amenity_id", 1970]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.353791"], ["updated_at", "2016-12-09 21:17:36.353791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.354834"], ["id", 1971]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4103], ["g5_updatable_hub_amenity_id", 1971]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4103]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.358005"], ["id", 4103]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.362655"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.364352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4104]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.368420"], ["updated_at", "2016-12-09 21:17:36.368420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.369594"], ["id", 1972]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4104], ["g5_updatable_hub_amenity_id", 1972]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.372102"], ["updated_at", "2016-12-09 21:17:36.372102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.373023"], ["id", 1973]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4104], ["g5_updatable_hub_amenity_id", 1973]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4104]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.376377"], ["id", 4104]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.381392"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.383102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4105]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.386870"], ["updated_at", "2016-12-09 21:17:36.386870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.387823"], ["id", 1974]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4105], ["g5_updatable_hub_amenity_id", 1974]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.390221"], ["updated_at", "2016-12-09 21:17:36.390221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.391167"], ["id", 1975]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4105], ["g5_updatable_hub_amenity_id", 1975]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4105]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.394489"], ["id", 4105]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.399357"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.401258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4106]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.405605"], ["updated_at", "2016-12-09 21:17:36.405605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.407348"], ["id", 1976]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4106], ["g5_updatable_hub_amenity_id", 1976]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.410132"], ["updated_at", "2016-12-09 21:17:36.410132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.411064"], ["id", 1977]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4106], ["g5_updatable_hub_amenity_id", 1977]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4106]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.414378"], ["id", 4106]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.419479"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.421151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4107]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.428201"], ["updated_at", "2016-12-09 21:17:36.428201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.429235"], ["id", 1978]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4107], ["g5_updatable_hub_amenity_id", 1978]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.431563"], ["updated_at", "2016-12-09 21:17:36.431563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.432465"], ["id", 1979]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4107], ["g5_updatable_hub_amenity_id", 1979]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4107]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.435736"], ["id", 4107]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.440735"], ["updated_at", "2016-12-09 21:17:36.440735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.442249"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.444104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4109]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.447548"], ["updated_at", "2016-12-09 21:17:36.447548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.448472"], ["id", 1980]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4109], ["g5_updatable_hub_amenity_id", 1980]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.450894"], ["updated_at", "2016-12-09 21:17:36.450894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.451811"], ["id", 1981]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4109], ["g5_updatable_hub_amenity_id", 1981]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4109]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.455183"], ["id", 4109]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4108]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4108]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.461405"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.463395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4110]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.467145"], ["updated_at", "2016-12-09 21:17:36.467145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.468257"], ["id", 1982]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4110], ["g5_updatable_hub_amenity_id", 1982]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.470900"], ["updated_at", "2016-12-09 21:17:36.470900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.471845"], ["id", 1983]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4110], ["g5_updatable_hub_amenity_id", 1983]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4110]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.474969"], ["id", 4110]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:36.481420"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:36.483378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4111]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:36.488282"], ["updated_at", "2016-12-09 21:17:36.488282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:36.489341"], ["id", 1984]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4111], ["g5_updatable_hub_amenity_id", 1984]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:36.491782"], ["updated_at", "2016-12-09 21:17:36.491782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:36.492774"], ["id", 1985]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4111], ["g5_updatable_hub_amenity_id", 1985]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4111]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:36.495872"], ["id", 4111]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.363640"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.367860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4112]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.386921"], ["updated_at", "2016-12-09 21:17:42.386921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.389366"], ["id", 1986]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4112], ["g5_updatable_hub_amenity_id", 1986]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.398971"], ["updated_at", "2016-12-09 21:17:42.398971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.400102"], ["id", 1987]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4112], ["g5_updatable_hub_amenity_id", 1987]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4112]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.408322"], ["id", 4112]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:17:42.414221"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:17:42.416836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.425182"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4113]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4113]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.432290"], ["updated_at", "2016-12-09 21:17:42.432290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.433488"], ["id", 1988]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4113], ["g5_updatable_hub_amenity_id", 1988]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.436634"], ["updated_at", "2016-12-09 21:17:42.436634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.437824"], ["id", 1989]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4113], ["g5_updatable_hub_amenity_id", 1989]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4113]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.441646"], ["id", 4113]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4113]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:17:42.446407"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:17:42.448700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.456068"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4114]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4114]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.462784"], ["updated_at", "2016-12-09 21:17:42.462784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.464039"], ["id", 1990]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4114], ["g5_updatable_hub_amenity_id", 1990]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.466775"], ["updated_at", "2016-12-09 21:17:42.466775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.467883"], ["id", 1991]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4114], ["g5_updatable_hub_amenity_id", 1991]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4114]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.472256"], ["id", 4114]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:17:42.478334"], ["updated_at", "2016-12-09 21:17:42.478334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:42.480370"], ["updated_at", "2016-12-09 21:17:42.480370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1694]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4115]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.484320"], ["updated_at", "2016-12-09 21:17:42.484320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:17:42.486477"], ["updated_at", "2016-12-09 21:17:42.486477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4116], ["g5_updatable_hub_amenity_id", 1992]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.489937"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4116]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4116]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.496862"], ["id", 1992]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4116], ["g5_updatable_hub_amenity_id", 1992]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.499480"], ["updated_at", "2016-12-09 21:17:42.499480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.500507"], ["id", 1993]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4116], ["g5_updatable_hub_amenity_id", 1993]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4116]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.504289"], ["id", 4116]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.509482"], ["updated_at", "2016-12-09 21:17:42.509482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:17:42.511256"], ["updated_at", "2016-12-09 21:17:42.511256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4117], ["g5_updatable_hub_amenity_id", 1994]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.514298"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4117]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4117]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.521835"], ["updated_at", "2016-12-09 21:17:42.521835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.523441"], ["id", 1995]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4117], ["g5_updatable_hub_amenity_id", 1995]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.526545"], ["updated_at", "2016-12-09 21:17:42.526545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.527672"], ["id", 1996]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4117], ["g5_updatable_hub_amenity_id", 1996]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4117]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.531726"], ["id", 4117]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4117]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.537684"], ["updated_at", "2016-12-09 21:17:42.537684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:17:42.539491"], ["updated_at", "2016-12-09 21:17:42.539491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4118], ["g5_updatable_hub_amenity_id", 1997]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.542560"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4118]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4118]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.549952"], ["updated_at", "2016-12-09 21:17:42.549952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.551072"], ["id", 1998]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4118], ["g5_updatable_hub_amenity_id", 1998]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.554134"], ["updated_at", "2016-12-09 21:17:42.554134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.555286"], ["id", 1999]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4118], ["g5_updatable_hub_amenity_id", 1999]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4118]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.558928"], ["id", 4118]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.563485"], ["updated_at", "2016-12-09 21:17:42.563485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:17:42.565203"], ["updated_at", "2016-12-09 21:17:42.565203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4119], ["g5_updatable_hub_amenity_id", 2000]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.568106"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4119]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4119]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.575319"], ["updated_at", "2016-12-09 21:17:42.575319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.576392"], ["id", 2001]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4119], ["g5_updatable_hub_amenity_id", 2001]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.579107"], ["updated_at", "2016-12-09 21:17:42.579107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.580141"], ["id", 2002]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4119], ["g5_updatable_hub_amenity_id", 2002]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4119]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.589783"], ["id", 4119]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.598629"], ["updated_at", "2016-12-09 21:17:42.598629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 21:17:42.600399"], ["updated_at", "2016-12-09 21:17:42.600399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4120], ["g5_updatable_hub_amenity_id", 2003]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.603517"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4120]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4120]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.610149"], ["updated_at", "2016-12-09 21:17:42.610149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.611331"], ["id", 2004]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4120], ["g5_updatable_hub_amenity_id", 2004]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.614217"], ["updated_at", "2016-12-09 21:17:42.614217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.615283"], ["id", 2005]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4120], ["g5_updatable_hub_amenity_id", 2005]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4120]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.619070"], ["id", 4120]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.624589"], ["updated_at", "2016-12-09 21:17:42.624589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 21:17:42.626216"], ["updated_at", "2016-12-09 21:17:42.626216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4121], ["g5_updatable_hub_amenity_id", 2006]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.629251"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4121]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4121]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.635819"], ["updated_at", "2016-12-09 21:17:42.635819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.636978"], ["id", 2007]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4121], ["g5_updatable_hub_amenity_id", 2007]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.639817"], ["updated_at", "2016-12-09 21:17:42.639817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.640909"], ["id", 2008]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4121], ["g5_updatable_hub_amenity_id", 2008]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4121]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.644458"], ["id", 4121]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:17:42.647259"], ["updated_at", "2016-12-09 21:17:42.647259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:42.648724"], ["updated_at", "2016-12-09 21:17:42.648724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1695]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4122]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.651995"], ["updated_at", "2016-12-09 21:17:42.651995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 21:17:42.653754"], ["updated_at", "2016-12-09 21:17:42.653754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4123], ["g5_updatable_hub_amenity_id", 2009]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.656556"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4123]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4123]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.662742"], ["updated_at", "2016-12-09 21:17:42.662742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.663818"], ["id", 2010]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4123], ["g5_updatable_hub_amenity_id", 2010]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.666589"], ["id", 2009]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4123], ["g5_updatable_hub_amenity_id", 2009]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4123]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.670466"], ["id", 4123]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.675656"], ["updated_at", "2016-12-09 21:17:42.675656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 21:17:42.677388"], ["updated_at", "2016-12-09 21:17:42.677388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4124], ["g5_updatable_hub_amenity_id", 2011]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.680487"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4124]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4124]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.686572"], ["updated_at", "2016-12-09 21:17:42.686572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.687845"], ["id", 2012]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4124], ["g5_updatable_hub_amenity_id", 2012]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.690459"], ["updated_at", "2016-12-09 21:17:42.690459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.691536"], ["id", 2013]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4124], ["g5_updatable_hub_amenity_id", 2013]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4124]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.694978"], ["id", 4124]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:17:42.697717"], ["updated_at", "2016-12-09 21:17:42.697717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:42.699170"], ["updated_at", "2016-12-09 21:17:42.699170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1696]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4125]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.702364"], ["updated_at", "2016-12-09 21:17:42.702364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 21:17:42.704563"], ["updated_at", "2016-12-09 21:17:42.704563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4126], ["g5_updatable_hub_amenity_id", 2014]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.708417"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4126]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4126]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.714757"], ["updated_at", "2016-12-09 21:17:42.714757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.715889"], ["id", 2015]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4126], ["g5_updatable_hub_amenity_id", 2015]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.718630"], ["updated_at", "2016-12-09 21:17:42.718630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.719728"], ["id", 2016]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4126], ["g5_updatable_hub_amenity_id", 2016]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4126]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.723920"], ["id", 4126]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.729831"], ["updated_at", "2016-12-09 21:17:42.729831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 21:17:42.731550"], ["updated_at", "2016-12-09 21:17:42.731550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4127], ["g5_updatable_hub_amenity_id", 2017]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.734794"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4127]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4127]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.740976"], ["updated_at", "2016-12-09 21:17:42.740976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.741916"], ["id", 2018]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4127], ["g5_updatable_hub_amenity_id", 2018]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.744615"], ["updated_at", "2016-12-09 21:17:42.744615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.745663"], ["id", 2019]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4127], ["g5_updatable_hub_amenity_id", 2019]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4127]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.748753"], ["id", 4127]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.753219"], ["updated_at", "2016-12-09 21:17:42.753219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.754866"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.756697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4129]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.760356"], ["updated_at", "2016-12-09 21:17:42.760356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.761435"], ["id", 2020]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4129], ["g5_updatable_hub_amenity_id", 2020]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.763803"], ["updated_at", "2016-12-09 21:17:42.763803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.764691"], ["id", 2021]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4129], ["g5_updatable_hub_amenity_id", 2021]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4129]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.768112"], ["id", 4129]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4128]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4128]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:42.776246"], ["updated_at", "2016-12-09 21:17:42.776246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.778736"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4130]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4130]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.785822"], ["updated_at", "2016-12-09 21:17:42.785822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.786961"], ["id", 2022]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4130], ["g5_updatable_hub_amenity_id", 2022]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.789470"], ["updated_at", "2016-12-09 21:17:42.789470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.790472"], ["id", 2023]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4130], ["g5_updatable_hub_amenity_id", 2023]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4130]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.793762"], ["id", 4130]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:42.797209"], ["updated_at", "2016-12-09 21:17:42.797209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.798868"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4131]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4131]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.804973"], ["updated_at", "2016-12-09 21:17:42.804973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.805920"], ["id", 2024]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4131], ["g5_updatable_hub_amenity_id", 2024]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.808419"], ["updated_at", "2016-12-09 21:17:42.808419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.809362"], ["id", 2025]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4131], ["g5_updatable_hub_amenity_id", 2025]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4131]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.813347"], ["id", 4131]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:42.816747"], ["updated_at", "2016-12-09 21:17:42.816747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.823349"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4132]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4132]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4132]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.840348"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.842181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4133]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.845863"], ["updated_at", "2016-12-09 21:17:42.845863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.846825"], ["id", 2026]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4133], ["g5_updatable_hub_amenity_id", 2026]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.849177"], ["updated_at", "2016-12-09 21:17:42.849177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.850150"], ["id", 2027]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4133], ["g5_updatable_hub_amenity_id", 2027]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4133]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.853452"], ["id", 4133]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.859356"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.861029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4134]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.864886"], ["updated_at", "2016-12-09 21:17:42.864886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.865837"], ["id", 2028]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4134], ["g5_updatable_hub_amenity_id", 2028]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.868379"], ["updated_at", "2016-12-09 21:17:42.868379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.869698"], ["id", 2029]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4134], ["g5_updatable_hub_amenity_id", 2029]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4134]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.873029"], ["id", 4134]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.876956"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.878998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4135]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.884003"], ["updated_at", "2016-12-09 21:17:42.884003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.885174"], ["id", 2030]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4135], ["g5_updatable_hub_amenity_id", 2030]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.888308"], ["updated_at", "2016-12-09 21:17:42.888308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.889366"], ["id", 2031]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4135], ["g5_updatable_hub_amenity_id", 2031]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4135]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.892737"], ["id", 4135]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.897638"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.899447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4136]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.903172"], ["updated_at", "2016-12-09 21:17:42.903172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.904186"], ["id", 2032]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4136], ["g5_updatable_hub_amenity_id", 2032]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.906743"], ["updated_at", "2016-12-09 21:17:42.906743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.907743"], ["id", 2033]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4136], ["g5_updatable_hub_amenity_id", 2033]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4136]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.911299"], ["id", 4136]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4136]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4136]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.917434"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.919554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4137]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.923628"], ["updated_at", "2016-12-09 21:17:42.923628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.924566"], ["id", 2034]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4137], ["g5_updatable_hub_amenity_id", 2034]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.926977"], ["updated_at", "2016-12-09 21:17:42.926977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.927965"], ["id", 2035]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4137], ["g5_updatable_hub_amenity_id", 2035]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4137]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.931639"], ["id", 4137]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.937363"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.939337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4138]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.943199"], ["updated_at", "2016-12-09 21:17:42.943199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.944181"], ["id", 2036]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4138], ["g5_updatable_hub_amenity_id", 2036]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.946572"], ["updated_at", "2016-12-09 21:17:42.946572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.947513"], ["id", 2037]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4138], ["g5_updatable_hub_amenity_id", 2037]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4138]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.950592"], ["id", 4138]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.955365"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.957027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4139]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.960463"], ["updated_at", "2016-12-09 21:17:42.960463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.961357"], ["id", 2038]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4139], ["g5_updatable_hub_amenity_id", 2038]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.963685"], ["updated_at", "2016-12-09 21:17:42.963685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.964622"], ["id", 2039]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4139], ["g5_updatable_hub_amenity_id", 2039]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4139]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.967993"], ["id", 4139]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.973143"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.974845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4140]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.978835"], ["updated_at", "2016-12-09 21:17:42.978835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.979858"], ["id", 2040]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4140], ["g5_updatable_hub_amenity_id", 2040]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.982322"], ["updated_at", "2016-12-09 21:17:42.982322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:42.983257"], ["id", 2041]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4140], ["g5_updatable_hub_amenity_id", 2041]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4140]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:42.986489"], ["id", 4140]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:42.991413"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:42.993036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4141]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:42.996559"], ["updated_at", "2016-12-09 21:17:42.996559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:42.997477"], ["id", 2042]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4141], ["g5_updatable_hub_amenity_id", 2042]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:42.999862"], ["updated_at", "2016-12-09 21:17:42.999862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:43.000861"], ["id", 2043]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4141], ["g5_updatable_hub_amenity_id", 2043]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4141]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:43.004175"], ["id", 4141]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:43.009037"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:43.010784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4142]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:43.014454"], ["updated_at", "2016-12-09 21:17:43.014454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:43.015420"], ["id", 2044]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4142], ["g5_updatable_hub_amenity_id", 2044]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:43.018059"], ["updated_at", "2016-12-09 21:17:43.018059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:43.019294"], ["id", 2045]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4142], ["g5_updatable_hub_amenity_id", 2045]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4142]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:43.022977"], ["id", 4142]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:43.031179"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:43.032956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4143]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:43.036964"], ["updated_at", "2016-12-09 21:17:43.036964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:43.038158"], ["id", 2046]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4143], ["g5_updatable_hub_amenity_id", 2046]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:43.040538"], ["updated_at", "2016-12-09 21:17:43.040538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:43.041474"], ["id", 2047]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4143], ["g5_updatable_hub_amenity_id", 2047]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4143]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:43.044514"], ["id", 4143]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:43.049390"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:43.051207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4144]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:43.055052"], ["updated_at", "2016-12-09 21:17:43.055052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:43.055974"], ["id", 2048]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4144], ["g5_updatable_hub_amenity_id", 2048]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:43.058528"], ["updated_at", "2016-12-09 21:17:43.058528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:43.059610"], ["id", 2049]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4144], ["g5_updatable_hub_amenity_id", 2049]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4144]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:43.063929"], ["id", 4144]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:17:43.066274"], ["updated_at", "2016-12-09 21:17:43.066274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:17:43.067640"], ["updated_at", "2016-12-09 21:17:43.067640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1697]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4145]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:43.072639"], ["updated_at", "2016-12-09 21:17:43.072639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 21:17:43.077110"], ["updated_at", "2016-12-09 21:17:43.077110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:43.080708"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:43.082631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4148]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:43.086712"], ["updated_at", "2016-12-09 21:17:43.086712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:43.087911"], ["id", 2050]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4148], ["g5_updatable_hub_amenity_id", 2050]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:43.090562"], ["updated_at", "2016-12-09 21:17:43.090562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:43.091462"], ["id", 2051]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4148], ["g5_updatable_hub_amenity_id", 2051]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4148]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:43.094621"], ["id", 4148]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4146]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4146]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:17:43.101833"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:17:43.103615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4149]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:17:43.107233"], ["updated_at", "2016-12-09 21:17:43.107233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:17:43.108253"], ["id", 2052]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4149], ["g5_updatable_hub_amenity_id", 2052]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:17:43.111016"], ["updated_at", "2016-12-09 21:17:43.111016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:17:43.112061"], ["id", 2053]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4149], ["g5_updatable_hub_amenity_id", 2053]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4149]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:17:43.115329"], ["id", 4149]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:52.748826"], ["updated_at", "2016-12-09 21:18:52.748826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:52.757067"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4150]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4150]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:52.777200"], ["updated_at", "2016-12-09 21:18:52.777200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:52.779611"], ["id", 2054]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4150], ["g5_updatable_hub_amenity_id", 2054]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:52.788879"], ["updated_at", "2016-12-09 21:18:52.788879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:52.789891"], ["id", 2055]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4150], ["g5_updatable_hub_amenity_id", 2055]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4150]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:52.797611"], ["id", 4150]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:52.801595"], ["updated_at", "2016-12-09 21:18:52.801595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:52.803474"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4151]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4151]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:52.809854"], ["updated_at", "2016-12-09 21:18:52.809854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:52.810906"], ["id", 2056]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4151], ["g5_updatable_hub_amenity_id", 2056]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:52.813498"], ["updated_at", "2016-12-09 21:18:52.813498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:52.814615"], ["id", 2057]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4151], ["g5_updatable_hub_amenity_id", 2057]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4151]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:52.818182"], ["id", 4151]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:52.821890"], ["updated_at", "2016-12-09 21:18:52.821890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:52.824271"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4152]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4152]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4152]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:18:52.833427"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:52.835135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4153]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4153]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:18:52.842505"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:52.845025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4154]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:52.849388"], ["updated_at", "2016-12-09 21:18:52.849388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:52.850397"], ["id", 2058]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4154], ["g5_updatable_hub_amenity_id", 2058]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:52.852937"], ["updated_at", "2016-12-09 21:18:52.852937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:52.853907"], ["id", 2059]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4154], ["g5_updatable_hub_amenity_id", 2059]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4154]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:52.857286"], ["id", 4154]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:18:52.859883"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:52.861706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4155]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4155], ["g5_updatable_hub_amenity_id", 2058]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4155], ["g5_updatable_hub_amenity_id", 2059]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4155]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:52.869991"], ["id", 4155]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:18:52.872840"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:52.874622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4156]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4156]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:52.883681"], ["updated_at", "2016-12-09 21:18:52.883681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 21:18:52.888602"], ["updated_at", "2016-12-09 21:18:52.888602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:52.892316"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:52.894119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4159]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:52.899020"], ["updated_at", "2016-12-09 21:18:52.899020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:52.900407"], ["id", 2060]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4159], ["g5_updatable_hub_amenity_id", 2060]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:52.903488"], ["updated_at", "2016-12-09 21:18:52.903488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:52.904493"], ["id", 2061]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4159], ["g5_updatable_hub_amenity_id", 2061]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4159]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:52.907870"], ["id", 4159]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4157]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4157]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:52.916447"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:52.918544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4160]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:52.923150"], ["updated_at", "2016-12-09 21:18:52.923150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:52.924175"], ["id", 2062]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4160], ["g5_updatable_hub_amenity_id", 2062]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:52.926900"], ["updated_at", "2016-12-09 21:18:52.926900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:52.927850"], ["id", 2063]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4160], ["g5_updatable_hub_amenity_id", 2063]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4160]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:52.931282"], ["id", 4160]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:52.936473"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:52.942929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4161]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:52.948305"], ["updated_at", "2016-12-09 21:18:52.948305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:52.949387"], ["id", 2064]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4161], ["g5_updatable_hub_amenity_id", 2064]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:52.952047"], ["updated_at", "2016-12-09 21:18:52.952047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:52.953158"], ["id", 2065]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4161], ["g5_updatable_hub_amenity_id", 2065]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4161]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:52.956851"], ["id", 4161]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:52.962864"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:52.964783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4162]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:52.968328"], ["updated_at", "2016-12-09 21:18:52.968328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:52.969292"], ["id", 2066]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4162], ["g5_updatable_hub_amenity_id", 2066]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:52.972135"], ["updated_at", "2016-12-09 21:18:52.972135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:52.973067"], ["id", 2067]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4162], ["g5_updatable_hub_amenity_id", 2067]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4162]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:52.976397"], ["id", 4162]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4162]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4162]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:52.983245"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:52.984992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4163]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:52.988698"], ["updated_at", "2016-12-09 21:18:52.988698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:52.989659"], ["id", 2068]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4163], ["g5_updatable_hub_amenity_id", 2068]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:52.992131"], ["updated_at", "2016-12-09 21:18:52.992131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:52.993049"], ["id", 2069]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4163], ["g5_updatable_hub_amenity_id", 2069]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4163]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:52.996041"], ["id", 4163]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:52.999950"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.001619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4164]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.004930"], ["updated_at", "2016-12-09 21:18:53.004930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.005825"], ["id", 2070]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4164], ["g5_updatable_hub_amenity_id", 2070]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.008160"], ["updated_at", "2016-12-09 21:18:53.008160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.009199"], ["id", 2071]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4164], ["g5_updatable_hub_amenity_id", 2071]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4164]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.012944"], ["id", 4164]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.017824"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.019922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4165]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.024060"], ["updated_at", "2016-12-09 21:18:53.024060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.025205"], ["id", 2072]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4165], ["g5_updatable_hub_amenity_id", 2072]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.027699"], ["updated_at", "2016-12-09 21:18:53.027699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.028699"], ["id", 2073]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4165], ["g5_updatable_hub_amenity_id", 2073]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4165]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.032271"], ["id", 4165]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.036714"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.038478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4166]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.042041"], ["updated_at", "2016-12-09 21:18:53.042041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.042975"], ["id", 2074]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4166], ["g5_updatable_hub_amenity_id", 2074]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.045294"], ["updated_at", "2016-12-09 21:18:53.045294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.046200"], ["id", 2075]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4166], ["g5_updatable_hub_amenity_id", 2075]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4166]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.049350"], ["id", 4166]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.053827"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.055604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4167]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.059253"], ["updated_at", "2016-12-09 21:18:53.059253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.060182"], ["id", 2076]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4167], ["g5_updatable_hub_amenity_id", 2076]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.062757"], ["updated_at", "2016-12-09 21:18:53.062757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.063978"], ["id", 2077]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4167], ["g5_updatable_hub_amenity_id", 2077]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4167]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.067285"], ["id", 4167]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.071987"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.073711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4168]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.077325"], ["updated_at", "2016-12-09 21:18:53.077325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.078323"], ["id", 2078]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4168], ["g5_updatable_hub_amenity_id", 2078]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.081337"], ["updated_at", "2016-12-09 21:18:53.081337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.082531"], ["id", 2079]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4168], ["g5_updatable_hub_amenity_id", 2079]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4168]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.086744"], ["id", 4168]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:18:53.092355"], ["updated_at", "2016-12-09 21:18:53.092355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:53.093884"], ["updated_at", "2016-12-09 21:18:53.093884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1698]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4169]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.097470"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.099170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4170]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.102677"], ["updated_at", "2016-12-09 21:18:53.102677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.103630"], ["id", 2080]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4170], ["g5_updatable_hub_amenity_id", 2080]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.106059"], ["updated_at", "2016-12-09 21:18:53.106059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.106927"], ["id", 2081]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4170], ["g5_updatable_hub_amenity_id", 2081]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4170]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.110092"], ["id", 4170]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.114839"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.116779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4171]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.120655"], ["updated_at", "2016-12-09 21:18:53.120655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.121818"], ["id", 2082]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4171], ["g5_updatable_hub_amenity_id", 2082]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.124323"], ["updated_at", "2016-12-09 21:18:53.124323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.125351"], ["id", 2083]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4171], ["g5_updatable_hub_amenity_id", 2083]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4171]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.128638"], ["id", 4171]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.133933"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.135612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4172]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.139501"], ["updated_at", "2016-12-09 21:18:53.139501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.140523"], ["id", 2084]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4172], ["g5_updatable_hub_amenity_id", 2084]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.143336"], ["updated_at", "2016-12-09 21:18:53.143336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.144375"], ["id", 2085]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4172], ["g5_updatable_hub_amenity_id", 2085]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4172]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.147861"], ["id", 4172]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.152300"], ["updated_at", "2016-12-09 21:18:53.152300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:18:53.157932"], ["updated_at", "2016-12-09 21:18:53.157932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4173], ["g5_updatable_hub_amenity_id", 2086]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.161078"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4173]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4173]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.167161"], ["id", 2086]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4173], ["g5_updatable_hub_amenity_id", 2086]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.169709"], ["updated_at", "2016-12-09 21:18:53.169709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.170730"], ["id", 2087]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4173], ["g5_updatable_hub_amenity_id", 2087]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4173]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.174139"], ["id", 4173]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.178027"], ["updated_at", "2016-12-09 21:18:53.178027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:18:53.179648"], ["updated_at", "2016-12-09 21:18:53.179648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4174], ["g5_updatable_hub_amenity_id", 2088]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.182466"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4174]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4174]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.188420"], ["updated_at", "2016-12-09 21:18:53.188420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.189399"], ["id", 2089]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4174], ["g5_updatable_hub_amenity_id", 2089]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.191908"], ["updated_at", "2016-12-09 21:18:53.191908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.193014"], ["id", 2090]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4174], ["g5_updatable_hub_amenity_id", 2090]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4174]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.196479"], ["id", 4174]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.201458"], ["updated_at", "2016-12-09 21:18:53.201458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:18:53.202940"], ["updated_at", "2016-12-09 21:18:53.202940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4175], ["g5_updatable_hub_amenity_id", 2091]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.205899"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4175]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4175]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.211873"], ["updated_at", "2016-12-09 21:18:53.211873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.212822"], ["id", 2092]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4175], ["g5_updatable_hub_amenity_id", 2092]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.215258"], ["updated_at", "2016-12-09 21:18:53.215258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.216202"], ["id", 2093]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4175], ["g5_updatable_hub_amenity_id", 2093]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4175]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.219398"], ["id", 4175]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4175]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.224940"], ["updated_at", "2016-12-09 21:18:53.224940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:18:53.226356"], ["updated_at", "2016-12-09 21:18:53.226356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4176], ["g5_updatable_hub_amenity_id", 2094]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.229112"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4176]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4176]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.235092"], ["updated_at", "2016-12-09 21:18:53.235092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.236099"], ["id", 2095]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4176], ["g5_updatable_hub_amenity_id", 2095]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.238835"], ["updated_at", "2016-12-09 21:18:53.238835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.239840"], ["id", 2096]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4176], ["g5_updatable_hub_amenity_id", 2096]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4176]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.243161"], ["id", 4176]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 21:18:53.245580"], ["updated_at", "2016-12-09 21:18:53.245580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:53.246821"], ["updated_at", "2016-12-09 21:18:53.246821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1699]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4177]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.250006"], ["updated_at", "2016-12-09 21:18:53.250006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 21:18:53.251457"], ["updated_at", "2016-12-09 21:18:53.251457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4178], ["g5_updatable_hub_amenity_id", 2097]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.253951"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4178]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4178]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.260995"], ["updated_at", "2016-12-09 21:18:53.260995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.262089"], ["id", 2098]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4178], ["g5_updatable_hub_amenity_id", 2098]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.265177"], ["updated_at", "2016-12-09 21:18:53.265177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.266205"], ["id", 2099]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4178], ["g5_updatable_hub_amenity_id", 2099]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4178]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.269540"], ["id", 4178]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.274610"], ["updated_at", "2016-12-09 21:18:53.274610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 21:18:53.276238"], ["updated_at", "2016-12-09 21:18:53.276238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4179], ["g5_updatable_hub_amenity_id", 2100]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.278889"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4179]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4179]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.284523"], ["updated_at", "2016-12-09 21:18:53.284523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.285447"], ["id", 2101]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4179], ["g5_updatable_hub_amenity_id", 2101]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.287757"], ["updated_at", "2016-12-09 21:18:53.287757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.288860"], ["id", 2102]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4179], ["g5_updatable_hub_amenity_id", 2102]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4179]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.292378"], ["id", 4179]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.297014"], ["updated_at", "2016-12-09 21:18:53.297014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 21:18:53.298491"], ["updated_at", "2016-12-09 21:18:53.298491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4180], ["g5_updatable_hub_amenity_id", 2103]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.300908"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4180]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4180]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.306415"], ["updated_at", "2016-12-09 21:18:53.306415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.307334"], ["id", 2104]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4180], ["g5_updatable_hub_amenity_id", 2104]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.310039"], ["id", 2103]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4180], ["g5_updatable_hub_amenity_id", 2103]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4180]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.313225"], ["id", 4180]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.322002"], ["updated_at", "2016-12-09 21:18:53.322002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 21:18:53.323556"], ["updated_at", "2016-12-09 21:18:53.323556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4181], ["g5_updatable_hub_amenity_id", 2105]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.326117"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4181]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4181]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.332275"], ["updated_at", "2016-12-09 21:18:53.332275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.333319"], ["id", 2106]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4181], ["g5_updatable_hub_amenity_id", 2106]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.336033"], ["updated_at", "2016-12-09 21:18:53.336033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.337000"], ["id", 2107]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4181], ["g5_updatable_hub_amenity_id", 2107]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4181]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.340189"], ["id", 4181]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:18:53.342682"], ["updated_at", "2016-12-09 21:18:53.342682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:53.343932"], ["updated_at", "2016-12-09 21:18:53.343932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1700]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4182]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.346885"], ["updated_at", "2016-12-09 21:18:53.346885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 21:18:53.348463"], ["updated_at", "2016-12-09 21:18:53.348463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4183], ["g5_updatable_hub_amenity_id", 2108]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.350982"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4183]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4183]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.356775"], ["updated_at", "2016-12-09 21:18:53.356775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.357724"], ["id", 2109]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4183], ["g5_updatable_hub_amenity_id", 2109]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.360174"], ["updated_at", "2016-12-09 21:18:53.360174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.361154"], ["id", 2110]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4183], ["g5_updatable_hub_amenity_id", 2110]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4183]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.364487"], ["id", 4183]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.369707"], ["updated_at", "2016-12-09 21:18:53.369707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 21:18:53.371510"], ["updated_at", "2016-12-09 21:18:53.371510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4184], ["g5_updatable_hub_amenity_id", 2111]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.374290"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4184]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4184]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.383478"], ["updated_at", "2016-12-09 21:18:53.383478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.384445"], ["id", 2112]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4184], ["g5_updatable_hub_amenity_id", 2112]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.386801"], ["updated_at", "2016-12-09 21:18:53.386801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.387737"], ["id", 2113]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4184], ["g5_updatable_hub_amenity_id", 2113]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4184]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.390863"], ["id", 4184]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:18:53.395058"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:18:53.397183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.403946"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4185]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4185]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.409847"], ["updated_at", "2016-12-09 21:18:53.409847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.410792"], ["id", 2114]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4185], ["g5_updatable_hub_amenity_id", 2114]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.413139"], ["updated_at", "2016-12-09 21:18:53.413139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.414402"], ["id", 2115]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4185], ["g5_updatable_hub_amenity_id", 2115]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4185]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.417538"], ["id", 4185]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4185]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:18:53.421840"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:18:53.424118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.430969"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4186]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4186]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.437125"], ["updated_at", "2016-12-09 21:18:53.437125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.438296"], ["id", 2116]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4186], ["g5_updatable_hub_amenity_id", 2116]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.441738"], ["updated_at", "2016-12-09 21:18:53.441738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.442765"], ["id", 2117]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4186], ["g5_updatable_hub_amenity_id", 2117]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4186]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.446071"], ["id", 4186]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:18:53.448661"], ["updated_at", "2016-12-09 21:18:53.448661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:53.449870"], ["updated_at", "2016-12-09 21:18:53.449870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1701]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4187]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.452654"], ["updated_at", "2016-12-09 21:18:53.452654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.454186"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.456012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4189]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.459743"], ["updated_at", "2016-12-09 21:18:53.459743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.460700"], ["id", 2118]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4189], ["g5_updatable_hub_amenity_id", 2118]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.463312"], ["updated_at", "2016-12-09 21:18:53.463312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.464613"], ["id", 2119]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4189], ["g5_updatable_hub_amenity_id", 2119]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4189]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.467742"], ["id", 4189]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4188]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4188]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.473998"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.475793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4190]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.479460"], ["updated_at", "2016-12-09 21:18:53.479460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.480665"], ["id", 2120]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4190], ["g5_updatable_hub_amenity_id", 2120]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.483068"], ["updated_at", "2016-12-09 21:18:53.483068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.483960"], ["id", 2121]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4190], ["g5_updatable_hub_amenity_id", 2121]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4190]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.486993"], ["id", 4190]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:53.493625"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:53.495366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4191]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:53.499166"], ["updated_at", "2016-12-09 21:18:53.499166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:53.500149"], ["id", 2122]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4191], ["g5_updatable_hub_amenity_id", 2122]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:53.502554"], ["updated_at", "2016-12-09 21:18:53.502554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:53.503491"], ["id", 2123]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4191], ["g5_updatable_hub_amenity_id", 2123]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4191]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:53.506637"], ["id", 4191]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.344622"], ["updated_at", "2016-12-09 21:18:58.344622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.348538"], ["updated_at", "2016-12-09 21:18:58.348538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:18:58.358540"], ["updated_at", "2016-12-09 21:18:58.358540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.359983"], ["updated_at", "2016-12-09 21:18:58.359983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.362191"], ["updated_at", "2016-12-09 21:18:58.362191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.363832"], ["updated_at", "2016-12-09 21:18:58.363832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.367912"], ["updated_at", "2016-12-09 21:18:58.367912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.369500"], ["updated_at", "2016-12-09 21:18:58.369500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.373576"], ["updated_at", "2016-12-09 21:18:58.373576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.375606"], ["updated_at", "2016-12-09 21:18:58.375606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.380429"], ["updated_at", "2016-12-09 21:18:58.380429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.381914"], ["updated_at", "2016-12-09 21:18:58.381914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.384448"], ["updated_at", "2016-12-09 21:18:58.384448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.385882"], ["updated_at", "2016-12-09 21:18:58.385882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.389501"], ["updated_at", "2016-12-09 21:18:58.389501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-09 21:18:58.394502"], ["updated_at", "2016-12-09 21:18:58.394502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-09 21:18:58.395851"], ["updated_at", "2016-12-09 21:18:58.395851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4204], ["g5_updatable_hub_amenity_id", 2124]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4204], ["g5_updatable_hub_amenity_id", 2125]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4204]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-1|amenity-2|"], ["updated_at", "2016-12-09 21:18:58.411526"], ["id", 4204]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4204]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4204]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.417806"], ["updated_at", "2016-12-09 21:18:58.417806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-09 21:18:58.419089"], ["updated_at", "2016-12-09 21:18:58.419089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-09 21:18:58.420276"], ["updated_at", "2016-12-09 21:18:58.420276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4205], ["g5_updatable_hub_amenity_id", 2126]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4205], ["g5_updatable_hub_amenity_id", 2127]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4205]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-3|amenity-4|"], ["updated_at", "2016-12-09 21:18:58.424881"], ["id", 4205]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4205]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4205]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4205]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4205]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4205]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.435037"], ["updated_at", "2016-12-09 21:18:58.435037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4206]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.470262"], ["updated_at", "2016-12-09 21:18:58.470262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.472554"], ["updated_at", "2016-12-09 21:18:58.472554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.474461"], ["updated_at", "2016-12-09 21:18:58.474461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.481731"], ["updated_at", "2016-12-09 21:18:58.481731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.485251"], ["updated_at", "2016-12-09 21:18:58.485251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.486559"], ["updated_at", "2016-12-09 21:18:58.486559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.490199"], ["updated_at", "2016-12-09 21:18:58.490199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.492441"], ["updated_at", "2016-12-09 21:18:58.492441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.493885"], ["updated_at", "2016-12-09 21:18:58.493885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.496626"], ["updated_at", "2016-12-09 21:18:58.496626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.498815"], ["updated_at", "2016-12-09 21:18:58.498815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.500292"], ["updated_at", "2016-12-09 21:18:58.500292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.502664"], ["updated_at", "2016-12-09 21:18:58.502664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.504806"], ["updated_at", "2016-12-09 21:18:58.504806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.505987"], ["updated_at", "2016-12-09 21:18:58.505987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:18:58.508125"], ["updated_at", "2016-12-09 21:18:58.508125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.510191"], ["updated_at", "2016-12-09 21:18:58.510191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.512698"], ["updated_at", "2016-12-09 21:18:58.512698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.514121"], ["updated_at", "2016-12-09 21:18:58.514121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.517139"], ["updated_at", "2016-12-09 21:18:58.517139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.519307"], ["updated_at", "2016-12-09 21:18:58.519307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.520609"], ["updated_at", "2016-12-09 21:18:58.520609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.524132"], ["updated_at", "2016-12-09 21:18:58.524132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.526293"], ["updated_at", "2016-12-09 21:18:58.526293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.527656"], ["updated_at", "2016-12-09 21:18:58.527656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.531701"], ["updated_at", "2016-12-09 21:18:58.531701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.534089"], ["updated_at", "2016-12-09 21:18:58.534089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.535432"], ["updated_at", "2016-12-09 21:18:58.535432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.538775"], ["updated_at", "2016-12-09 21:18:58.538775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.540839"], ["updated_at", "2016-12-09 21:18:58.540839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.542074"], ["updated_at", "2016-12-09 21:18:58.542074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.545611"], ["updated_at", "2016-12-09 21:18:58.545611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.548398"], ["updated_at", "2016-12-09 21:18:58.548398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.549643"], ["updated_at", "2016-12-09 21:18:58.549643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.552756"], ["updated_at", "2016-12-09 21:18:58.552756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.554868"], ["updated_at", "2016-12-09 21:18:58.554868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.556224"], ["updated_at", "2016-12-09 21:18:58.556224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.560294"], ["updated_at", "2016-12-09 21:18:58.560294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.562419"], ["updated_at", "2016-12-09 21:18:58.562419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.564004"], ["updated_at", "2016-12-09 21:18:58.564004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-09 21:18:58.567082"], ["updated_at", "2016-12-09 21:18:58.567082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.569981"], ["updated_at", "2016-12-09 21:18:58.569981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-09 21:18:58.571256"], ["updated_at", "2016-12-09 21:18:58.571256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.593910"], ["updated_at", "2016-12-09 21:18:58.593910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.34ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.605316"], ["updated_at", "2016-12-09 21:18:58.605316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.3ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.662101"], ["updated_at", "2016-12-09 21:18:58.662101"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.665653"], ["updated_at", "2016-12-09 21:18:58.665653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "2016-12-09 21:18:58.673644"], ["updated_at", "2016-12-09 21:18:58.673644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1718]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.689509"], ["updated_at", "2016-12-09 21:18:58.689509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:18:58.691134"], ["updated_at", "2016-12-09 21:18:58.691134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-09 21:18:58.692576"], ["updated_at", "2016-12-09 21:18:58.692576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-09 21:18:58.693569"], ["updated_at", "2016-12-09 21:18:58.693569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-09 21:18:58.694481"], ["updated_at", "2016-12-09 21:18:58.694481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4240], ["g5_updatable_hub_amenity_id", 2128]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4240], ["g5_updatable_hub_amenity_id", 2129]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.7ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:58.702886"], ["updated_at", "2016-12-09 21:18:58.702886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-09 21:18:58.704281"], ["updated_at", "2016-12-09 21:18:58.704281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-09 21:18:58.705626"], ["updated_at", "2016-12-09 21:18:58.705626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-09 21:18:58.706682"], ["updated_at", "2016-12-09 21:18:58.706682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-09 21:18:58.707768"], ["updated_at", "2016-12-09 21:18:58.707768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4241], ["g5_updatable_hub_amenity_id", 2131]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4241], ["g5_updatable_hub_amenity_id", 2132]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.715459"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.718087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4242]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.723130"], ["updated_at", "2016-12-09 21:18:58.723130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.725456"], ["id", 2134]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4242], ["g5_updatable_hub_amenity_id", 2134]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.728854"], ["updated_at", "2016-12-09 21:18:58.728854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.730098"], ["id", 2135]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4242], ["g5_updatable_hub_amenity_id", 2135]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4242]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.733714"], ["id", 4242]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.739610"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.741558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4243]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.745851"], ["updated_at", "2016-12-09 21:18:58.745851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.747323"], ["id", 2136]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4243], ["g5_updatable_hub_amenity_id", 2136]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.750236"], ["updated_at", "2016-12-09 21:18:58.750236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.751336"], ["id", 2137]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4243], ["g5_updatable_hub_amenity_id", 2137]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4243]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.755010"], ["id", 4243]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.759577"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.761519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4244]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.766305"], ["updated_at", "2016-12-09 21:18:58.766305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.767476"], ["id", 2138]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4244], ["g5_updatable_hub_amenity_id", 2138]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.770778"], ["updated_at", "2016-12-09 21:18:58.770778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.772035"], ["id", 2139]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4244], ["g5_updatable_hub_amenity_id", 2139]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4244]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.775839"], ["id", 4244]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.783368"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.785219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4245]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.789129"], ["updated_at", "2016-12-09 21:18:58.789129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.790101"], ["id", 2140]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4245], ["g5_updatable_hub_amenity_id", 2140]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.792650"], ["updated_at", "2016-12-09 21:18:58.792650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.793546"], ["id", 2141]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4245], ["g5_updatable_hub_amenity_id", 2141]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4245]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.796993"], ["id", 4245]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4245]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4245]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.803464"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.805601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4246]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.809506"], ["updated_at", "2016-12-09 21:18:58.809506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.810458"], ["id", 2142]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4246], ["g5_updatable_hub_amenity_id", 2142]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.813251"], ["updated_at", "2016-12-09 21:18:58.813251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.814386"], ["id", 2143]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4246], ["g5_updatable_hub_amenity_id", 2143]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4246]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.817739"], ["id", 4246]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.822745"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.824528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4247]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.828969"], ["updated_at", "2016-12-09 21:18:58.828969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.830476"], ["id", 2144]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4247], ["g5_updatable_hub_amenity_id", 2144]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.833207"], ["updated_at", "2016-12-09 21:18:58.833207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.834156"], ["id", 2145]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4247], ["g5_updatable_hub_amenity_id", 2145]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4247]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.839031"], ["id", 4247]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:18:58.841912"], ["updated_at", "2016-12-09 21:18:58.841912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:58.843165"], ["updated_at", "2016-12-09 21:18:58.843165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1721]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4248]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.846528"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.848601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4249]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.852553"], ["updated_at", "2016-12-09 21:18:58.852553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.853560"], ["id", 2146]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4249], ["g5_updatable_hub_amenity_id", 2146]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.856002"], ["updated_at", "2016-12-09 21:18:58.856002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.856942"], ["id", 2147]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4249], ["g5_updatable_hub_amenity_id", 2147]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4249]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.860288"], ["id", 4249]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.865936"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.867799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4250]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.872238"], ["updated_at", "2016-12-09 21:18:58.872238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.873258"], ["id", 2148]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4250], ["g5_updatable_hub_amenity_id", 2148]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.875943"], ["updated_at", "2016-12-09 21:18:58.875943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.877119"], ["id", 2149]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4250], ["g5_updatable_hub_amenity_id", 2149]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4250]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.880811"], ["id", 4250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.892649"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.895298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4251]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.906568"], ["updated_at", "2016-12-09 21:18:58.906568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.907700"], ["id", 2150]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4251], ["g5_updatable_hub_amenity_id", 2150]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.910665"], ["updated_at", "2016-12-09 21:18:58.910665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.912141"], ["id", 2151]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4251], ["g5_updatable_hub_amenity_id", 2151]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4251]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.916310"], ["id", 4251]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.921819"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.923844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4252]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.928119"], ["updated_at", "2016-12-09 21:18:58.928119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.929121"], ["id", 2152]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4252], ["g5_updatable_hub_amenity_id", 2152]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.932205"], ["updated_at", "2016-12-09 21:18:58.932205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.933262"], ["id", 2153]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4252], ["g5_updatable_hub_amenity_id", 2153]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4252]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.936627"], ["id", 4252]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.941706"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.943594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4253]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.947924"], ["updated_at", "2016-12-09 21:18:58.947924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.948949"], ["id", 2154]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4253], ["g5_updatable_hub_amenity_id", 2154]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.951798"], ["updated_at", "2016-12-09 21:18:58.951798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.952736"], ["id", 2155]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4253], ["g5_updatable_hub_amenity_id", 2155]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4253]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.955937"], ["id", 4253]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.961057"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:58.963325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4254]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.967341"], ["updated_at", "2016-12-09 21:18:58.967341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:58.968283"], ["id", 2156]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4254], ["g5_updatable_hub_amenity_id", 2156]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:58.970949"], ["updated_at", "2016-12-09 21:18:58.970949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:58.972045"], ["id", 2157]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4254], ["g5_updatable_hub_amenity_id", 2157]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4254]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:58.975603"], ["id", 4254]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:18:58.980364"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:18:58.982896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:58.990428"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4255]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4255]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:58.999512"], ["updated_at", "2016-12-09 21:18:58.999512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.000789"], ["id", 2158]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4255], ["g5_updatable_hub_amenity_id", 2158]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.003585"], ["updated_at", "2016-12-09 21:18:59.003585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.004643"], ["id", 2159]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4255], ["g5_updatable_hub_amenity_id", 2159]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4255]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.008933"], ["id", 4255]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4255]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-09 20:18:59.015093"], ["client_urn", "client_uid"], ["created_at", "2016-12-09 21:18:59.018987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.029630"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4256]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4256]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.038013"], ["updated_at", "2016-12-09 21:18:59.038013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.039362"], ["id", 2160]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4256], ["g5_updatable_hub_amenity_id", 2160]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.042719"], ["updated_at", "2016-12-09 21:18:59.042719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.043896"], ["id", 2161]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4256], ["g5_updatable_hub_amenity_id", 2161]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4256]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.048022"], ["id", 4256]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:18:59.051232"], ["updated_at", "2016-12-09 21:18:59.051232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.052701"], ["updated_at", "2016-12-09 21:18:59.052701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1722]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4257]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.057807"], ["updated_at", "2016-12-09 21:18:59.057807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-09 21:18:59.065185"], ["updated_at", "2016-12-09 21:18:59.065185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.070100"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.072527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4260]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.077287"], ["updated_at", "2016-12-09 21:18:59.077287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.078646"], ["id", 2162]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4260], ["g5_updatable_hub_amenity_id", 2162]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.081653"], ["updated_at", "2016-12-09 21:18:59.081653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.082821"], ["id", 2163]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4260], ["g5_updatable_hub_amenity_id", 2163]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4260]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.086555"], ["id", 4260]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4258]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4258]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.096659"], ["updated_at", "2016-12-09 21:18:59.096659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.098602"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4261]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4261]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.106332"], ["updated_at", "2016-12-09 21:18:59.106332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.107364"], ["id", 2164]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4261], ["g5_updatable_hub_amenity_id", 2164]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.123469"], ["updated_at", "2016-12-09 21:18:59.123469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.124415"], ["id", 2165]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4261], ["g5_updatable_hub_amenity_id", 2165]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4261]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.127910"], ["id", 4261]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.132352"], ["updated_at", "2016-12-09 21:18:59.132352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.134538"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4262]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4262]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4262]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:18:59.142576"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.144587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4263]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4263]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:18:59.150763"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.152437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4264]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.155921"], ["updated_at", "2016-12-09 21:18:59.155921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.156877"], ["id", 2166]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4264], ["g5_updatable_hub_amenity_id", 2166]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.159295"], ["updated_at", "2016-12-09 21:18:59.159295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.160290"], ["id", 2167]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4264], ["g5_updatable_hub_amenity_id", 2167]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4264]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.164192"], ["id", 4264]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:18:59.166895"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.168607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4265]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4265], ["g5_updatable_hub_amenity_id", 2166]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4265], ["g5_updatable_hub_amenity_id", 2167]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4265]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.176482"], ["id", 4265]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:18:59.179339"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.181232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4266]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4266]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.188409"], ["updated_at", "2016-12-09 21:18:59.188409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.190150"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4267]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4267]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.196076"], ["updated_at", "2016-12-09 21:18:59.196076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.197655"], ["id", 2168]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4267], ["g5_updatable_hub_amenity_id", 2168]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.201936"], ["updated_at", "2016-12-09 21:18:59.201936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.203101"], ["id", 2169]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4267], ["g5_updatable_hub_amenity_id", 2169]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4267]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.206723"], ["id", 4267]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.210824"], ["updated_at", "2016-12-09 21:18:59.210824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.212633"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.214672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4269]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.218370"], ["updated_at", "2016-12-09 21:18:59.218370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.219378"], ["id", 2170]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4269], ["g5_updatable_hub_amenity_id", 2170]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.222423"], ["updated_at", "2016-12-09 21:18:59.222423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.223373"], ["id", 2171]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4269], ["g5_updatable_hub_amenity_id", 2171]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4269]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.226874"], ["id", 4269]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4268]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4268]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.233804"], ["updated_at", "2016-12-09 21:18:59.233804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-09 21:18:59.235235"], ["updated_at", "2016-12-09 21:18:59.235235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4270], ["g5_updatable_hub_amenity_id", 2172]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.237803"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4270]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4270]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.243655"], ["updated_at", "2016-12-09 21:18:59.243655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.244843"], ["id", 2173]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4270], ["g5_updatable_hub_amenity_id", 2173]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.247907"], ["updated_at", "2016-12-09 21:18:59.247907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.249115"], ["id", 2174]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4270], ["g5_updatable_hub_amenity_id", 2174]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4270]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.252844"], ["id", 4270]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4270]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.259163"], ["updated_at", "2016-12-09 21:18:59.259163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-09 21:18:59.260870"], ["updated_at", "2016-12-09 21:18:59.260870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4271], ["g5_updatable_hub_amenity_id", 2175]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.263949"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4271]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4271]] G5Updatable::HubAmenity Load (0.7ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.272351"], ["updated_at", "2016-12-09 21:18:59.272351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.273635"], ["id", 2176]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4271], ["g5_updatable_hub_amenity_id", 2176]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.276763"], ["updated_at", "2016-12-09 21:18:59.276763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.277927"], ["id", 2177]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4271], ["g5_updatable_hub_amenity_id", 2177]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4271]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.281773"], ["id", 4271]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.286744"], ["updated_at", "2016-12-09 21:18:59.286744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-09 21:18:59.288423"], ["updated_at", "2016-12-09 21:18:59.288423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4272], ["g5_updatable_hub_amenity_id", 2178]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.291696"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4272]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4272]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.299208"], ["updated_at", "2016-12-09 21:18:59.299208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.300537"], ["id", 2179]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4272], ["g5_updatable_hub_amenity_id", 2179]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.303292"], ["updated_at", "2016-12-09 21:18:59.303292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.304424"], ["id", 2180]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4272], ["g5_updatable_hub_amenity_id", 2180]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4272]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.307998"], ["id", 4272]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.312695"], ["updated_at", "2016-12-09 21:18:59.312695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-09 21:18:59.314680"], ["updated_at", "2016-12-09 21:18:59.314680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4273], ["g5_updatable_hub_amenity_id", 2181]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.317755"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4273]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4273]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.328843"], ["updated_at", "2016-12-09 21:18:59.328843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.330191"], ["id", 2182]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4273], ["g5_updatable_hub_amenity_id", 2182]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.333348"], ["updated_at", "2016-12-09 21:18:59.333348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.334413"], ["id", 2183]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4273], ["g5_updatable_hub_amenity_id", 2183]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4273]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.337933"], ["id", 4273]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.342074"], ["updated_at", "2016-12-09 21:18:59.342074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-09 21:18:59.343753"], ["updated_at", "2016-12-09 21:18:59.343753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4274], ["g5_updatable_hub_amenity_id", 2184]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.346932"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4274]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4274]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.353125"], ["updated_at", "2016-12-09 21:18:59.353125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.354095"], ["id", 2185]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4274], ["g5_updatable_hub_amenity_id", 2185]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.357300"], ["updated_at", "2016-12-09 21:18:59.357300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.358515"], ["id", 2186]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4274], ["g5_updatable_hub_amenity_id", 2186]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4274]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.362262"], ["id", 4274]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.367887"], ["updated_at", "2016-12-09 21:18:59.367887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-09 21:18:59.369697"], ["updated_at", "2016-12-09 21:18:59.369697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4275], ["g5_updatable_hub_amenity_id", 2187]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.372705"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4275]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4275]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.379165"], ["updated_at", "2016-12-09 21:18:59.379165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.380503"], ["id", 2188]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4275], ["g5_updatable_hub_amenity_id", 2188]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.384018"], ["updated_at", "2016-12-09 21:18:59.384018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.385234"], ["id", 2189]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4275], ["g5_updatable_hub_amenity_id", 2189]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4275]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.388598"], ["id", 4275]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:18:59.391475"], ["updated_at", "2016-12-09 21:18:59.391475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.392939"], ["updated_at", "2016-12-09 21:18:59.392939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1723]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4276]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.396366"], ["updated_at", "2016-12-09 21:18:59.396366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-09 21:18:59.398064"], ["updated_at", "2016-12-09 21:18:59.398064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4277], ["g5_updatable_hub_amenity_id", 2190]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.400694"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4277]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4277]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.406147"], ["updated_at", "2016-12-09 21:18:59.406147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.407065"], ["id", 2191]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4277], ["g5_updatable_hub_amenity_id", 2191]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.409516"], ["updated_at", "2016-12-09 21:18:59.409516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.410442"], ["id", 2192]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4277], ["g5_updatable_hub_amenity_id", 2192]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4277]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.413800"], ["id", 4277]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.418712"], ["updated_at", "2016-12-09 21:18:59.418712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-09 21:18:59.420321"], ["updated_at", "2016-12-09 21:18:59.420321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4278], ["g5_updatable_hub_amenity_id", 2193]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.422983"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4278]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4278]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.428842"], ["updated_at", "2016-12-09 21:18:59.428842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.429813"], ["id", 2194]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4278], ["g5_updatable_hub_amenity_id", 2194]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.432504"], ["updated_at", "2016-12-09 21:18:59.432504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.433476"], ["id", 2195]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4278], ["g5_updatable_hub_amenity_id", 2195]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4278]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.436552"], ["id", 4278]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.441342"], ["updated_at", "2016-12-09 21:18:59.441342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-09 21:18:59.442756"], ["updated_at", "2016-12-09 21:18:59.442756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4279], ["g5_updatable_hub_amenity_id", 2196]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.445376"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4279]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4279]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.451128"], ["updated_at", "2016-12-09 21:18:59.451128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.452037"], ["id", 2197]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4279], ["g5_updatable_hub_amenity_id", 2197]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.454301"], ["updated_at", "2016-12-09 21:18:59.454301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.455197"], ["id", 2198]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4279], ["g5_updatable_hub_amenity_id", 2198]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4279]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.458308"], ["id", 4279]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:18:59.460682"], ["updated_at", "2016-12-09 21:18:59.460682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.461846"], ["updated_at", "2016-12-09 21:18:59.461846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1724]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4280]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.465077"], ["updated_at", "2016-12-09 21:18:59.465077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-09 21:18:59.466694"], ["updated_at", "2016-12-09 21:18:59.466694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4281], ["g5_updatable_hub_amenity_id", 2199]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.469113"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4281]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4281]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.474925"], ["updated_at", "2016-12-09 21:18:59.474925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.475983"], ["id", 2200]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4281], ["g5_updatable_hub_amenity_id", 2200]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.478703"], ["updated_at", "2016-12-09 21:18:59.478703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.479943"], ["id", 2201]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4281], ["g5_updatable_hub_amenity_id", 2201]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4281]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.483172"], ["id", 4281]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.488733"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.490472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4282]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.494315"], ["updated_at", "2016-12-09 21:18:59.494315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.495269"], ["id", 2202]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4282], ["g5_updatable_hub_amenity_id", 2202]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.497843"], ["updated_at", "2016-12-09 21:18:59.497843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.498728"], ["id", 2203]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4282], ["g5_updatable_hub_amenity_id", 2203]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4282]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.501813"], ["id", 4282]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.507829"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.509546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4283]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.513475"], ["updated_at", "2016-12-09 21:18:59.513475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.514449"], ["id", 2204]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4283], ["g5_updatable_hub_amenity_id", 2204]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.516876"], ["updated_at", "2016-12-09 21:18:59.516876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.517846"], ["id", 2205]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4283], ["g5_updatable_hub_amenity_id", 2205]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4283]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.521479"], ["id", 4283]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:18:59.527876"], ["updated_at", "2016-12-09 21:18:59.527876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.533670"], ["updated_at", "2016-12-09 21:18:59.533670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.535265"], ["updated_at", "2016-12-09 21:18:59.535265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:18:59.536560"], ["updated_at", "2016-12-09 21:18:59.536560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.537806"], ["updated_at", "2016-12-09 21:18:59.537806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:18:59.543708"], ["updated_at", "2016-12-09 21:18:59.543708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.545113"], ["updated_at", "2016-12-09 21:18:59.545113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.546593"], ["updated_at", "2016-12-09 21:18:59.546593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2016-12-09 21:18:59.547685"], ["updated_at", "2016-12-09 21:18:59.547685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-09 21:18:59.548919"], ["updated_at", "2016-12-09 21:18:59.548919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "2016-12-09 21:18:59.562086"], ["updated_at", "2016-12-09 21:18:59.562086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:18:59.564465"], ["id", 1729]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1729]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:18:59.567734"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:18:59.568096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:18:59.571879"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:18:59.572236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:18:59.574750"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:18:59.575109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:18:59.577815"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:18:59.578183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:18:59.580897"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:18:59.581243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:18:59.583823"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:18:59.584139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:18:59.586591"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-09 21:18:59.586915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:18:59.591626"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:18:59.592897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.594941"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.596724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4290]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4290]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:18:59.602659"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.604295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4291]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4291]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:18:59.609874"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.611669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4292]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.616054"], ["updated_at", "2016-12-09 21:18:59.616054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.617371"], ["id", 2206]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4292], ["g5_updatable_hub_amenity_id", 2206]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.620347"], ["updated_at", "2016-12-09 21:18:59.620347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.621434"], ["id", 2207]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4292], ["g5_updatable_hub_amenity_id", 2207]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4292]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.624719"], ["id", 4292]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:18:59.628024"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.629897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4293]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4293], ["g5_updatable_hub_amenity_id", 2206]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4293], ["g5_updatable_hub_amenity_id", 2207]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4293]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.639128"], ["id", 4293]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:18:59.641805"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.643792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4294]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4294]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:59.658019"], ["updated_at", "2016-12-09 21:18:59.658019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:18:59.660217"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1738]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:59.663842"], ["updated_at", "2016-12-09 21:18:59.663842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:18:59.665768"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1739]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:59.669611"], ["updated_at", "2016-12-09 21:18:59.669611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:18:59.671315"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1740]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-09 21:18:59.675077"], ["updated_at", "2016-12-09 21:18:59.675077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-09 21:18:59.676326"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1741]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.688818"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.690783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4295]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.695034"], ["updated_at", "2016-12-09 21:18:59.695034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.696284"], ["id", 2208]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4295], ["g5_updatable_hub_amenity_id", 2208]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.699204"], ["updated_at", "2016-12-09 21:18:59.699204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.700218"], ["id", 2209]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4295], ["g5_updatable_hub_amenity_id", 2209]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4295]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.703430"], ["id", 4295]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:18:59.711846"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:18:59.712991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.715838"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.717552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4296]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4296]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:18:59.723852"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.725559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4297]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4297]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:18:59.732372"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.734283"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4298]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.739616"], ["updated_at", "2016-12-09 21:18:59.739616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.740885"], ["id", 2210]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4298], ["g5_updatable_hub_amenity_id", 2210]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.748761"], ["updated_at", "2016-12-09 21:18:59.748761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.749999"], ["id", 2211]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4298], ["g5_updatable_hub_amenity_id", 2211]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4298]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.753392"], ["id", 4298]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:18:59.756153"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.758093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4299]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4299], ["g5_updatable_hub_amenity_id", 2210]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4299], ["g5_updatable_hub_amenity_id", 2211]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4299]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.766824"], ["id", 4299]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:18:59.769382"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.771422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4300]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4300]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:18:59.786192"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:18:59.787125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.789149"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.790782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4301]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4301]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:18:59.796561"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.798376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4302]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4302]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:18:59.803872"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.805646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4303]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.808882"], ["updated_at", "2016-12-09 21:18:59.808882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.809901"], ["id", 2212]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4303], ["g5_updatable_hub_amenity_id", 2212]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.812154"], ["updated_at", "2016-12-09 21:18:59.812154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.813014"], ["id", 2213]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4303], ["g5_updatable_hub_amenity_id", 2213]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4303]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.816470"], ["id", 4303]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:18:59.818906"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.820801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4304]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4304], ["g5_updatable_hub_amenity_id", 2212]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4304], ["g5_updatable_hub_amenity_id", 2213]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4304]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.828446"], ["id", 4304]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:18:59.831144"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.832795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4305]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4305]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4303]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:18:59.845154"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:18:59.846213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.848737"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.850492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4306]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4306]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:18:59.856222"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.857937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4307]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4307]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:18:59.864175"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.865999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4308]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.869705"], ["updated_at", "2016-12-09 21:18:59.869705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.870838"], ["id", 2214]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4308], ["g5_updatable_hub_amenity_id", 2214]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.873412"], ["updated_at", "2016-12-09 21:18:59.873412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.874347"], ["id", 2215]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4308], ["g5_updatable_hub_amenity_id", 2215]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4308]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.877614"], ["id", 4308]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:18:59.880069"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.881959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4309]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4309], ["g5_updatable_hub_amenity_id", 2214]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4309], ["g5_updatable_hub_amenity_id", 2215]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4309]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.889340"], ["id", 4309]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:18:59.892019"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.894246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4310]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4310]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:18:59.909100"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:18:59.910167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.912414"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.914285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4311]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4311]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:18:59.921340"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.923088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4312]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4312]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:18:59.929470"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.931403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4313]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:18:59.935093"], ["updated_at", "2016-12-09 21:18:59.935093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:18:59.936135"], ["id", 2216]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4313], ["g5_updatable_hub_amenity_id", 2216]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:18:59.938465"], ["updated_at", "2016-12-09 21:18:59.938465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:18:59.939375"], ["id", 2217]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4313], ["g5_updatable_hub_amenity_id", 2217]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4313]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.942388"], ["id", 4313]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:18:59.944768"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.946403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4314]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4314], ["g5_updatable_hub_amenity_id", 2216]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4314], ["g5_updatable_hub_amenity_id", 2217]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4314]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:18:59.953946"], ["id", 4314]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:18:59.956345"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.957942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4315]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4315]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:18:59.967665"], ["id", 1745]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-09 21:18:59.972519"], ["id", 4311]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4311]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4311]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4315]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4315]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4314]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2456]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2457]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4314]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4313]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2454]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2455]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4313]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4312]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4312]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-09 21:18:59.991594"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-09 21:18:59.992754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-09 21:18:59.994946"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:18:59.997104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4316]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4316]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-09 21:19:00.003617"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:19:00.005668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4317]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4317]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-09 21:19:00.012254"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:19:00.014253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4318]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-09 21:19:00.017870"], ["updated_at", "2016-12-09 21:19:00.017870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-09 21:19:00.019203"], ["id", 2218]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4318], ["g5_updatable_hub_amenity_id", 2218]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-09 21:19:00.021882"], ["updated_at", "2016-12-09 21:19:00.021882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-09 21:19:00.022839"], ["id", 2219]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4318], ["g5_updatable_hub_amenity_id", 2219]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4318]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:19:00.026062"], ["id", 4318]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-09 21:19:00.029277"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:19:00.031444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4319]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4319], ["g5_updatable_hub_amenity_id", 2218]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4319], ["g5_updatable_hub_amenity_id", 2219]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4319]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-09 21:19:00.039408"], ["id", 4319]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-09 21:19:00.042302"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-09 21:19:00.044378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4320]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4320]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-09 21:19:00.059243"], ["id", 1746]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4320]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4320]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4319]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2460]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2461]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4319]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4318]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2458]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2459]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4318]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4317]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4317]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4316]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4316]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (6.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (12.6ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:36.652601"], ["updated_at", "2016-12-12 17:44:36.652601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.8ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:36.667810"], ["updated_at", "2016-12-12 17:44:36.667810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:36.670736"], ["updated_at", "2016-12-12 17:44:36.670736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:36.672572"], ["updated_at", "2016-12-12 17:44:36.672572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.07ms) Completed 200 OK in 17ms (Views: 3.8ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:44:36.699280"], ["updated_at", "2016-12-12 17:44:36.699280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:36.701952"], ["updated_at", "2016-12-12 17:44:36.701952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:36.704138"], ["updated_at", "2016-12-12 17:44:36.704138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:36.706000"], ["updated_at", "2016-12-12 17:44:36.706000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:44:36.755881"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:44:36.758201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:36.760901"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.764107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4327]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4327]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4327) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:44:36.777814"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.780080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4328]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4328]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4328) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:44:36.786912"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.789521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4329]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:36.796551"], ["updated_at", "2016-12-12 17:44:36.796551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:36.798892"], ["id", 2220]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4329], ["g5_updatable_hub_amenity_id", 2220]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:36.802898"], ["updated_at", "2016-12-12 17:44:36.802898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:36.803904"], ["id", 2221]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4329], ["g5_updatable_hub_amenity_id", 2221]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4329]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4329) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:36.808087"], ["id", 4329]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:44:36.810846"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.813195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4330]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4330], ["g5_updatable_hub_amenity_id", 2220]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4330], ["g5_updatable_hub_amenity_id", 2221]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4330]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4330) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:36.822006"], ["id", 4330]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:44:36.824946"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.827193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4331]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4331]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4331) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4329]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:44:36.841784"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:44:36.843857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:36.846428"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.848584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4332]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4332]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4332) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:44:36.862240"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.864697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4333]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4333]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4333) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:44:36.871454"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.873743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4334]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:36.878167"], ["updated_at", "2016-12-12 17:44:36.878167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:36.879308"], ["id", 2222]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4334], ["g5_updatable_hub_amenity_id", 2222]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:36.881902"], ["updated_at", "2016-12-12 17:44:36.881902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:36.882873"], ["id", 2223]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4334], ["g5_updatable_hub_amenity_id", 2223]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4334]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4334) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:36.886675"], ["id", 4334]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:44:36.889671"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.892026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4335]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4335], ["g5_updatable_hub_amenity_id", 2222]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4335], ["g5_updatable_hub_amenity_id", 2223]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4335]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4335) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:36.900393"], ["id", 4335]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:44:36.903524"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.905810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4336]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4336]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4336) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:44:36.921445"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:44:36.923629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:36.926209"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.928469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4337]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4337]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4337) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:44:36.937334"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.939952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4338]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4338]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4338) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:44:36.947068"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.949106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4339]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:36.953435"], ["updated_at", "2016-12-12 17:44:36.953435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:36.954435"], ["id", 2224]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4339], ["g5_updatable_hub_amenity_id", 2224]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:36.956986"], ["updated_at", "2016-12-12 17:44:36.956986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:36.957914"], ["id", 2225]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4339], ["g5_updatable_hub_amenity_id", 2225]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4339]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4339) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:36.961793"], ["id", 4339]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:44:36.964382"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.966381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4340]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4340], ["g5_updatable_hub_amenity_id", 2224]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4340], ["g5_updatable_hub_amenity_id", 2225]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4340]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4340) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:36.974429"], ["id", 4340]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:44:36.976908"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.978996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4341]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4341]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4341) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:44:36.990290"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:44:36.992098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:36.994383"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:36.996642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4342]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4342]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4342) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:44:37.003260"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.005273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4343]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4343]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4343) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:44:37.012313"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.014664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4344]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.018890"], ["updated_at", "2016-12-12 17:44:37.018890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.019884"], ["id", 2226]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4344], ["g5_updatable_hub_amenity_id", 2226]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.022396"], ["updated_at", "2016-12-12 17:44:37.022396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.023603"], ["id", 2227]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4344], ["g5_updatable_hub_amenity_id", 2227]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4344]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4344) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.033122"], ["id", 4344]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:44:37.035808"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.038110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4345]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4345], ["g5_updatable_hub_amenity_id", 2226]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4345], ["g5_updatable_hub_amenity_id", 2227]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4345]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4345) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.047643"], ["id", 4345]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:44:37.051271"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.054113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4346]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4346]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4346) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1752) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1752) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:44:37.074636"], ["id", 1752]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4346]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4346]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4345]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2476]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2477]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4345]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4344]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2474]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2475]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4344]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4343]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4343]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4342]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4342]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:44:37.093042"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:44:37.094790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.097373"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.099679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4347]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4347]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4347) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:44:37.107053"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.109180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4348]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4348]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4348) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:44:37.117010"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.119730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4349]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.124465"], ["updated_at", "2016-12-12 17:44:37.124465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.125753"], ["id", 2228]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4349], ["g5_updatable_hub_amenity_id", 2228]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.128435"], ["updated_at", "2016-12-12 17:44:37.128435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.129649"], ["id", 2229]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4349], ["g5_updatable_hub_amenity_id", 2229]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4349]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4349) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.134543"], ["id", 4349]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:44:37.138641"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.141499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4350]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4350], ["g5_updatable_hub_amenity_id", 2228]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4350], ["g5_updatable_hub_amenity_id", 2229]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4350]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4350) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.152815"], ["id", 4350]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:44:37.157095"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.160344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4351]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4351]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4351) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1753) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1753) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:44:37.182444"], ["id", 1753]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4347) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-12 17:44:37.190635"], ["id", 4347]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4347]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4347]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4347) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.2ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4351]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4351]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4350]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2480]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2481]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4350]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4349]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2478]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2479]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4349]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4348]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4348]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.217277"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.220231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4352]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.226129"], ["updated_at", "2016-12-12 17:44:37.226129"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.227238"], ["id", 2230]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4352], ["g5_updatable_hub_amenity_id", 2230]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.229805"], ["updated_at", "2016-12-12 17:44:37.229805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.230923"], ["id", 2231]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4352], ["g5_updatable_hub_amenity_id", 2231]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4352]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4352) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.235615"], ["id", 4352]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.245312"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.248137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4353]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.253644"], ["updated_at", "2016-12-12 17:44:37.253644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.254951"], ["id", 2232]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4353], ["g5_updatable_hub_amenity_id", 2232]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.270427"], ["updated_at", "2016-12-12 17:44:37.270427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.271551"], ["id", 2233]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4353], ["g5_updatable_hub_amenity_id", 2233]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4353]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4353) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.275647"], ["id", 4353]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.279676"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.282516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4354]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.287019"], ["updated_at", "2016-12-12 17:44:37.287019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.288397"], ["id", 2234]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4354], ["g5_updatable_hub_amenity_id", 2234]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.291798"], ["updated_at", "2016-12-12 17:44:37.291798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.293290"], ["id", 2235]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4354], ["g5_updatable_hub_amenity_id", 2235]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4354]]  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4354) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.298043"], ["id", 4354]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4354]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4354]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.305864"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.308278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4355]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.312621"], ["updated_at", "2016-12-12 17:44:37.312621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.313809"], ["id", 2236]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4355], ["g5_updatable_hub_amenity_id", 2236]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.316401"], ["updated_at", "2016-12-12 17:44:37.316401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.317518"], ["id", 2237]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4355], ["g5_updatable_hub_amenity_id", 2237]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4355]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4355) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.321631"], ["id", 4355]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.328770"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.331364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4356]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.335493"], ["updated_at", "2016-12-12 17:44:37.335493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.336866"], ["id", 2238]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4356], ["g5_updatable_hub_amenity_id", 2238]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.340122"], ["updated_at", "2016-12-12 17:44:37.340122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.341256"], ["id", 2239]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4356], ["g5_updatable_hub_amenity_id", 2239]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4356]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4356) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.345405"], ["id", 4356]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.350961"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.353766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4357]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.358418"], ["updated_at", "2016-12-12 17:44:37.358418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.359498"], ["id", 2240]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4357], ["g5_updatable_hub_amenity_id", 2240]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.362353"], ["updated_at", "2016-12-12 17:44:37.362353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.363950"], ["id", 2241]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4357], ["g5_updatable_hub_amenity_id", 2241]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4357]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4357) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.369916"], ["id", 4357]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.375620"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.378122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4358]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.382676"], ["updated_at", "2016-12-12 17:44:37.382676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.383868"], ["id", 2242]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4358], ["g5_updatable_hub_amenity_id", 2242]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.386408"], ["updated_at", "2016-12-12 17:44:37.386408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.387492"], ["id", 2243]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4358], ["g5_updatable_hub_amenity_id", 2243]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4358]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4358) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.392064"], ["id", 4358]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:44:37.395599"], ["updated_at", "2016-12-12 17:44:37.395599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:37.397422"], ["updated_at", "2016-12-12 17:44:37.397422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1754]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4359]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.401164"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.404155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4360]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.408619"], ["updated_at", "2016-12-12 17:44:37.408619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.409849"], ["id", 2244]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4360], ["g5_updatable_hub_amenity_id", 2244]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.412255"], ["updated_at", "2016-12-12 17:44:37.412255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.413350"], ["id", 2245]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4360], ["g5_updatable_hub_amenity_id", 2245]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4360]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4360) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.417701"], ["id", 4360]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.423179"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.425487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4361]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.429695"], ["updated_at", "2016-12-12 17:44:37.429695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.430868"], ["id", 2246]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4361], ["g5_updatable_hub_amenity_id", 2246]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.433412"], ["updated_at", "2016-12-12 17:44:37.433412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.434468"], ["id", 2247]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4361], ["g5_updatable_hub_amenity_id", 2247]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4361]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4361) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.438814"], ["id", 4361]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.444408"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.446822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4362]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.451831"], ["updated_at", "2016-12-12 17:44:37.451831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.453242"], ["id", 2248]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4362], ["g5_updatable_hub_amenity_id", 2248]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.455899"], ["updated_at", "2016-12-12 17:44:37.455899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.457203"], ["id", 2249]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4362], ["g5_updatable_hub_amenity_id", 2249]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4362]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4362) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.461441"], ["id", 4362]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.466742"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.469176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4363]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.473599"], ["updated_at", "2016-12-12 17:44:37.473599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.474715"], ["id", 2250]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4363], ["g5_updatable_hub_amenity_id", 2250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.477408"], ["updated_at", "2016-12-12 17:44:37.477408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.478537"], ["id", 2251]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4363], ["g5_updatable_hub_amenity_id", 2251]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4363]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4363) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.482748"], ["id", 4363]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.488445"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.491122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4364]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.495588"], ["updated_at", "2016-12-12 17:44:37.495588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.496741"], ["id", 2252]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4364], ["g5_updatable_hub_amenity_id", 2252]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.502681"], ["updated_at", "2016-12-12 17:44:37.502681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.504031"], ["id", 2253]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4364], ["g5_updatable_hub_amenity_id", 2253]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4364]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4364) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.508487"], ["id", 4364]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.513262"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.515581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4365]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.519432"], ["updated_at", "2016-12-12 17:44:37.519432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.520587"], ["id", 2254]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4365], ["g5_updatable_hub_amenity_id", 2254]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.522879"], ["updated_at", "2016-12-12 17:44:37.522879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.523950"], ["id", 2255]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4365], ["g5_updatable_hub_amenity_id", 2255]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4365]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4365) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.527756"], ["id", 4365]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:44:37.532033"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:44:37.534798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4366) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.541923"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4366]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4366]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.549025"], ["updated_at", "2016-12-12 17:44:37.549025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.550310"], ["id", 2256]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4366], ["g5_updatable_hub_amenity_id", 2256]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.553057"], ["updated_at", "2016-12-12 17:44:37.553057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.554043"], ["id", 2257]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4366], ["g5_updatable_hub_amenity_id", 2257]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4366]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4366) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.557867"], ["id", 4366]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4366]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:44:37.562027"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:44:37.564727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4367) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.571372"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4367]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4367]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.578208"], ["updated_at", "2016-12-12 17:44:37.578208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.579211"], ["id", 2258]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4367], ["g5_updatable_hub_amenity_id", 2258]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.581443"], ["updated_at", "2016-12-12 17:44:37.581443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.582350"], ["id", 2259]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4367], ["g5_updatable_hub_amenity_id", 2259]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4367]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4367) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.585912"], ["id", 4367]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:44:37.589311"], ["updated_at", "2016-12-12 17:44:37.589311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:37.591056"], ["updated_at", "2016-12-12 17:44:37.591056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1755]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4368]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.594476"], ["updated_at", "2016-12-12 17:44:37.594476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-12 17:44:37.596026"], ["updated_at", "2016-12-12 17:44:37.596026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4369], ["g5_updatable_hub_amenity_id", 2260]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4369) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.598655"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4369]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4369]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.606123"], ["id", 2260]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4369], ["g5_updatable_hub_amenity_id", 2260]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.608478"], ["updated_at", "2016-12-12 17:44:37.608478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.609572"], ["id", 2261]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4369], ["g5_updatable_hub_amenity_id", 2261]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4369]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4369) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.613047"], ["id", 4369]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.617122"], ["updated_at", "2016-12-12 17:44:37.617122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-12 17:44:37.618539"], ["updated_at", "2016-12-12 17:44:37.618539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4370], ["g5_updatable_hub_amenity_id", 2262]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4370) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.620986"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4370]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4370]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.627973"], ["updated_at", "2016-12-12 17:44:37.627973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.628906"], ["id", 2263]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4370], ["g5_updatable_hub_amenity_id", 2263]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.631152"], ["updated_at", "2016-12-12 17:44:37.631152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.632034"], ["id", 2264]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4370], ["g5_updatable_hub_amenity_id", 2264]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4370]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4370) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.635686"], ["id", 4370]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4370]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.641558"], ["updated_at", "2016-12-12 17:44:37.641558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-12 17:44:37.643146"], ["updated_at", "2016-12-12 17:44:37.643146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4371], ["g5_updatable_hub_amenity_id", 2265]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4371) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.645666"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4371]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4371]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.652766"], ["updated_at", "2016-12-12 17:44:37.652766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.653809"], ["id", 2266]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4371], ["g5_updatable_hub_amenity_id", 2266]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.656360"], ["updated_at", "2016-12-12 17:44:37.656360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.657294"], ["id", 2267]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4371], ["g5_updatable_hub_amenity_id", 2267]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4371]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4371) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.661265"], ["id", 4371]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.666440"], ["updated_at", "2016-12-12 17:44:37.666440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-12 17:44:37.667860"], ["updated_at", "2016-12-12 17:44:37.667860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4372], ["g5_updatable_hub_amenity_id", 2268]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4372) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.670260"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4372]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4372]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.677413"], ["updated_at", "2016-12-12 17:44:37.677413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.678521"], ["id", 2269]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4372], ["g5_updatable_hub_amenity_id", 2269]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.680955"], ["updated_at", "2016-12-12 17:44:37.680955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.681863"], ["id", 2270]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4372], ["g5_updatable_hub_amenity_id", 2270]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4372]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4372) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.685514"], ["id", 4372]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-12 17:44:37.689214"], ["updated_at", "2016-12-12 17:44:37.689214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:37.691157"], ["updated_at", "2016-12-12 17:44:37.691157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1756]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4373]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.694616"], ["updated_at", "2016-12-12 17:44:37.694616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-12 17:44:37.696107"], ["updated_at", "2016-12-12 17:44:37.696107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4374], ["g5_updatable_hub_amenity_id", 2271]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4374) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.698845"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4374]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4374]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.710462"], ["updated_at", "2016-12-12 17:44:37.710462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.711440"], ["id", 2272]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4374], ["g5_updatable_hub_amenity_id", 2272]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.713598"], ["updated_at", "2016-12-12 17:44:37.713598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.714683"], ["id", 2273]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4374], ["g5_updatable_hub_amenity_id", 2273]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4374]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4374) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.718267"], ["id", 4374]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.723581"], ["updated_at", "2016-12-12 17:44:37.723581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-12 17:44:37.725049"], ["updated_at", "2016-12-12 17:44:37.725049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4375], ["g5_updatable_hub_amenity_id", 2274]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4375) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.727896"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4375]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4375]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.734682"], ["updated_at", "2016-12-12 17:44:37.734682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.735623"], ["id", 2275]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4375], ["g5_updatable_hub_amenity_id", 2275]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.737798"], ["updated_at", "2016-12-12 17:44:37.737798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.738938"], ["id", 2276]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4375], ["g5_updatable_hub_amenity_id", 2276]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4375]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4375) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.742831"], ["id", 4375]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.747699"], ["updated_at", "2016-12-12 17:44:37.747699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-12 17:44:37.749093"], ["updated_at", "2016-12-12 17:44:37.749093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4376], ["g5_updatable_hub_amenity_id", 2277]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4376) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.751526"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4376]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4376]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.758432"], ["updated_at", "2016-12-12 17:44:37.758432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.759652"], ["id", 2278]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4376], ["g5_updatable_hub_amenity_id", 2278]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.761911"], ["id", 2277]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4376], ["g5_updatable_hub_amenity_id", 2277]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4376]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4376) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.765763"], ["id", 4376]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.770051"], ["updated_at", "2016-12-12 17:44:37.770051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-12 17:44:37.771411"], ["updated_at", "2016-12-12 17:44:37.771411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4377], ["g5_updatable_hub_amenity_id", 2279]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4377) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.774030"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4377]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4377]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.780559"], ["updated_at", "2016-12-12 17:44:37.780559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.781513"], ["id", 2280]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4377], ["g5_updatable_hub_amenity_id", 2280]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.783568"], ["updated_at", "2016-12-12 17:44:37.783568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.784453"], ["id", 2281]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4377], ["g5_updatable_hub_amenity_id", 2281]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4377]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4377) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.788070"], ["id", 4377]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:44:37.791587"], ["updated_at", "2016-12-12 17:44:37.791587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:37.793474"], ["updated_at", "2016-12-12 17:44:37.793474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1757]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4378]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.796948"], ["updated_at", "2016-12-12 17:44:37.796948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-12 17:44:37.798397"], ["updated_at", "2016-12-12 17:44:37.798397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4379], ["g5_updatable_hub_amenity_id", 2282]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4379) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.800868"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4379]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4379]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.808245"], ["updated_at", "2016-12-12 17:44:37.808245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.809201"], ["id", 2283]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4379], ["g5_updatable_hub_amenity_id", 2283]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.811485"], ["updated_at", "2016-12-12 17:44:37.811485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.812359"], ["id", 2284]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4379], ["g5_updatable_hub_amenity_id", 2284]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4379]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4379) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.816010"], ["id", 4379]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.821182"], ["updated_at", "2016-12-12 17:44:37.821182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-12 17:44:37.822743"], ["updated_at", "2016-12-12 17:44:37.822743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4380], ["g5_updatable_hub_amenity_id", 2285]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4380) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.825136"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4380]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4380]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.831601"], ["updated_at", "2016-12-12 17:44:37.831601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.832546"], ["id", 2286]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4380], ["g5_updatable_hub_amenity_id", 2286]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.834638"], ["updated_at", "2016-12-12 17:44:37.834638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.835564"], ["id", 2287]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4380], ["g5_updatable_hub_amenity_id", 2287]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4380]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4380) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.839386"], ["id", 4380]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.844947"], ["updated_at", "2016-12-12 17:44:37.844947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.846446"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.848612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4382]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.853174"], ["updated_at", "2016-12-12 17:44:37.853174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.854342"], ["id", 2288]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4382], ["g5_updatable_hub_amenity_id", 2288]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.856919"], ["updated_at", "2016-12-12 17:44:37.856919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.857841"], ["id", 2289]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4382], ["g5_updatable_hub_amenity_id", 2289]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4382]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4382) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.861726"], ["id", 4382]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4381]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4381]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:37.868114"], ["updated_at", "2016-12-12 17:44:37.868114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4383) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.869790"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4383]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4383]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.876699"], ["updated_at", "2016-12-12 17:44:37.876699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.877822"], ["id", 2290]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4383], ["g5_updatable_hub_amenity_id", 2290]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.880288"], ["updated_at", "2016-12-12 17:44:37.880288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.881215"], ["id", 2291]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4383], ["g5_updatable_hub_amenity_id", 2291]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4383]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4383) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.884858"], ["id", 4383]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:37.889971"], ["updated_at", "2016-12-12 17:44:37.889971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4384) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.892448"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4384]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4384]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4384]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4384) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:44:37.907337"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.909546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4385]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4385]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4385) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:44:37.916123"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.918134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4386]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.922295"], ["updated_at", "2016-12-12 17:44:37.922295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.923244"], ["id", 2292]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4386], ["g5_updatable_hub_amenity_id", 2292]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.925382"], ["updated_at", "2016-12-12 17:44:37.925382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.926593"], ["id", 2293]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4386], ["g5_updatable_hub_amenity_id", 2293]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4386]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4386) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.930249"], ["id", 4386]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:44:37.932767"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.934955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4387]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4387], ["g5_updatable_hub_amenity_id", 2292]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4387], ["g5_updatable_hub_amenity_id", 2293]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4387]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4387) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.943487"], ["id", 4387]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:44:37.945998"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.948125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4388]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4388]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4388) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:37.956957"], ["updated_at", "2016-12-12 17:44:37.956957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4389) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.958765"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4389]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4389]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.965527"], ["updated_at", "2016-12-12 17:44:37.965527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.966465"], ["id", 2294]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4389], ["g5_updatable_hub_amenity_id", 2294]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.968575"], ["updated_at", "2016-12-12 17:44:37.968575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.969446"], ["id", 2295]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4389], ["g5_updatable_hub_amenity_id", 2295]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4389]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4389) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:37.973177"], ["id", 4389]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.978813"], ["updated_at", "2016-12-12 17:44:37.978813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-12 17:44:37.984355"], ["updated_at", "2016-12-12 17:44:37.984355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:37.987831"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:37.990334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4392]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:37.994319"], ["updated_at", "2016-12-12 17:44:37.994319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:37.995261"], ["id", 2296]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4392], ["g5_updatable_hub_amenity_id", 2296]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:37.997543"], ["updated_at", "2016-12-12 17:44:37.997543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:37.998488"], ["id", 2297]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4392], ["g5_updatable_hub_amenity_id", 2297]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4392]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4392) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:38.002550"], ["id", 4392]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4390]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4390]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:38.009348"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:38.011641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4393]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:38.015734"], ["updated_at", "2016-12-12 17:44:38.015734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:38.016642"], ["id", 2298]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4393], ["g5_updatable_hub_amenity_id", 2298]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:38.021056"], ["updated_at", "2016-12-12 17:44:38.021056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:38.022656"], ["id", 2299]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4393], ["g5_updatable_hub_amenity_id", 2299]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4393]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4393) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:38.027671"], ["id", 4393]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:38.044495"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:38.047048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4394]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:38.052031"], ["updated_at", "2016-12-12 17:44:38.052031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:38.053144"], ["id", 2300]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4394], ["g5_updatable_hub_amenity_id", 2300]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:38.055719"], ["updated_at", "2016-12-12 17:44:38.055719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:38.056700"], ["id", 2301]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4394], ["g5_updatable_hub_amenity_id", 2301]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4394]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4394) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:38.060729"], ["id", 4394]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:44:38.071613"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:44:38.073658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:44:38.076162"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:38.078492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4395]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4395]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4395) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:44:38.085515"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:38.087897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4396]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4396]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4396) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:44:38.099272"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:38.101487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4397]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:44:38.106157"], ["updated_at", "2016-12-12 17:44:38.106157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:44:38.107129"], ["id", 2302]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4397], ["g5_updatable_hub_amenity_id", 2302]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:44:38.109268"], ["updated_at", "2016-12-12 17:44:38.109268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:44:38.110361"], ["id", 2303]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4397], ["g5_updatable_hub_amenity_id", 2303]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4397]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4397) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:38.114078"], ["id", 4397]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:44:38.116530"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:38.118739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4398]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4398], ["g5_updatable_hub_amenity_id", 2302]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4398], ["g5_updatable_hub_amenity_id", 2303]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4398]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4398) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:44:38.126907"], ["id", 4398]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:44:38.129759"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:44:38.132052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4399]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4399]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4399) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:44:38.144466"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:44:38.145553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:44:38.147843"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:44:38.148884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:44:38.151465"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:44:38.152695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:44:38.155703"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:44:38.156748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:44:38.160344"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:44:38.161389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:44:38.164070"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:44:38.165201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:44:38.167687"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:44:38.168647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.171977"], ["updated_at", "2016-12-12 17:44:38.171977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1766) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1766) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:44:38.173247"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1766]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.178126"], ["updated_at", "2016-12-12 17:44:38.178126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1767) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1767) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:44:38.179336"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1767]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.183425"], ["updated_at", "2016-12-12 17:44:38.183425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1768) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1768) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:44:38.184592"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1768]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.189412"], ["updated_at", "2016-12-12 17:44:38.189412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1769) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1769) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:44:38.190771"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1769]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:44:38.195626"], ["updated_at", "2016-12-12 17:44:38.195626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1770) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1770) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:44:38.197257"], ["id", 1770]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1770]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:44:38.207279"], ["updated_at", "2016-12-12 17:44:38.207279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.209038"], ["updated_at", "2016-12-12 17:44:38.209038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:44:38.223666"], ["updated_at", "2016-12-12 17:44:38.223666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:44:38.236142"], ["updated_at", "2016-12-12 17:44:38.236142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1773]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:44:38.243191"], ["updated_at", "2016-12-12 17:44:38.243191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.245000"], ["updated_at", "2016-12-12 17:44:38.245000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:44:38.248390"], ["updated_at", "2016-12-12 17:44:38.248390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.250026"], ["updated_at", "2016-12-12 17:44:38.250026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.255819"], ["updated_at", "2016-12-12 17:44:38.255819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.257780"], ["updated_at", "2016-12-12 17:44:38.257780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (1.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.262699"], ["updated_at", "2016-12-12 17:44:38.262699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.264483"], ["updated_at", "2016-12-12 17:44:38.264483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.267389"], ["updated_at", "2016-12-12 17:44:38.267389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.269157"], ["updated_at", "2016-12-12 17:44:38.269157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.273188"], ["updated_at", "2016-12-12 17:44:38.273188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.274964"], ["updated_at", "2016-12-12 17:44:38.274964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.278435"], ["updated_at", "2016-12-12 17:44:38.278435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.280359"], ["updated_at", "2016-12-12 17:44:38.280359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.288951"], ["updated_at", "2016-12-12 17:44:38.288951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-12 17:44:38.290446"], ["updated_at", "2016-12-12 17:44:38.290446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-12 17:44:38.291381"], ["updated_at", "2016-12-12 17:44:38.291381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4413], ["g5_updatable_hub_amenity_id", 2304]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4413], ["g5_updatable_hub_amenity_id", 2305]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4413]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 4413) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-11|amenity-12|"], ["updated_at", "2016-12-12 17:44:38.295911"], ["id", 4413]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4413]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4413]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.299154"], ["updated_at", "2016-12-12 17:44:38.299154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-12 17:44:38.300380"], ["updated_at", "2016-12-12 17:44:38.300380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-12 17:44:38.301610"], ["updated_at", "2016-12-12 17:44:38.301610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4414], ["g5_updatable_hub_amenity_id", 2306]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4414], ["g5_updatable_hub_amenity_id", 2307]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4414]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 4414) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-13|amenity-14|"], ["updated_at", "2016-12-12 17:44:38.306796"], ["id", 4414]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4414]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4414]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4414]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4414]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4414]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.318165"], ["updated_at", "2016-12-12 17:44:38.318165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4415]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:44:38.325492"], ["updated_at", "2016-12-12 17:44:38.325492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.352123"], ["updated_at", "2016-12-12 17:44:38.352123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.355129"], ["updated_at", "2016-12-12 17:44:38.355129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.357682"], ["updated_at", "2016-12-12 17:44:38.357682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.360344"], ["updated_at", "2016-12-12 17:44:38.360344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.363475"], ["updated_at", "2016-12-12 17:44:38.363475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.365167"], ["updated_at", "2016-12-12 17:44:38.365167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.373957"], ["updated_at", "2016-12-12 17:44:38.373957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.377191"], ["updated_at", "2016-12-12 17:44:38.377191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.378749"], ["updated_at", "2016-12-12 17:44:38.378749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.381973"], ["updated_at", "2016-12-12 17:44:38.381973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.384645"], ["updated_at", "2016-12-12 17:44:38.384645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.386192"], ["updated_at", "2016-12-12 17:44:38.386192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.389941"], ["updated_at", "2016-12-12 17:44:38.389941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.392900"], ["updated_at", "2016-12-12 17:44:38.392900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.394509"], ["updated_at", "2016-12-12 17:44:38.394509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.398401"], ["updated_at", "2016-12-12 17:44:38.398401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.401186"], ["updated_at", "2016-12-12 17:44:38.401186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.402987"], ["updated_at", "2016-12-12 17:44:38.402987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.406558"], ["updated_at", "2016-12-12 17:44:38.406558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.409382"], ["updated_at", "2016-12-12 17:44:38.409382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.410979"], ["updated_at", "2016-12-12 17:44:38.410979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.414279"], ["updated_at", "2016-12-12 17:44:38.414279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.416932"], ["updated_at", "2016-12-12 17:44:38.416932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.418471"], ["updated_at", "2016-12-12 17:44:38.418471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.421781"], ["updated_at", "2016-12-12 17:44:38.421781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.424692"], ["updated_at", "2016-12-12 17:44:38.424692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.426269"], ["updated_at", "2016-12-12 17:44:38.426269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.429563"], ["updated_at", "2016-12-12 17:44:38.429563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.432305"], ["updated_at", "2016-12-12 17:44:38.432305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.433828"], ["updated_at", "2016-12-12 17:44:38.433828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:44:38.436202"], ["updated_at", "2016-12-12 17:44:38.436202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.438920"], ["updated_at", "2016-12-12 17:44:38.438920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.441848"], ["updated_at", "2016-12-12 17:44:38.441848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.443524"], ["updated_at", "2016-12-12 17:44:38.443524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.446256"], ["updated_at", "2016-12-12 17:44:38.446256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.449064"], ["updated_at", "2016-12-12 17:44:38.449064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.450668"], ["updated_at", "2016-12-12 17:44:38.450668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.453792"], ["updated_at", "2016-12-12 17:44:38.453792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.456886"], ["updated_at", "2016-12-12 17:44:38.456886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.458494"], ["updated_at", "2016-12-12 17:44:38.458494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:44:38.462117"], ["updated_at", "2016-12-12 17:44:38.462117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.465179"], ["updated_at", "2016-12-12 17:44:38.465179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:44:38.466808"], ["updated_at", "2016-12-12 17:44:38.466808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.520438"], ["updated_at", "2016-12-12 17:44:38.520438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:44:38.522294"], ["updated_at", "2016-12-12 17:44:38.522294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-12 17:44:38.523535"], ["updated_at", "2016-12-12 17:44:38.523535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-12 17:44:38.524488"], ["updated_at", "2016-12-12 17:44:38.524488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-12 17:44:38.525352"], ["updated_at", "2016-12-12 17:44:38.525352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4447], ["g5_updatable_hub_amenity_id", 2308]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4447], ["g5_updatable_hub_amenity_id", 2309]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.7ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:44:38.534718"], ["updated_at", "2016-12-12 17:44:38.534718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:44:38.536342"], ["updated_at", "2016-12-12 17:44:38.536342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-12 17:44:38.537604"], ["updated_at", "2016-12-12 17:44:38.537604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-12 17:44:38.538787"], ["updated_at", "2016-12-12 17:44:38.538787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-12 17:44:38.539738"], ["updated_at", "2016-12-12 17:44:38.539738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4448], ["g5_updatable_hub_amenity_id", 2311]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4448], ["g5_updatable_hub_amenity_id", 2312]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.5ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.546227"], ["updated_at", "2016-12-12 17:44:38.546227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.31ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:44:38.553876"], ["updated_at", "2016-12-12 17:44:38.553876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.3ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.6ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:57.222019"], ["updated_at", "2016-12-12 17:45:57.222019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:57.234460"], ["updated_at", "2016-12-12 17:45:57.234460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:57.237224"], ["updated_at", "2016-12-12 17:45:57.237224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:57.239563"], ["updated_at", "2016-12-12 17:45:57.239563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:45:57.252308"], ["updated_at", "2016-12-12 17:45:57.252308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:57.254702"], ["updated_at", "2016-12-12 17:45:57.254702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:57.256918"], ["updated_at", "2016-12-12 17:45:57.256918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:57.259214"], ["updated_at", "2016-12-12 17:45:57.259214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.08ms) Completed 200 OK in 12ms (Views: 3.3ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.296805"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.300457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4457]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.312867"], ["updated_at", "2016-12-12 17:45:57.312867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.315321"], ["id", 2314]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4457], ["g5_updatable_hub_amenity_id", 2314]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.320101"], ["updated_at", "2016-12-12 17:45:57.320101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.321324"], ["id", 2315]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4457], ["g5_updatable_hub_amenity_id", 2315]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4457]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4457) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.328530"], ["id", 4457]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:45:57.339481"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:45:57.341768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.344553"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.347037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4458]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4458]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4458) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:45:57.355371"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.357818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4459]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4459]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4459) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:45:57.365926"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.369019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4460]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.373466"], ["updated_at", "2016-12-12 17:45:57.373466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.374724"], ["id", 2316]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4460], ["g5_updatable_hub_amenity_id", 2316]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.377564"], ["updated_at", "2016-12-12 17:45:57.377564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.378784"], ["id", 2317]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4460], ["g5_updatable_hub_amenity_id", 2317]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4460]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4460) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.383144"], ["id", 4460]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:45:57.386359"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.389136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4461]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4461], ["g5_updatable_hub_amenity_id", 2316]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4461], ["g5_updatable_hub_amenity_id", 2317]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4461]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4461) LIMIT 1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.405736"], ["id", 4461]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:45:57.409450"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.411984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4462]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4462]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4462) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:45:57.426167"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:45:57.428157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.430553"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.432661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4463]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4463]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4463) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:45:57.439431"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.441696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4464]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4464]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4464) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:45:57.454121"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.456207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4465]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.460822"], ["updated_at", "2016-12-12 17:45:57.460822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.462004"], ["id", 2318]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4465], ["g5_updatable_hub_amenity_id", 2318]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.464538"], ["updated_at", "2016-12-12 17:45:57.464538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.465461"], ["id", 2319]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4465], ["g5_updatable_hub_amenity_id", 2319]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4465]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4465) LIMIT 1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.469766"], ["id", 4465]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:45:57.473013"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.475333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4466]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4466], ["g5_updatable_hub_amenity_id", 2318]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4466], ["g5_updatable_hub_amenity_id", 2319]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4466]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4466) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.485244"], ["id", 4466]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:45:57.487830"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.490161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4467]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4467]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4467) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:45:57.508281"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:45:57.510062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.512583"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.514719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4468]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4468]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4468) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:45:57.522084"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.524086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4469]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4469]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4469) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:45:57.530709"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.532920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4470]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.536746"], ["updated_at", "2016-12-12 17:45:57.536746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.537691"], ["id", 2320]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4470], ["g5_updatable_hub_amenity_id", 2320]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.539868"], ["updated_at", "2016-12-12 17:45:57.539868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.540894"], ["id", 2321]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4470], ["g5_updatable_hub_amenity_id", 2321]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4470]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4470) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.544609"], ["id", 4470]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:45:57.547176"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.549175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4471]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4471], ["g5_updatable_hub_amenity_id", 2320]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4471], ["g5_updatable_hub_amenity_id", 2321]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4471]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4471) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.557101"], ["id", 4471]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:45:57.559760"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.561984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4472]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4472]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4472) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4470]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:45:57.575216"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:45:57.577071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.579616"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.587514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4473]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4473]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4473) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:45:57.594953"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.597502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4474]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4474]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4474) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:45:57.604567"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.606773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4475]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.611070"], ["updated_at", "2016-12-12 17:45:57.611070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.612335"], ["id", 2322]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4475], ["g5_updatable_hub_amenity_id", 2322]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.615054"], ["updated_at", "2016-12-12 17:45:57.615054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.616154"], ["id", 2323]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4475], ["g5_updatable_hub_amenity_id", 2323]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4475]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4475) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.620474"], ["id", 4475]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:45:57.623237"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.625920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4476]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4476], ["g5_updatable_hub_amenity_id", 2322]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4476], ["g5_updatable_hub_amenity_id", 2323]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4476]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4476) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.635231"], ["id", 4476]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:45:57.637813"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.639946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4477]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4477]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4477) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1796) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1796) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:45:57.651727"], ["id", 1796]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4477]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4477]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4476]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2586]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2587]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4476]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4475]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2584]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2585]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4475]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4474]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4474]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4473]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4473]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:45:57.669617"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:45:57.671462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.674531"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.677631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4478]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4478]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4478) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:45:57.688100"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.691037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4479]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4479]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4479) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:45:57.700500"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.703618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4480]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.708998"], ["updated_at", "2016-12-12 17:45:57.708998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.710045"], ["id", 2324]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4480], ["g5_updatable_hub_amenity_id", 2324]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.712915"], ["updated_at", "2016-12-12 17:45:57.712915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.713980"], ["id", 2325]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4480], ["g5_updatable_hub_amenity_id", 2325]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4480]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4480) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.718864"], ["id", 4480]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:45:57.722046"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.724782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4481]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4481], ["g5_updatable_hub_amenity_id", 2324]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4481], ["g5_updatable_hub_amenity_id", 2325]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4481]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4481) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.735543"], ["id", 4481]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:45:57.738744"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.741397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4482]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4482]]  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4482) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1797) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1797) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:45:57.754316"], ["id", 1797]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4478) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-12 17:45:57.762169"], ["id", 4478]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4478]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4478]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4478) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4482]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4482]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4481]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2590]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2591]] SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4481]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4480]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2588]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2589]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4480]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4479]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4479]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.803870"], ["updated_at", "2016-12-12 17:45:57.803870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.805549"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.807586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4484]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.811400"], ["updated_at", "2016-12-12 17:45:57.811400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.812566"], ["id", 2326]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4484], ["g5_updatable_hub_amenity_id", 2326]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.815080"], ["updated_at", "2016-12-12 17:45:57.815080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.816335"], ["id", 2327]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4484], ["g5_updatable_hub_amenity_id", 2327]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4484]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4484) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.820260"], ["id", 4484]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4483]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.826192"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.828306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4485]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.832438"], ["updated_at", "2016-12-12 17:45:57.832438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.833694"], ["id", 2328]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4485], ["g5_updatable_hub_amenity_id", 2328]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.836138"], ["updated_at", "2016-12-12 17:45:57.836138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.837074"], ["id", 2329]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4485], ["g5_updatable_hub_amenity_id", 2329]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4485]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4485) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.840737"], ["id", 4485]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.845349"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.847710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4486]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.852218"], ["updated_at", "2016-12-12 17:45:57.852218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.853350"], ["id", 2330]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4486], ["g5_updatable_hub_amenity_id", 2330]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.855581"], ["updated_at", "2016-12-12 17:45:57.855581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.856481"], ["id", 2331]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4486], ["g5_updatable_hub_amenity_id", 2331]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4486]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4486) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.860182"], ["id", 4486]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4486]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4486]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.866766"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.869495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4487]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.873392"], ["updated_at", "2016-12-12 17:45:57.873392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.874361"], ["id", 2332]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4487], ["g5_updatable_hub_amenity_id", 2332]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.876645"], ["updated_at", "2016-12-12 17:45:57.876645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.877534"], ["id", 2333]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4487], ["g5_updatable_hub_amenity_id", 2333]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4487]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4487) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.881523"], ["id", 4487]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.888015"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.890199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4488]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.894230"], ["updated_at", "2016-12-12 17:45:57.894230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.895159"], ["id", 2334]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4488], ["g5_updatable_hub_amenity_id", 2334]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.897529"], ["updated_at", "2016-12-12 17:45:57.897529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.898448"], ["id", 2335]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4488], ["g5_updatable_hub_amenity_id", 2335]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4488]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4488) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.902768"], ["id", 4488]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.906962"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.909293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4489]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.913295"], ["updated_at", "2016-12-12 17:45:57.913295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.914253"], ["id", 2336]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4489], ["g5_updatable_hub_amenity_id", 2336]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.916733"], ["updated_at", "2016-12-12 17:45:57.916733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.917723"], ["id", 2337]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4489], ["g5_updatable_hub_amenity_id", 2337]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4489]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4489) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.921882"], ["id", 4489]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:45:57.924884"], ["updated_at", "2016-12-12 17:45:57.924884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:57.926607"], ["updated_at", "2016-12-12 17:45:57.926607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1798]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4490]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.930085"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.932362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4491]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.936950"], ["updated_at", "2016-12-12 17:45:57.936950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.937957"], ["id", 2338]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4491], ["g5_updatable_hub_amenity_id", 2338]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.940144"], ["updated_at", "2016-12-12 17:45:57.940144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.941127"], ["id", 2339]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4491], ["g5_updatable_hub_amenity_id", 2339]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4491]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4491) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.944664"], ["id", 4491]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.949726"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.952562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4492]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.956955"], ["updated_at", "2016-12-12 17:45:57.956955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.958071"], ["id", 2340]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4492], ["g5_updatable_hub_amenity_id", 2340]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.960355"], ["updated_at", "2016-12-12 17:45:57.960355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.961368"], ["id", 2341]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4492], ["g5_updatable_hub_amenity_id", 2341]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4492]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4492) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.965352"], ["id", 4492]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.971180"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.973608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4493]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.977850"], ["updated_at", "2016-12-12 17:45:57.977850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:57.978883"], ["id", 2342]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4493], ["g5_updatable_hub_amenity_id", 2342]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:57.981222"], ["updated_at", "2016-12-12 17:45:57.981222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:57.982303"], ["id", 2343]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4493], ["g5_updatable_hub_amenity_id", 2343]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4493]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4493) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:57.987179"], ["id", 4493]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:57.992254"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:57.994878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4494]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:57.999278"], ["updated_at", "2016-12-12 17:45:57.999278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.000710"], ["id", 2344]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4494], ["g5_updatable_hub_amenity_id", 2344]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.008020"], ["updated_at", "2016-12-12 17:45:58.008020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.009099"], ["id", 2345]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4494], ["g5_updatable_hub_amenity_id", 2345]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4494]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4494) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.013405"], ["id", 4494]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.019483"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.021851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4495]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.026184"], ["updated_at", "2016-12-12 17:45:58.026184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.027243"], ["id", 2346]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4495], ["g5_updatable_hub_amenity_id", 2346]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.029962"], ["updated_at", "2016-12-12 17:45:58.029962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.030967"], ["id", 2347]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4495], ["g5_updatable_hub_amenity_id", 2347]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4495]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4495) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.036003"], ["id", 4495]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.041992"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.044399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4496]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.048992"], ["updated_at", "2016-12-12 17:45:58.048992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.050336"], ["id", 2348]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4496], ["g5_updatable_hub_amenity_id", 2348]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.053475"], ["updated_at", "2016-12-12 17:45:58.053475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.054574"], ["id", 2349]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4496], ["g5_updatable_hub_amenity_id", 2349]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4496]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4496) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.058678"], ["id", 4496]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.064052"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.066416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4497]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.071328"], ["updated_at", "2016-12-12 17:45:58.071328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.072337"], ["id", 2350]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4497], ["g5_updatable_hub_amenity_id", 2350]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.074535"], ["updated_at", "2016-12-12 17:45:58.074535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.075513"], ["id", 2351]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4497], ["g5_updatable_hub_amenity_id", 2351]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4497]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4497) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.079212"], ["id", 4497]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:45:58.083830"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:45:58.087324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4498) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.094313"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4498]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4498]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.101803"], ["updated_at", "2016-12-12 17:45:58.101803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.103163"], ["id", 2352]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4498], ["g5_updatable_hub_amenity_id", 2352]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.105669"], ["updated_at", "2016-12-12 17:45:58.105669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.106551"], ["id", 2353]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4498], ["g5_updatable_hub_amenity_id", 2353]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4498]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4498) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.110653"], ["id", 4498]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4498]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:45:58.114898"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:45:58.118256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4499) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.125341"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4499]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4499]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.132019"], ["updated_at", "2016-12-12 17:45:58.132019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.133393"], ["id", 2354]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4499], ["g5_updatable_hub_amenity_id", 2354]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.136307"], ["updated_at", "2016-12-12 17:45:58.136307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.137316"], ["id", 2355]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4499], ["g5_updatable_hub_amenity_id", 2355]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4499]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4499) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.141090"], ["id", 4499]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:45:58.144109"], ["updated_at", "2016-12-12 17:45:58.144109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.145788"], ["updated_at", "2016-12-12 17:45:58.145788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1799]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4500]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.151210"], ["updated_at", "2016-12-12 17:45:58.151210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-12 17:45:58.157148"], ["updated_at", "2016-12-12 17:45:58.157148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.160686"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.163179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4503]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.167433"], ["updated_at", "2016-12-12 17:45:58.167433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.168905"], ["id", 2356]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4503], ["g5_updatable_hub_amenity_id", 2356]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.172420"], ["updated_at", "2016-12-12 17:45:58.172420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.173513"], ["id", 2357]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4503], ["g5_updatable_hub_amenity_id", 2357]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4503]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4503) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.177927"], ["id", 4503]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4501]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4501]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.185895"], ["updated_at", "2016-12-12 17:45:58.185895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.187787"], ["updated_at", "2016-12-12 17:45:58.187787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4504], ["g5_updatable_hub_amenity_id", 2358]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4504) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.190550"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4504]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4504]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.197938"], ["id", 2358]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4504], ["g5_updatable_hub_amenity_id", 2358]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.200632"], ["updated_at", "2016-12-12 17:45:58.200632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.201712"], ["id", 2359]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4504], ["g5_updatable_hub_amenity_id", 2359]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4504]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4504) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.206181"], ["id", 4504]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4504]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.216797"], ["updated_at", "2016-12-12 17:45:58.216797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.218610"], ["updated_at", "2016-12-12 17:45:58.218610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4505], ["g5_updatable_hub_amenity_id", 2360]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4505) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.221821"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4505]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4505]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.228489"], ["updated_at", "2016-12-12 17:45:58.228489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.229568"], ["id", 2361]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4505], ["g5_updatable_hub_amenity_id", 2361]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.231861"], ["updated_at", "2016-12-12 17:45:58.231861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.233011"], ["id", 2362]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4505], ["g5_updatable_hub_amenity_id", 2362]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4505]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4505) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.237559"], ["id", 4505]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.242566"], ["updated_at", "2016-12-12 17:45:58.242566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.244074"], ["updated_at", "2016-12-12 17:45:58.244074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4506], ["g5_updatable_hub_amenity_id", 2363]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4506) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.246629"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4506]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4506]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.253880"], ["updated_at", "2016-12-12 17:45:58.253880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.254867"], ["id", 2364]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4506], ["g5_updatable_hub_amenity_id", 2364]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.257013"], ["updated_at", "2016-12-12 17:45:58.257013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.257930"], ["id", 2365]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4506], ["g5_updatable_hub_amenity_id", 2365]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4506]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4506) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.261595"], ["id", 4506]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.266342"], ["updated_at", "2016-12-12 17:45:58.266342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.268237"], ["updated_at", "2016-12-12 17:45:58.268237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4507], ["g5_updatable_hub_amenity_id", 2366]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4507) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.271638"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4507]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4507]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.278358"], ["updated_at", "2016-12-12 17:45:58.278358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.279480"], ["id", 2367]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4507], ["g5_updatable_hub_amenity_id", 2367]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.281807"], ["updated_at", "2016-12-12 17:45:58.281807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.282744"], ["id", 2368]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4507], ["g5_updatable_hub_amenity_id", 2368]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4507]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4507) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.287481"], ["id", 4507]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.293344"], ["updated_at", "2016-12-12 17:45:58.293344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.295083"], ["updated_at", "2016-12-12 17:45:58.295083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4508], ["g5_updatable_hub_amenity_id", 2369]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4508) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.297943"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4508]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4508]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.304690"], ["updated_at", "2016-12-12 17:45:58.304690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.306047"], ["id", 2370]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4508], ["g5_updatable_hub_amenity_id", 2370]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.308980"], ["updated_at", "2016-12-12 17:45:58.308980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.309992"], ["id", 2371]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4508], ["g5_updatable_hub_amenity_id", 2371]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4508]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4508) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.314168"], ["id", 4508]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.319542"], ["updated_at", "2016-12-12 17:45:58.319542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.321251"], ["updated_at", "2016-12-12 17:45:58.321251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4509], ["g5_updatable_hub_amenity_id", 2372]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4509) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.323918"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4509]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4509]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.330760"], ["updated_at", "2016-12-12 17:45:58.330760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.331939"], ["id", 2373]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4509], ["g5_updatable_hub_amenity_id", 2373]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.334521"], ["updated_at", "2016-12-12 17:45:58.334521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.335481"], ["id", 2374]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4509], ["g5_updatable_hub_amenity_id", 2374]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4509]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4509) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.339052"], ["id", 4509]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:45:58.342115"], ["updated_at", "2016-12-12 17:45:58.342115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.343731"], ["updated_at", "2016-12-12 17:45:58.343731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1800]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4510]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.347228"], ["updated_at", "2016-12-12 17:45:58.347228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.348726"], ["updated_at", "2016-12-12 17:45:58.348726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4511], ["g5_updatable_hub_amenity_id", 2375]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4511) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.351447"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4511]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4511]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.357775"], ["updated_at", "2016-12-12 17:45:58.357775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.358832"], ["id", 2376]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4511], ["g5_updatable_hub_amenity_id", 2376]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.361510"], ["id", 2375]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4511], ["g5_updatable_hub_amenity_id", 2375]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4511]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4511) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.365601"], ["id", 4511]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.371482"], ["updated_at", "2016-12-12 17:45:58.371482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.373070"], ["updated_at", "2016-12-12 17:45:58.373070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4512], ["g5_updatable_hub_amenity_id", 2377]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4512) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.375708"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4512]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4512]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.382134"], ["updated_at", "2016-12-12 17:45:58.382134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.383359"], ["id", 2378]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4512], ["g5_updatable_hub_amenity_id", 2378]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.385542"], ["updated_at", "2016-12-12 17:45:58.385542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.386467"], ["id", 2379]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4512], ["g5_updatable_hub_amenity_id", 2379]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4512]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4512) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.390004"], ["id", 4512]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.395527"], ["updated_at", "2016-12-12 17:45:58.395527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.397059"], ["updated_at", "2016-12-12 17:45:58.397059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4513], ["g5_updatable_hub_amenity_id", 2380]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4513) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.399472"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4513]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4513]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.406124"], ["updated_at", "2016-12-12 17:45:58.406124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.407067"], ["id", 2381]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4513], ["g5_updatable_hub_amenity_id", 2381]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.409287"], ["updated_at", "2016-12-12 17:45:58.409287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.410278"], ["id", 2382]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4513], ["g5_updatable_hub_amenity_id", 2382]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4513]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4513) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.414472"], ["id", 4513]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.420472"], ["updated_at", "2016-12-12 17:45:58.420472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.422146"], ["updated_at", "2016-12-12 17:45:58.422146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4514], ["g5_updatable_hub_amenity_id", 2383]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4514) LIMIT 1 SQL (8.8ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.424741"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4514]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4514]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.445458"], ["updated_at", "2016-12-12 17:45:58.445458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.446526"], ["id", 2384]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4514], ["g5_updatable_hub_amenity_id", 2384]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.448835"], ["updated_at", "2016-12-12 17:45:58.448835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.450344"], ["id", 2385]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4514], ["g5_updatable_hub_amenity_id", 2385]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4514]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4514) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.455647"], ["id", 4514]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:45:58.459175"], ["updated_at", "2016-12-12 17:45:58.459175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.461050"], ["updated_at", "2016-12-12 17:45:58.461050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1801]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4515]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.464591"], ["updated_at", "2016-12-12 17:45:58.464591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4516) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.466310"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4516]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4516]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.473783"], ["updated_at", "2016-12-12 17:45:58.473783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.474876"], ["id", 2386]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4516], ["g5_updatable_hub_amenity_id", 2386]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.477224"], ["updated_at", "2016-12-12 17:45:58.477224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.478134"], ["id", 2387]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4516], ["g5_updatable_hub_amenity_id", 2387]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4516]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4516) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.481999"], ["id", 4516]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.486672"], ["updated_at", "2016-12-12 17:45:58.486672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4517) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.488880"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4517]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4517]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4517]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4517) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:45:58.497996"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.500269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4518]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4518]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4518) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:45:58.507061"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.509485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4519]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.513524"], ["updated_at", "2016-12-12 17:45:58.513524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.514467"], ["id", 2388]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4519], ["g5_updatable_hub_amenity_id", 2388]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.516793"], ["updated_at", "2016-12-12 17:45:58.516793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.517885"], ["id", 2389]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4519], ["g5_updatable_hub_amenity_id", 2389]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4519]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4519) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.521962"], ["id", 4519]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:45:58.524363"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.526472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4520]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4520], ["g5_updatable_hub_amenity_id", 2388]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4520], ["g5_updatable_hub_amenity_id", 2389]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4520]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4520) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.535374"], ["id", 4520]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:45:58.537746"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.539799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4521]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4521]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4521) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.547632"], ["updated_at", "2016-12-12 17:45:58.547632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4522) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.549569"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4522]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4522]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.555887"], ["updated_at", "2016-12-12 17:45:58.555887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.556841"], ["id", 2390]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4522], ["g5_updatable_hub_amenity_id", 2390]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.559123"], ["updated_at", "2016-12-12 17:45:58.559123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.560042"], ["id", 2391]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4522], ["g5_updatable_hub_amenity_id", 2391]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4522]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4522) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.564128"], ["id", 4522]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.569515"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.572153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4523]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.576225"], ["updated_at", "2016-12-12 17:45:58.576225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.577337"], ["id", 2392]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4523], ["g5_updatable_hub_amenity_id", 2392]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.579752"], ["updated_at", "2016-12-12 17:45:58.579752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.580719"], ["id", 2393]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4523], ["g5_updatable_hub_amenity_id", 2393]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4523]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4523) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.584806"], ["id", 4523]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.590457"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.593007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4524]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.597144"], ["updated_at", "2016-12-12 17:45:58.597144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.598098"], ["id", 2394]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4524], ["g5_updatable_hub_amenity_id", 2394]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.600565"], ["updated_at", "2016-12-12 17:45:58.600565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.601489"], ["id", 2395]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4524], ["g5_updatable_hub_amenity_id", 2395]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4524]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4524) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.605258"], ["id", 4524]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.625628"], ["updated_at", "2016-12-12 17:45:58.625628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:45:58.631928"], ["updated_at", "2016-12-12 17:45:58.631928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.633314"], ["updated_at", "2016-12-12 17:45:58.633314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.634210"], ["updated_at", "2016-12-12 17:45:58.634210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.635071"], ["updated_at", "2016-12-12 17:45:58.635071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4525], ["g5_updatable_hub_amenity_id", 2396]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4525], ["g5_updatable_hub_amenity_id", 2397]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.7ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.643467"], ["updated_at", "2016-12-12 17:45:58.643467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:45:58.644991"], ["updated_at", "2016-12-12 17:45:58.644991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.646214"], ["updated_at", "2016-12-12 17:45:58.646214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.647135"], ["updated_at", "2016-12-12 17:45:58.647135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.648038"], ["updated_at", "2016-12-12 17:45:58.648038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4526], ["g5_updatable_hub_amenity_id", 2399]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4526], ["g5_updatable_hub_amenity_id", 2400]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.657883"], ["updated_at", "2016-12-12 17:45:58.657883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4527]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:45:58.668265"], ["updated_at", "2016-12-12 17:45:58.668265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.701039"], ["updated_at", "2016-12-12 17:45:58.701039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.703541"], ["updated_at", "2016-12-12 17:45:58.703541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.706258"], ["updated_at", "2016-12-12 17:45:58.706258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.708982"], ["updated_at", "2016-12-12 17:45:58.708982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.712141"], ["updated_at", "2016-12-12 17:45:58.712141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.713805"], ["updated_at", "2016-12-12 17:45:58.713805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.717500"], ["updated_at", "2016-12-12 17:45:58.717500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.720781"], ["updated_at", "2016-12-12 17:45:58.720781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.722344"], ["updated_at", "2016-12-12 17:45:58.722344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.725653"], ["updated_at", "2016-12-12 17:45:58.725653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.728367"], ["updated_at", "2016-12-12 17:45:58.728367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.730081"], ["updated_at", "2016-12-12 17:45:58.730081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.733702"], ["updated_at", "2016-12-12 17:45:58.733702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.736546"], ["updated_at", "2016-12-12 17:45:58.736546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.738149"], ["updated_at", "2016-12-12 17:45:58.738149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.741349"], ["updated_at", "2016-12-12 17:45:58.741349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.744182"], ["updated_at", "2016-12-12 17:45:58.744182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.745753"], ["updated_at", "2016-12-12 17:45:58.745753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.748995"], ["updated_at", "2016-12-12 17:45:58.748995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.751745"], ["updated_at", "2016-12-12 17:45:58.751745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.753321"], ["updated_at", "2016-12-12 17:45:58.753321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.756699"], ["updated_at", "2016-12-12 17:45:58.756699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.759446"], ["updated_at", "2016-12-12 17:45:58.759446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.761122"], ["updated_at", "2016-12-12 17:45:58.761122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.764586"], ["updated_at", "2016-12-12 17:45:58.764586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.767837"], ["updated_at", "2016-12-12 17:45:58.767837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.769537"], ["updated_at", "2016-12-12 17:45:58.769537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.772891"], ["updated_at", "2016-12-12 17:45:58.772891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.775574"], ["updated_at", "2016-12-12 17:45:58.775574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.777277"], ["updated_at", "2016-12-12 17:45:58.777277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.781280"], ["updated_at", "2016-12-12 17:45:58.781280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.784248"], ["updated_at", "2016-12-12 17:45:58.784248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.785791"], ["updated_at", "2016-12-12 17:45:58.785791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.789523"], ["updated_at", "2016-12-12 17:45:58.789523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.792951"], ["updated_at", "2016-12-12 17:45:58.792951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.794729"], ["updated_at", "2016-12-12 17:45:58.794729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:45:58.797154"], ["updated_at", "2016-12-12 17:45:58.797154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.799490"], ["updated_at", "2016-12-12 17:45:58.799490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.802401"], ["updated_at", "2016-12-12 17:45:58.802401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.803951"], ["updated_at", "2016-12-12 17:45:58.803951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:45:58.806604"], ["updated_at", "2016-12-12 17:45:58.806604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:58.809420"], ["updated_at", "2016-12-12 17:45:58.809420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:45:58.811234"], ["updated_at", "2016-12-12 17:45:58.811234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:45:58.819421"], ["updated_at", "2016-12-12 17:45:58.819421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.821338"], ["updated_at", "2016-12-12 17:45:58.821338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:45:58.824661"], ["updated_at", "2016-12-12 17:45:58.824661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.826448"], ["updated_at", "2016-12-12 17:45:58.826448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.834132"], ["updated_at", "2016-12-12 17:45:58.834132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.836007"], ["updated_at", "2016-12-12 17:45:58.836007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.839541"], ["updated_at", "2016-12-12 17:45:58.839541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.841269"], ["updated_at", "2016-12-12 17:45:58.841269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.845205"], ["updated_at", "2016-12-12 17:45:58.845205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.847133"], ["updated_at", "2016-12-12 17:45:58.847133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.851031"], ["updated_at", "2016-12-12 17:45:58.851031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.852785"], ["updated_at", "2016-12-12 17:45:58.852785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.855535"], ["updated_at", "2016-12-12 17:45:58.855535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.857302"], ["updated_at", "2016-12-12 17:45:58.857302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.860879"], ["updated_at", "2016-12-12 17:45:58.860879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.862266"], ["updated_at", "2016-12-12 17:45:58.862266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.863296"], ["updated_at", "2016-12-12 17:45:58.863296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4571], ["g5_updatable_hub_amenity_id", 2402]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4571], ["g5_updatable_hub_amenity_id", 2403]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4571]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 4571) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-17|amenity-18|"], ["updated_at", "2016-12-12 17:45:58.868423"], ["id", 4571]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4571]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4571]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.871930"], ["updated_at", "2016-12-12 17:45:58.871930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.873190"], ["updated_at", "2016-12-12 17:45:58.873190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-12 17:45:58.874182"], ["updated_at", "2016-12-12 17:45:58.874182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4572], ["g5_updatable_hub_amenity_id", 2404]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4572], ["g5_updatable_hub_amenity_id", 2405]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4572]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 4572) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-19|amenity-20|"], ["updated_at", "2016-12-12 17:45:58.878726"], ["id", 4572]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4572]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4572]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4572]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4572]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4572]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:45:58.885390"], ["updated_at", "2016-12-12 17:45:58.885390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.887163"], ["updated_at", "2016-12-12 17:45:58.887163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:45:58.892873"], ["updated_at", "2016-12-12 17:45:58.892873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:45:58.910094"], ["updated_at", "2016-12-12 17:45:58.910094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1821]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.916015"], ["updated_at", "2016-12-12 17:45:58.916015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.32ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:45:58.923804"], ["updated_at", "2016-12-12 17:45:58.923804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.31ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:45:58.939934"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:45:58.941721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:45:58.944064"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.946213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4576]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4576]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4576) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:45:58.953463"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.955695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4577]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4577]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4577) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:45:58.962835"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.965055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4578]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:45:58.969665"], ["updated_at", "2016-12-12 17:45:58.969665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:45:58.970716"], ["id", 2406]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4578], ["g5_updatable_hub_amenity_id", 2406]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:45:58.973000"], ["updated_at", "2016-12-12 17:45:58.973000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:45:58.973997"], ["id", 2407]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4578], ["g5_updatable_hub_amenity_id", 2407]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4578]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4578) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.977805"], ["id", 4578]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:45:58.980307"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.982495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4579]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4579], ["g5_updatable_hub_amenity_id", 2406]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4579], ["g5_updatable_hub_amenity_id", 2407]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4579]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4579) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:45:58.990646"], ["id", 4579]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:45:58.993129"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:45:58.995294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4580]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4580]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4580) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:45:59.008987"], ["updated_at", "2016-12-12 17:45:59.008987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1823) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1823) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:45:59.010983"], ["id", 1823]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1823]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:59.016229"], ["updated_at", "2016-12-12 17:45:59.016229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1824) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1824) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:45:59.017559"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1824]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:59.022472"], ["updated_at", "2016-12-12 17:45:59.022472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1825) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1825) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:45:59.023723"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1825]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:59.028231"], ["updated_at", "2016-12-12 17:45:59.028231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1826) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1826) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:45:59.029464"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1826]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:45:59.034454"], ["updated_at", "2016-12-12 17:45:59.034454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1827) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1827) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:45:59.035667"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1827]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:45:59.039597"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:45:59.040677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:45:59.043225"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:45:59.044209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:45:59.047353"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:45:59.048354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:45:59.051005"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:45:59.052051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:45:59.054300"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:45:59.055314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:45:59.057866"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:45:59.058855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:45:59.061815"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:45:59.063014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.6ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.195854"], ["updated_at", "2016-12-12 17:47:54.195854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.200393"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.203602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4582]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.220389"], ["updated_at", "2016-12-12 17:47:54.220389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.222578"], ["id", 2408]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4582], ["g5_updatable_hub_amenity_id", 2408]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.231016"], ["updated_at", "2016-12-12 17:47:54.231016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.232114"], ["id", 2409]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4582], ["g5_updatable_hub_amenity_id", 2409]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4582]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4582) LIMIT 1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.239139"], ["id", 4582]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4581]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4581]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:54.247360"], ["updated_at", "2016-12-12 17:47:54.247360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4583) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.249621"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4583]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4583]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.256500"], ["updated_at", "2016-12-12 17:47:54.256500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.257512"], ["id", 2410]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4583], ["g5_updatable_hub_amenity_id", 2410]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.260083"], ["updated_at", "2016-12-12 17:47:54.260083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.261078"], ["id", 2411]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4583], ["g5_updatable_hub_amenity_id", 2411]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4583]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4583) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.264828"], ["id", 4583]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:54.268753"], ["updated_at", "2016-12-12 17:47:54.268753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4584) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.270485"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4584]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4584]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.277677"], ["updated_at", "2016-12-12 17:47:54.277677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.278709"], ["id", 2412]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4584], ["g5_updatable_hub_amenity_id", 2412]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.281097"], ["updated_at", "2016-12-12 17:47:54.281097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.282079"], ["id", 2413]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4584], ["g5_updatable_hub_amenity_id", 2413]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4584]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4584) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.286352"], ["id", 4584]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:54.290363"], ["updated_at", "2016-12-12 17:47:54.290363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4585) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.292846"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4585]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4585]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4585]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4585) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:47:54.302387"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.304516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4586]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4586]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4586) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:47:54.311815"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.314156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4587]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.318309"], ["updated_at", "2016-12-12 17:47:54.318309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.319331"], ["id", 2414]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4587], ["g5_updatable_hub_amenity_id", 2414]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.321529"], ["updated_at", "2016-12-12 17:47:54.321529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.322559"], ["id", 2415]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4587], ["g5_updatable_hub_amenity_id", 2415]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4587]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4587) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.327257"], ["id", 4587]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:47:54.329910"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.332185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4588]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4588], ["g5_updatable_hub_amenity_id", 2414]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4588], ["g5_updatable_hub_amenity_id", 2415]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4588]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4588) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.341258"], ["id", 4588]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:47:54.344218"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.346480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4589]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4589]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4589) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.360871"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.363204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4590]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.367229"], ["updated_at", "2016-12-12 17:47:54.367229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.368184"], ["id", 2416]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4590], ["g5_updatable_hub_amenity_id", 2416]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.370302"], ["updated_at", "2016-12-12 17:47:54.370302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.371195"], ["id", 2417]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4590], ["g5_updatable_hub_amenity_id", 2417]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4590]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4590) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.375361"], ["id", 4590]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.380100"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.382364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4591]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.386640"], ["updated_at", "2016-12-12 17:47:54.386640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.387698"], ["id", 2418]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4591], ["g5_updatable_hub_amenity_id", 2418]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.390017"], ["updated_at", "2016-12-12 17:47:54.390017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.390878"], ["id", 2419]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4591], ["g5_updatable_hub_amenity_id", 2419]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4591]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4591) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.394847"], ["id", 4591]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4591]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4591]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.400971"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.403119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4592]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.407009"], ["updated_at", "2016-12-12 17:47:54.407009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.408446"], ["id", 2420]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4592], ["g5_updatable_hub_amenity_id", 2420]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.411092"], ["updated_at", "2016-12-12 17:47:54.411092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.411982"], ["id", 2421]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4592], ["g5_updatable_hub_amenity_id", 2421]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4592]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4592) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.415596"], ["id", 4592]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.419222"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.421291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4593]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.425564"], ["updated_at", "2016-12-12 17:47:54.425564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.426525"], ["id", 2422]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4593], ["g5_updatable_hub_amenity_id", 2422]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.428671"], ["updated_at", "2016-12-12 17:47:54.428671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.429587"], ["id", 2423]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4593], ["g5_updatable_hub_amenity_id", 2423]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4593]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4593) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.433317"], ["id", 4593]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.439514"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.441875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4594]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.445622"], ["updated_at", "2016-12-12 17:47:54.445622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.446525"], ["id", 2424]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4594], ["g5_updatable_hub_amenity_id", 2424]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.448784"], ["updated_at", "2016-12-12 17:47:54.448784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.449661"], ["id", 2425]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4594], ["g5_updatable_hub_amenity_id", 2425]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4594]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4594) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.453203"], ["id", 4594]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.457758"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.459985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4595]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.463941"], ["updated_at", "2016-12-12 17:47:54.463941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.464903"], ["id", 2426]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4595], ["g5_updatable_hub_amenity_id", 2426]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.467043"], ["updated_at", "2016-12-12 17:47:54.467043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.467931"], ["id", 2427]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4595], ["g5_updatable_hub_amenity_id", 2427]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4595]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4595) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.471559"], ["id", 4595]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.476560"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.478647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4596]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.482644"], ["updated_at", "2016-12-12 17:47:54.482644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.483926"], ["id", 2428]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4596], ["g5_updatable_hub_amenity_id", 2428]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.486425"], ["updated_at", "2016-12-12 17:47:54.486425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.487492"], ["id", 2429]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4596], ["g5_updatable_hub_amenity_id", 2429]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4596]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4596) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.491252"], ["id", 4596]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.497151"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.499510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4597]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.503565"], ["updated_at", "2016-12-12 17:47:54.503565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.504570"], ["id", 2430]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4597], ["g5_updatable_hub_amenity_id", 2430]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.506749"], ["updated_at", "2016-12-12 17:47:54.506749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.507964"], ["id", 2431]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4597], ["g5_updatable_hub_amenity_id", 2431]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4597]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4597) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.512279"], ["id", 4597]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.516914"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.518964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4598]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.522762"], ["updated_at", "2016-12-12 17:47:54.522762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.524121"], ["id", 2432]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4598], ["g5_updatable_hub_amenity_id", 2432]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.526651"], ["updated_at", "2016-12-12 17:47:54.526651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.527657"], ["id", 2433]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4598], ["g5_updatable_hub_amenity_id", 2433]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4598]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4598) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.531501"], ["id", 4598]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-12 17:47:54.539470"], ["updated_at", "2016-12-12 17:47:54.539470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:54.542007"], ["updated_at", "2016-12-12 17:47:54.542007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1835]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4599]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.545514"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.547894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4600]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.551665"], ["updated_at", "2016-12-12 17:47:54.551665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.552627"], ["id", 2434]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4600], ["g5_updatable_hub_amenity_id", 2434]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.554854"], ["updated_at", "2016-12-12 17:47:54.554854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.555769"], ["id", 2435]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4600], ["g5_updatable_hub_amenity_id", 2435]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4600]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4600) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.559687"], ["id", 4600]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.569395"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.571778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4601]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.576422"], ["updated_at", "2016-12-12 17:47:54.576422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.577434"], ["id", 2436]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4601], ["g5_updatable_hub_amenity_id", 2436]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.579850"], ["updated_at", "2016-12-12 17:47:54.579850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.581092"], ["id", 2437]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4601], ["g5_updatable_hub_amenity_id", 2437]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4601]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4601) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.585342"], ["id", 4601]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.590479"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.593128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4602]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.597274"], ["updated_at", "2016-12-12 17:47:54.597274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.598307"], ["id", 2438]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4602], ["g5_updatable_hub_amenity_id", 2438]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.600571"], ["updated_at", "2016-12-12 17:47:54.600571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.601507"], ["id", 2439]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4602], ["g5_updatable_hub_amenity_id", 2439]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4602]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4602) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.605098"], ["id", 4602]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.612602"], ["updated_at", "2016-12-12 17:47:54.612602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-12 17:47:54.618423"], ["updated_at", "2016-12-12 17:47:54.618423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.622034"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.624974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4605]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.630340"], ["updated_at", "2016-12-12 17:47:54.630340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.631500"], ["id", 2440]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4605], ["g5_updatable_hub_amenity_id", 2440]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.633889"], ["updated_at", "2016-12-12 17:47:54.633889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.635169"], ["id", 2441]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4605], ["g5_updatable_hub_amenity_id", 2441]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4605]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4605) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.639756"], ["id", 4605]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4603]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4603]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.647558"], ["updated_at", "2016-12-12 17:47:54.647558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-12 17:47:54.649476"], ["updated_at", "2016-12-12 17:47:54.649476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4606], ["g5_updatable_hub_amenity_id", 2442]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4606) LIMIT 1 SQL (0.6ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.652932"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4606]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4606]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.661256"], ["id", 2442]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4606], ["g5_updatable_hub_amenity_id", 2442]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.663678"], ["updated_at", "2016-12-12 17:47:54.663678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.664690"], ["id", 2443]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4606], ["g5_updatable_hub_amenity_id", 2443]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4606]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4606) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.668777"], ["id", 4606]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.674367"], ["updated_at", "2016-12-12 17:47:54.674367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-12 17:47:54.676296"], ["updated_at", "2016-12-12 17:47:54.676296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4607], ["g5_updatable_hub_amenity_id", 2444]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4607) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.679525"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4607]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4607]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.689658"], ["updated_at", "2016-12-12 17:47:54.689658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.691028"], ["id", 2445]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4607], ["g5_updatable_hub_amenity_id", 2445]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.693570"], ["updated_at", "2016-12-12 17:47:54.693570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.694676"], ["id", 2446]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4607], ["g5_updatable_hub_amenity_id", 2446]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4607]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4607) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.699409"], ["id", 4607]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.705527"], ["updated_at", "2016-12-12 17:47:54.705527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-12 17:47:54.707142"], ["updated_at", "2016-12-12 17:47:54.707142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4608], ["g5_updatable_hub_amenity_id", 2447]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4608) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.710444"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4608]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4608]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.718791"], ["updated_at", "2016-12-12 17:47:54.718791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.719932"], ["id", 2448]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4608], ["g5_updatable_hub_amenity_id", 2448]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.722230"], ["updated_at", "2016-12-12 17:47:54.722230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.723348"], ["id", 2449]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4608], ["g5_updatable_hub_amenity_id", 2449]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4608]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4608) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.727897"], ["id", 4608]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4608]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.734994"], ["updated_at", "2016-12-12 17:47:54.734994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-12 17:47:54.736819"], ["updated_at", "2016-12-12 17:47:54.736819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4609], ["g5_updatable_hub_amenity_id", 2450]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4609) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.739926"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4609]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4609]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.749072"], ["updated_at", "2016-12-12 17:47:54.749072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.750234"], ["id", 2451]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4609], ["g5_updatable_hub_amenity_id", 2451]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.752816"], ["updated_at", "2016-12-12 17:47:54.752816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.753843"], ["id", 2452]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4609], ["g5_updatable_hub_amenity_id", 2452]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4609]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4609) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.758491"], ["id", 4609]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.764405"], ["updated_at", "2016-12-12 17:47:54.764405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-12 17:47:54.766074"], ["updated_at", "2016-12-12 17:47:54.766074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4610], ["g5_updatable_hub_amenity_id", 2453]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4610) LIMIT 1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.768849"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4610]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4610]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.777968"], ["updated_at", "2016-12-12 17:47:54.777968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.779096"], ["id", 2454]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4610], ["g5_updatable_hub_amenity_id", 2454]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.782000"], ["updated_at", "2016-12-12 17:47:54.782000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.783127"], ["id", 2455]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4610], ["g5_updatable_hub_amenity_id", 2455]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4610]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4610) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.788052"], ["id", 4610]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.798522"], ["updated_at", "2016-12-12 17:47:54.798522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-12 17:47:54.800335"], ["updated_at", "2016-12-12 17:47:54.800335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4611], ["g5_updatable_hub_amenity_id", 2456]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4611) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.816309"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4611]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4611]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.823371"], ["updated_at", "2016-12-12 17:47:54.823371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.824727"], ["id", 2457]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4611], ["g5_updatable_hub_amenity_id", 2457]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.827003"], ["updated_at", "2016-12-12 17:47:54.827003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.827885"], ["id", 2458]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4611], ["g5_updatable_hub_amenity_id", 2458]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4611]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4611) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.831893"], ["id", 4611]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.837726"], ["updated_at", "2016-12-12 17:47:54.837726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-12 17:47:54.839333"], ["updated_at", "2016-12-12 17:47:54.839333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4612], ["g5_updatable_hub_amenity_id", 2459]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4612) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.842100"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4612]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4612]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.848894"], ["updated_at", "2016-12-12 17:47:54.848894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.850096"], ["id", 2460]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4612], ["g5_updatable_hub_amenity_id", 2460]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.852459"], ["id", 2459]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4612], ["g5_updatable_hub_amenity_id", 2459]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4612]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4612) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.856154"], ["id", 4612]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.861694"], ["updated_at", "2016-12-12 17:47:54.861694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-12 17:47:54.863234"], ["updated_at", "2016-12-12 17:47:54.863234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4613], ["g5_updatable_hub_amenity_id", 2461]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4613) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.865831"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4613]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4613]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.872203"], ["updated_at", "2016-12-12 17:47:54.872203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.873264"], ["id", 2462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4613], ["g5_updatable_hub_amenity_id", 2462]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.875966"], ["updated_at", "2016-12-12 17:47:54.875966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.876921"], ["id", 2463]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4613], ["g5_updatable_hub_amenity_id", 2463]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4613]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4613) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.880661"], ["id", 4613]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:47:54.884414"], ["updated_at", "2016-12-12 17:47:54.884414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:54.886265"], ["updated_at", "2016-12-12 17:47:54.886265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1836]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4614]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.889548"], ["updated_at", "2016-12-12 17:47:54.889548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-12 17:47:54.891198"], ["updated_at", "2016-12-12 17:47:54.891198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4615], ["g5_updatable_hub_amenity_id", 2464]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4615) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.893667"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4615]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4615]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.900068"], ["updated_at", "2016-12-12 17:47:54.900068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.901036"], ["id", 2465]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4615], ["g5_updatable_hub_amenity_id", 2465]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.903071"], ["updated_at", "2016-12-12 17:47:54.903071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.903989"], ["id", 2466]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4615], ["g5_updatable_hub_amenity_id", 2466]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4615]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4615) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.907630"], ["id", 4615]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:47:54.910743"], ["updated_at", "2016-12-12 17:47:54.910743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:54.912420"], ["updated_at", "2016-12-12 17:47:54.912420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1837]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4616]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:54.915705"], ["updated_at", "2016-12-12 17:47:54.915705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-12 17:47:54.917105"], ["updated_at", "2016-12-12 17:47:54.917105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4617], ["g5_updatable_hub_amenity_id", 2467]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4617) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.919590"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4617]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4617]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.926514"], ["updated_at", "2016-12-12 17:47:54.926514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.927464"], ["id", 2468]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4617], ["g5_updatable_hub_amenity_id", 2468]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.929553"], ["updated_at", "2016-12-12 17:47:54.929553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.930471"], ["id", 2469]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4617], ["g5_updatable_hub_amenity_id", 2469]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4617]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4617) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.934188"], ["id", 4617]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:47:54.938498"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:47:54.941075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4618) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.947982"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4618]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4618]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.954468"], ["updated_at", "2016-12-12 17:47:54.954468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.955415"], ["id", 2470]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4618], ["g5_updatable_hub_amenity_id", 2470]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.957523"], ["updated_at", "2016-12-12 17:47:54.957523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.958740"], ["id", 2471]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4618], ["g5_updatable_hub_amenity_id", 2471]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4618]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4618) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.962201"], ["id", 4618]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4618]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:47:54.966464"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:47:54.969194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4619) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.976238"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4619]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4619]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:54.983365"], ["updated_at", "2016-12-12 17:47:54.983365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:54.984606"], ["id", 2472]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4619], ["g5_updatable_hub_amenity_id", 2472]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:54.986873"], ["updated_at", "2016-12-12 17:47:54.986873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:54.987806"], ["id", 2473]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4619], ["g5_updatable_hub_amenity_id", 2473]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4619]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4619) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:54.991601"], ["id", 4619]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:47:54.994676"], ["updated_at", "2016-12-12 17:47:54.994676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:54.996390"], ["updated_at", "2016-12-12 17:47:54.996390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1838]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4620]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:54.999601"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.001984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4621]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:55.006115"], ["updated_at", "2016-12-12 17:47:55.006115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:55.007250"], ["id", 2474]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4621], ["g5_updatable_hub_amenity_id", 2474]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:55.009686"], ["updated_at", "2016-12-12 17:47:55.009686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:55.014266"], ["id", 2475]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4621], ["g5_updatable_hub_amenity_id", 2475]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4621]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4621) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.018226"], ["id", 4621]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:55.024811"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.027085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4622]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:55.030800"], ["updated_at", "2016-12-12 17:47:55.030800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:55.031831"], ["id", 2476]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4622], ["g5_updatable_hub_amenity_id", 2476]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:55.034110"], ["updated_at", "2016-12-12 17:47:55.034110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:55.035357"], ["id", 2477]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4622], ["g5_updatable_hub_amenity_id", 2477]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4622]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4622) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.039406"], ["id", 4622]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.058573"], ["updated_at", "2016-12-12 17:47:55.058573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:47:55.060802"], ["updated_at", "2016-12-12 17:47:55.060802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-12 17:47:55.062044"], ["updated_at", "2016-12-12 17:47:55.062044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-12 17:47:55.063003"], ["updated_at", "2016-12-12 17:47:55.063003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-12 17:47:55.063971"], ["updated_at", "2016-12-12 17:47:55.063971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4623], ["g5_updatable_hub_amenity_id", 2478]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4623], ["g5_updatable_hub_amenity_id", 2479]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.072164"], ["updated_at", "2016-12-12 17:47:55.072164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:47:55.073859"], ["updated_at", "2016-12-12 17:47:55.073859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-12 17:47:55.075229"], ["updated_at", "2016-12-12 17:47:55.075229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-12 17:47:55.076119"], ["updated_at", "2016-12-12 17:47:55.076119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-12 17:47:55.076942"], ["updated_at", "2016-12-12 17:47:55.076942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4624], ["g5_updatable_hub_amenity_id", 2481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4624], ["g5_updatable_hub_amenity_id", 2482]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.5ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:47:55.093236"], ["updated_at", "2016-12-12 17:47:55.093236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1841]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:47:55.096983"], ["updated_at", "2016-12-12 17:47:55.096983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.098632"], ["updated_at", "2016-12-12 17:47:55.098632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:47:55.110689"], ["updated_at", "2016-12-12 17:47:55.110689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.124351"], ["updated_at", "2016-12-12 17:47:55.124351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-12 17:47:55.125771"], ["updated_at", "2016-12-12 17:47:55.125771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-12 17:47:55.126706"], ["updated_at", "2016-12-12 17:47:55.126706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4626], ["g5_updatable_hub_amenity_id", 2484]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4626], ["g5_updatable_hub_amenity_id", 2485]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4626]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 4626) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-17|amenity-18|"], ["updated_at", "2016-12-12 17:47:55.131223"], ["id", 4626]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4626]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4626]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4626]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4626]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4626]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.136511"], ["updated_at", "2016-12-12 17:47:55.136511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-12 17:47:55.137797"], ["updated_at", "2016-12-12 17:47:55.137797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-12 17:47:55.138711"], ["updated_at", "2016-12-12 17:47:55.138711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4627], ["g5_updatable_hub_amenity_id", 2486]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4627], ["g5_updatable_hub_amenity_id", 2487]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4627]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 4627) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-19|amenity-20|"], ["updated_at", "2016-12-12 17:47:55.143321"], ["id", 4627]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4627]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4627]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.146880"], ["updated_at", "2016-12-12 17:47:55.146880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.148756"], ["updated_at", "2016-12-12 17:47:55.148756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.152679"], ["updated_at", "2016-12-12 17:47:55.152679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.154456"], ["updated_at", "2016-12-12 17:47:55.154456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.157359"], ["updated_at", "2016-12-12 17:47:55.157359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.159306"], ["updated_at", "2016-12-12 17:47:55.159306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.162841"], ["updated_at", "2016-12-12 17:47:55.162841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.164633"], ["updated_at", "2016-12-12 17:47:55.164633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.168508"], ["updated_at", "2016-12-12 17:47:55.168508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.170238"], ["updated_at", "2016-12-12 17:47:55.170238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:47:55.176611"], ["updated_at", "2016-12-12 17:47:55.176611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.178377"], ["updated_at", "2016-12-12 17:47:55.178377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:47:55.182143"], ["updated_at", "2016-12-12 17:47:55.182143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.183925"], ["updated_at", "2016-12-12 17:47:55.183925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.188458"], ["updated_at", "2016-12-12 17:47:55.188458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.190792"], ["updated_at", "2016-12-12 17:47:55.190792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.193345"], ["updated_at", "2016-12-12 17:47:55.193345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:47:55.197537"], ["updated_at", "2016-12-12 17:47:55.197537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.225640"], ["updated_at", "2016-12-12 17:47:55.225640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.228614"], ["updated_at", "2016-12-12 17:47:55.228614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.230212"], ["updated_at", "2016-12-12 17:47:55.230212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.234438"], ["updated_at", "2016-12-12 17:47:55.234438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.237502"], ["updated_at", "2016-12-12 17:47:55.237502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.239073"], ["updated_at", "2016-12-12 17:47:55.239073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:47:55.241738"], ["updated_at", "2016-12-12 17:47:55.241738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.244219"], ["updated_at", "2016-12-12 17:47:55.244219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.247146"], ["updated_at", "2016-12-12 17:47:55.247146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.248682"], ["updated_at", "2016-12-12 17:47:55.248682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.251295"], ["updated_at", "2016-12-12 17:47:55.251295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.254011"], ["updated_at", "2016-12-12 17:47:55.254011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.255604"], ["updated_at", "2016-12-12 17:47:55.255604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.258801"], ["updated_at", "2016-12-12 17:47:55.258801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.261620"], ["updated_at", "2016-12-12 17:47:55.261620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.263187"], ["updated_at", "2016-12-12 17:47:55.263187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.267194"], ["updated_at", "2016-12-12 17:47:55.267194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.269951"], ["updated_at", "2016-12-12 17:47:55.269951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.271488"], ["updated_at", "2016-12-12 17:47:55.271488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.275192"], ["updated_at", "2016-12-12 17:47:55.275192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.278208"], ["updated_at", "2016-12-12 17:47:55.278208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.279897"], ["updated_at", "2016-12-12 17:47:55.279897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.283793"], ["updated_at", "2016-12-12 17:47:55.283793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.287126"], ["updated_at", "2016-12-12 17:47:55.287126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.288756"], ["updated_at", "2016-12-12 17:47:55.288756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.292609"], ["updated_at", "2016-12-12 17:47:55.292609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.295526"], ["updated_at", "2016-12-12 17:47:55.295526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.301599"], ["updated_at", "2016-12-12 17:47:55.301599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.304993"], ["updated_at", "2016-12-12 17:47:55.304993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.307662"], ["updated_at", "2016-12-12 17:47:55.307662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.309488"], ["updated_at", "2016-12-12 17:47:55.309488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.313189"], ["updated_at", "2016-12-12 17:47:55.313189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.315954"], ["updated_at", "2016-12-12 17:47:55.315954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.317474"], ["updated_at", "2016-12-12 17:47:55.317474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.320555"], ["updated_at", "2016-12-12 17:47:55.320555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.323534"], ["updated_at", "2016-12-12 17:47:55.323534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.325379"], ["updated_at", "2016-12-12 17:47:55.325379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:47:55.328954"], ["updated_at", "2016-12-12 17:47:55.328954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.331672"], ["updated_at", "2016-12-12 17:47:55.331672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:47:55.333195"], ["updated_at", "2016-12-12 17:47:55.333195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.339325"], ["updated_at", "2016-12-12 17:47:55.339325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4671]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:47:55.355044"], ["updated_at", "2016-12-12 17:47:55.355044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.357086"], ["updated_at", "2016-12-12 17:47:55.357086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.358910"], ["updated_at", "2016-12-12 17:47:55.358910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.360669"], ["updated_at", "2016-12-12 17:47:55.360669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:47:55.372699"], ["updated_at", "2016-12-12 17:47:55.372699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.375023"], ["updated_at", "2016-12-12 17:47:55.375023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.376874"], ["updated_at", "2016-12-12 17:47:55.376874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.378588"], ["updated_at", "2016-12-12 17:47:55.378588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.385113"], ["updated_at", "2016-12-12 17:47:55.385113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.29ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:47:55.392728"], ["updated_at", "2016-12-12 17:47:55.392728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.26ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:47:55.399658"], ["updated_at", "2016-12-12 17:47:55.399658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1861) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1861) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:47:55.401451"], ["id", 1861]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1861]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.406268"], ["updated_at", "2016-12-12 17:47:55.406268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1862) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1862) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:47:55.407427"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1862]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.412006"], ["updated_at", "2016-12-12 17:47:55.412006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1863) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1863) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:47:55.413183"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1863]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.417723"], ["updated_at", "2016-12-12 17:47:55.417723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1864) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1864) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:47:55.418885"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1864]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 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", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:47:55.423577"], ["updated_at", "2016-12-12 17:47:55.423577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1865) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1865) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:47:55.425033"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1865]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:47:55.431544"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:47:55.433600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:55.436309"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.438515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4680]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4680]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4680) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:47:55.445714"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.447799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4681]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4681]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4681) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:47:55.454397"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.456712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4682]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:55.460893"], ["updated_at", "2016-12-12 17:47:55.460893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:55.461863"], ["id", 2488]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4682], ["g5_updatable_hub_amenity_id", 2488]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:55.464077"], ["updated_at", "2016-12-12 17:47:55.464077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:55.465122"], ["id", 2489]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4682], ["g5_updatable_hub_amenity_id", 2489]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4682]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4682) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.468768"], ["id", 4682]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:47:55.471156"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.473384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4683]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4683], ["g5_updatable_hub_amenity_id", 2488]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4683], ["g5_updatable_hub_amenity_id", 2489]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4683]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4683) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.481882"], ["id", 4683]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:47:55.484691"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.487147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4684]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4684]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4684) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:47:55.501008"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:47:55.502174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:47:55.504506"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:47:55.505583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:47:55.508579"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:47:55.509788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:47:55.512386"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:47:55.513428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:47:55.516699"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:47:55.517747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:47:55.520443"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:47:55.521477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:47:55.524429"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:47:55.525500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:55.568284"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.575243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4685]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:55.579399"], ["updated_at", "2016-12-12 17:47:55.579399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:55.580537"], ["id", 2490]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4685], ["g5_updatable_hub_amenity_id", 2490]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:55.583034"], ["updated_at", "2016-12-12 17:47:55.583034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:55.584119"], ["id", 2491]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4685], ["g5_updatable_hub_amenity_id", 2491]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4685]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4685) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.588144"], ["id", 4685]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:47:55.596339"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:47:55.598121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:55.600324"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.602534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4686]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4686]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4686) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:47:55.609662"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.611740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4687]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4687]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4687) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:47:55.618581"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.620801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4688]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:55.625128"], ["updated_at", "2016-12-12 17:47:55.625128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:55.626165"], ["id", 2492]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4688], ["g5_updatable_hub_amenity_id", 2492]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:55.628388"], ["updated_at", "2016-12-12 17:47:55.628388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:55.629291"], ["id", 2493]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4688], ["g5_updatable_hub_amenity_id", 2493]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4688]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4688) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.633032"], ["id", 4688]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:47:55.635624"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.638043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4689]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4689], ["g5_updatable_hub_amenity_id", 2492]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4689], ["g5_updatable_hub_amenity_id", 2493]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4689]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4689) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.646528"], ["id", 4689]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:47:55.649051"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.651039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4690]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4690]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4690) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:47:55.665092"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:47:55.666713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:55.668863"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.670868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4691]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4691]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4691) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:47:55.677673"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.679627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4692]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4692]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4692) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:47:55.686446"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.688946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4693]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:55.692955"], ["updated_at", "2016-12-12 17:47:55.692955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:55.693966"], ["id", 2494]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4693], ["g5_updatable_hub_amenity_id", 2494]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:55.696175"], ["updated_at", "2016-12-12 17:47:55.696175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:55.697097"], ["id", 2495]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4693], ["g5_updatable_hub_amenity_id", 2495]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4693]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4693) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.700729"], ["id", 4693]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:47:55.703150"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.705227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4694]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4694], ["g5_updatable_hub_amenity_id", 2494]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4694], ["g5_updatable_hub_amenity_id", 2495]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4694]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4694) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.714210"], ["id", 4694]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:47:55.716776"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.718875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4695]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4695]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4695) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:47:55.736473"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:47:55.738423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:55.744925"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.746961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4696]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4696]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4696) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:47:55.753384"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.755482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4697]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4697]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4697) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:47:55.762227"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.764255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4698]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:55.767835"], ["updated_at", "2016-12-12 17:47:55.767835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:55.768755"], ["id", 2496]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4698], ["g5_updatable_hub_amenity_id", 2496]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:55.770917"], ["updated_at", "2016-12-12 17:47:55.770917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:55.771854"], ["id", 2497]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4698], ["g5_updatable_hub_amenity_id", 2497]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4698]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4698) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.775964"], ["id", 4698]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:47:55.778277"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.780311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4699]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4699], ["g5_updatable_hub_amenity_id", 2496]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4699], ["g5_updatable_hub_amenity_id", 2497]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4699]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4699) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.788649"], ["id", 4699]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:47:55.791235"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.793526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4700]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4700]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4700) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4698]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:47:55.804816"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:47:55.806495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:55.808952"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.811285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4701]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4701]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4701) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:47:55.817438"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.819444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4702]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4702]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4702) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:47:55.826329"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.828414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4703]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:55.832190"], ["updated_at", "2016-12-12 17:47:55.832190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:55.833156"], ["id", 2498]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4703], ["g5_updatable_hub_amenity_id", 2498]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:55.835607"], ["updated_at", "2016-12-12 17:47:55.835607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:55.836632"], ["id", 2499]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4703], ["g5_updatable_hub_amenity_id", 2499]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4703]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4703) LIMIT 1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.840428"], ["id", 4703]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:47:55.843222"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.845285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4704]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4704], ["g5_updatable_hub_amenity_id", 2498]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4704], ["g5_updatable_hub_amenity_id", 2499]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4704]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4704) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.853046"], ["id", 4704]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:47:55.855304"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.857378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4705]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4705]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4705) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1877) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1877) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:47:55.867506"], ["id", 1877]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4705]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4705]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4704]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2780]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2781]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4704]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4703]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2778]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2779]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4703]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4702]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4702]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4701]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4701]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:47:55.884269"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:47:55.885987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:47:55.888249"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.890396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4706]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4706]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4706) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:47:55.901634"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.903718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4707]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4707]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4707) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:47:55.911291"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.913599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4708]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:47:55.917423"], ["updated_at", "2016-12-12 17:47:55.917423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:47:55.918340"], ["id", 2500]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4708], ["g5_updatable_hub_amenity_id", 2500]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:47:55.920513"], ["updated_at", "2016-12-12 17:47:55.920513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:47:55.921397"], ["id", 2501]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4708], ["g5_updatable_hub_amenity_id", 2501]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4708]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4708) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.925519"], ["id", 4708]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:47:55.927903"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.929946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4709]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4709], ["g5_updatable_hub_amenity_id", 2500]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4709], ["g5_updatable_hub_amenity_id", 2501]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4709]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4709) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:47:55.938560"], ["id", 4709]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:47:55.941308"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:47:55.943355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4710]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4710]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4710) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1878) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1878) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:47:55.953379"], ["id", 1878]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4706) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-12 17:47:55.959296"], ["id", 4706]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4706]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4706]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4706) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4710]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4710]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4709]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2784]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2785]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4709]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4708]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2782]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2783]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4708]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4707]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4707]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.716281"], ["updated_at", "2016-12-12 17:48:12.716281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:48:12.721487"], ["updated_at", "2016-12-12 17:48:12.721487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-12 17:48:12.723302"], ["updated_at", "2016-12-12 17:48:12.723302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-12 17:48:12.724492"], ["updated_at", "2016-12-12 17:48:12.724492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-12 17:48:12.725369"], ["updated_at", "2016-12-12 17:48:12.725369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4711], ["g5_updatable_hub_amenity_id", 2502]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4711], ["g5_updatable_hub_amenity_id", 2503]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.9ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.747385"], ["updated_at", "2016-12-12 17:48:12.747385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:48:12.749023"], ["updated_at", "2016-12-12 17:48:12.749023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-12 17:48:12.750190"], ["updated_at", "2016-12-12 17:48:12.750190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-12 17:48:12.751128"], ["updated_at", "2016-12-12 17:48:12.751128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-12 17:48:12.752066"], ["updated_at", "2016-12-12 17:48:12.752066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4712], ["g5_updatable_hub_amenity_id", 2505]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4712], ["g5_updatable_hub_amenity_id", 2506]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:12.758346"], ["updated_at", "2016-12-12 17:48:12.758346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.38ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:12.769843"], ["updated_at", "2016-12-12 17:48:12.769843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.32ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:48:12.779234"], ["updated_at", "2016-12-12 17:48:12.779234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:48:12.798003"], ["updated_at", "2016-12-12 17:48:12.798003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1882]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:48:12.803917"], ["updated_at", "2016-12-12 17:48:12.803917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:12.805672"], ["updated_at", "2016-12-12 17:48:12.805672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:48:12.817708"], ["updated_at", "2016-12-12 17:48:12.817708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:12.819608"], ["updated_at", "2016-12-12 17:48:12.819608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:48:12.823785"], ["updated_at", "2016-12-12 17:48:12.823785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:12.825627"], ["updated_at", "2016-12-12 17:48:12.825627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:12.828039"], ["updated_at", "2016-12-12 17:48:12.828039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-12 17:48:12.829196"], ["updated_at", "2016-12-12 17:48:12.829196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-12 17:48:12.830234"], ["updated_at", "2016-12-12 17:48:12.830234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4718], ["g5_updatable_hub_amenity_id", 2508]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4718], ["g5_updatable_hub_amenity_id", 2509]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4718]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 4718) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-7|amenity-8|"], ["updated_at", "2016-12-12 17:48:12.835797"], ["id", 4718]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4718]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4718]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:12.839715"], ["updated_at", "2016-12-12 17:48:12.839715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-12 17:48:12.841072"], ["updated_at", "2016-12-12 17:48:12.841072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-12 17:48:12.842004"], ["updated_at", "2016-12-12 17:48:12.842004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4719], ["g5_updatable_hub_amenity_id", 2510]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4719], ["g5_updatable_hub_amenity_id", 2511]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4719]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 4719) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-10|amenity-9|"], ["updated_at", "2016-12-12 17:48:12.846548"], ["id", 4719]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4719]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4719]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4719]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4719]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4719]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:48:12.866399"], ["updated_at", "2016-12-12 17:48:12.866399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:12.889107"], ["updated_at", "2016-12-12 17:48:12.889107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:12.891733"], ["updated_at", "2016-12-12 17:48:12.891733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:12.894032"], ["updated_at", "2016-12-12 17:48:12.894032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.896753"], ["updated_at", "2016-12-12 17:48:12.896753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.899935"], ["updated_at", "2016-12-12 17:48:12.899935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:12.901551"], ["updated_at", "2016-12-12 17:48:12.901551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.904787"], ["updated_at", "2016-12-12 17:48:12.904787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.907875"], ["updated_at", "2016-12-12 17:48:12.907875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:12.909560"], ["updated_at", "2016-12-12 17:48:12.909560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.913613"], ["updated_at", "2016-12-12 17:48:12.913613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.916693"], ["updated_at", "2016-12-12 17:48:12.916693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:12.918666"], ["updated_at", "2016-12-12 17:48:12.918666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.923900"], ["updated_at", "2016-12-12 17:48:12.923900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.927049"], ["updated_at", "2016-12-12 17:48:12.927049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:12.928755"], ["updated_at", "2016-12-12 17:48:12.928755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.932488"], ["updated_at", "2016-12-12 17:48:12.932488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.935346"], ["updated_at", "2016-12-12 17:48:12.935346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:12.936938"], ["updated_at", "2016-12-12 17:48:12.936938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.940567"], ["updated_at", "2016-12-12 17:48:12.940567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.950137"], ["updated_at", "2016-12-12 17:48:12.950137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:12.951969"], ["updated_at", "2016-12-12 17:48:12.951969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.955388"], ["updated_at", "2016-12-12 17:48:12.955388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.958290"], ["updated_at", "2016-12-12 17:48:12.958290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:12.959839"], ["updated_at", "2016-12-12 17:48:12.959839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.963120"], ["updated_at", "2016-12-12 17:48:12.963120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.965766"], ["updated_at", "2016-12-12 17:48:12.965766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:12.967308"], ["updated_at", "2016-12-12 17:48:12.967308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.970938"], ["updated_at", "2016-12-12 17:48:12.970938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.974245"], ["updated_at", "2016-12-12 17:48:12.974245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:12.975906"], ["updated_at", "2016-12-12 17:48:12.975906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.979489"], ["updated_at", "2016-12-12 17:48:12.979489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.982543"], ["updated_at", "2016-12-12 17:48:12.982543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:12.984169"], ["updated_at", "2016-12-12 17:48:12.984169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.988012"], ["updated_at", "2016-12-12 17:48:12.988012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:12.991052"], ["updated_at", "2016-12-12 17:48:12.991052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:12.992609"], ["updated_at", "2016-12-12 17:48:12.992609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:48:12.995246"], ["updated_at", "2016-12-12 17:48:12.995246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:12.997756"], ["updated_at", "2016-12-12 17:48:12.997756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:13.000603"], ["updated_at", "2016-12-12 17:48:13.000603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:13.002198"], ["updated_at", "2016-12-12 17:48:13.002198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:48:13.004849"], ["updated_at", "2016-12-12 17:48:13.004849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:13.007936"], ["updated_at", "2016-12-12 17:48:13.007936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:48:13.009576"], ["updated_at", "2016-12-12 17:48:13.009576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.016706"], ["updated_at", "2016-12-12 17:48:13.016706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.019073"], ["updated_at", "2016-12-12 17:48:13.019073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.024181"], ["updated_at", "2016-12-12 17:48:13.024181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.026355"], ["updated_at", "2016-12-12 17:48:13.026355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.030325"], ["updated_at", "2016-12-12 17:48:13.030325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.032469"], ["updated_at", "2016-12-12 17:48:13.032469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.037103"], ["updated_at", "2016-12-12 17:48:13.037103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.039273"], ["updated_at", "2016-12-12 17:48:13.039273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.043975"], ["updated_at", "2016-12-12 17:48:13.043975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.046216"], ["updated_at", "2016-12-12 17:48:13.046216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.055766"], ["updated_at", "2016-12-12 17:48:13.055766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4761]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:13.061453"], ["updated_at", "2016-12-12 17:48:13.061453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1899) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1899) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:48:13.062746"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1899]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:13.067569"], ["updated_at", "2016-12-12 17:48:13.067569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1900) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1900) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:48:13.068808"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1900]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:13.074468"], ["updated_at", "2016-12-12 17:48:13.074468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1901) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1901) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:48:13.075781"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1901]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:48:13.080414"], ["updated_at", "2016-12-12 17:48:13.080414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1902) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1902) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:48:13.081592"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1902]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:48:13.088108"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:48:13.090360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.092857"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.095751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4762]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4762]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4762) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:48:13.102697"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.104771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4763]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4763]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4763) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:48:13.111710"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.114041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4764]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.118834"], ["updated_at", "2016-12-12 17:48:13.118834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.121026"], ["id", 2512]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4764], ["g5_updatable_hub_amenity_id", 2512]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.124025"], ["updated_at", "2016-12-12 17:48:13.124025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.125035"], ["id", 2513]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4764], ["g5_updatable_hub_amenity_id", 2513]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4764]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4764) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.128940"], ["id", 4764]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:48:13.131787"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.134092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4765]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4765], ["g5_updatable_hub_amenity_id", 2512]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4765], ["g5_updatable_hub_amenity_id", 2513]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4765]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4765) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.142870"], ["id", 4765]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:48:13.145457"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.147725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4766]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4766]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4766) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:48:13.163586"], ["updated_at", "2016-12-12 17:48:13.163586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1904) LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1904) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:48:13.165388"], ["id", 1904]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1904]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:48:13.170076"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:48:13.171373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:48:13.175271"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:48:13.176391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:48:13.178889"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:48:13.180050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:48:13.183221"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:48:13.184320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:48:13.186556"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:48:13.187614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:48:13.190481"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:48:13.191520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:48:13.194300"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:48:13.195528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:48:13.233212"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:48:13.235516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.238655"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.242002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4767]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4767]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4767) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:48:13.250557"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.253417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4768]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4768]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4768) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:48:13.262466"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.265357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4769]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.270179"], ["updated_at", "2016-12-12 17:48:13.270179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.271442"], ["id", 2514]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4769], ["g5_updatable_hub_amenity_id", 2514]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.274982"], ["updated_at", "2016-12-12 17:48:13.274982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.276206"], ["id", 2515]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4769], ["g5_updatable_hub_amenity_id", 2515]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4769]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4769) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.281503"], ["id", 4769]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:48:13.284542"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.287781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4770]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4770], ["g5_updatable_hub_amenity_id", 2514]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4770], ["g5_updatable_hub_amenity_id", 2515]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4770]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4770) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.299138"], ["id", 4770]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:48:13.302470"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.304935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4771]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4771]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4771) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4769]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:48:13.321910"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:48:13.324655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.328362"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.332462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4772]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4772]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4772) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:48:13.342494"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.345717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4773]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4773]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4773) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:48:13.355169"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.358216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4774]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.363533"], ["updated_at", "2016-12-12 17:48:13.363533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.364834"], ["id", 2516]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4774], ["g5_updatable_hub_amenity_id", 2516]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.367562"], ["updated_at", "2016-12-12 17:48:13.367562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.368659"], ["id", 2517]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4774], ["g5_updatable_hub_amenity_id", 2517]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4774]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4774) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.373015"], ["id", 4774]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:48:13.377030"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.380084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4775]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4775], ["g5_updatable_hub_amenity_id", 2516]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4775], ["g5_updatable_hub_amenity_id", 2517]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4775]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4775) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.390763"], ["id", 4775]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:48:13.393955"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.396912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4776]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4776]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4776) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:48:13.411852"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:48:13.414165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.417165"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.420587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4777]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4777]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4777) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:48:13.429904"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.446169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4778]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4778]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4778) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:48:13.455970"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.458341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4779]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.462320"], ["updated_at", "2016-12-12 17:48:13.462320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.463305"], ["id", 2518]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4779], ["g5_updatable_hub_amenity_id", 2518]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.465559"], ["updated_at", "2016-12-12 17:48:13.465559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.466817"], ["id", 2519]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4779], ["g5_updatable_hub_amenity_id", 2519]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4779]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4779) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.470439"], ["id", 4779]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:48:13.473030"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.475249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4780]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4780], ["g5_updatable_hub_amenity_id", 2518]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4780], ["g5_updatable_hub_amenity_id", 2519]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4780]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4780) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.483518"], ["id", 4780]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:48:13.486330"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.488596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4781]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4781]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4781) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:48:13.503965"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:48:13.505933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.508247"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.510426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4782]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4782]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4782) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:48:13.517276"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.519535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4783]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4783]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4783) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:48:13.526748"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.528875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4784]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.532746"], ["updated_at", "2016-12-12 17:48:13.532746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.534082"], ["id", 2520]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4784], ["g5_updatable_hub_amenity_id", 2520]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.536586"], ["updated_at", "2016-12-12 17:48:13.536586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.537754"], ["id", 2521]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4784], ["g5_updatable_hub_amenity_id", 2521]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4784]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4784) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.541712"], ["id", 4784]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:48:13.544095"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.546532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4785]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4785], ["g5_updatable_hub_amenity_id", 2520]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4785], ["g5_updatable_hub_amenity_id", 2521]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4785]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4785) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.554529"], ["id", 4785]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:48:13.557672"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.559769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4786]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4786]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4786) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1915) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1915) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:48:13.570890"], ["id", 1915]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4782) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-12 17:48:13.577292"], ["id", 4782]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4782]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4782]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4782) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4786]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4786]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4785]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2812]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2813]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4785]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4784]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2810]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2811]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4784]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4783]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4783]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:48:13.599948"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:48:13.602474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.605266"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.607836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4787]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4787]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4787) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:48:13.615903"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.623479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4788]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4788]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4788) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:48:13.630534"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.632687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4789]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.637418"], ["updated_at", "2016-12-12 17:48:13.637418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.638759"], ["id", 2522]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4789], ["g5_updatable_hub_amenity_id", 2522]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.641595"], ["updated_at", "2016-12-12 17:48:13.641595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.642549"], ["id", 2523]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4789], ["g5_updatable_hub_amenity_id", 2523]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4789]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4789) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.646457"], ["id", 4789]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:48:13.649118"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.651448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4790]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4790], ["g5_updatable_hub_amenity_id", 2522]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4790], ["g5_updatable_hub_amenity_id", 2523]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4790]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4790) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.660511"], ["id", 4790]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:48:13.663259"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.665386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4791]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4791]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4791) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1916) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1916) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:48:13.675545"], ["id", 1916]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4791]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4791]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4790]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2816]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2817]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4790]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4789]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2814]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2815]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4789]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4788]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4788]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4787]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4787]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.693259"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.695469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4792]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.699450"], ["updated_at", "2016-12-12 17:48:13.699450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.700398"], ["id", 2524]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4792], ["g5_updatable_hub_amenity_id", 2524]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.702695"], ["updated_at", "2016-12-12 17:48:13.702695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.703600"], ["id", 2525]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4792], ["g5_updatable_hub_amenity_id", 2525]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4792]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4792) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.707344"], ["id", 4792]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.715647"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.717692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4793]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.722333"], ["updated_at", "2016-12-12 17:48:13.722333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.723567"], ["id", 2526]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4793], ["g5_updatable_hub_amenity_id", 2526]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.725805"], ["updated_at", "2016-12-12 17:48:13.725805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.726692"], ["id", 2527]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4793], ["g5_updatable_hub_amenity_id", 2527]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4793]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4793) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.730376"], ["id", 4793]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.737040"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.739155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4794]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.743093"], ["updated_at", "2016-12-12 17:48:13.743093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.744031"], ["id", 2528]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4794], ["g5_updatable_hub_amenity_id", 2528]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.746532"], ["updated_at", "2016-12-12 17:48:13.746532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.747479"], ["id", 2529]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4794], ["g5_updatable_hub_amenity_id", 2529]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4794]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4794) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.751145"], ["id", 4794]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:48:13.755450"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:48:13.758218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4795) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.765184"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4795]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4795]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.771982"], ["updated_at", "2016-12-12 17:48:13.771982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.773352"], ["id", 2530]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4795], ["g5_updatable_hub_amenity_id", 2530]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.775622"], ["updated_at", "2016-12-12 17:48:13.775622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.776497"], ["id", 2531]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4795], ["g5_updatable_hub_amenity_id", 2531]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4795]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4795) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.780348"], ["id", 4795]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4795]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:48:13.784741"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:48:13.787621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4796) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.795114"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4796]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4796]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.807093"], ["updated_at", "2016-12-12 17:48:13.807093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.808082"], ["id", 2532]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4796], ["g5_updatable_hub_amenity_id", 2532]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.810220"], ["updated_at", "2016-12-12 17:48:13.810220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.811143"], ["id", 2533]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4796], ["g5_updatable_hub_amenity_id", 2533]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4796]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4796) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.815017"], ["id", 4796]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:48:13.818066"], ["updated_at", "2016-12-12 17:48:13.818066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.819821"], ["updated_at", "2016-12-12 17:48:13.819821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1917]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4797]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.823857"], ["updated_at", "2016-12-12 17:48:13.823857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-12 17:48:13.825383"], ["updated_at", "2016-12-12 17:48:13.825383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4798], ["g5_updatable_hub_amenity_id", 2534]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4798) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.828006"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4798]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4798]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.834628"], ["updated_at", "2016-12-12 17:48:13.834628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.835526"], ["id", 2535]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4798], ["g5_updatable_hub_amenity_id", 2535]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.837815"], ["updated_at", "2016-12-12 17:48:13.837815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.838714"], ["id", 2536]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4798], ["g5_updatable_hub_amenity_id", 2536]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4798]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4798) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.842465"], ["id", 4798]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4798]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.847741"], ["updated_at", "2016-12-12 17:48:13.847741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-12 17:48:13.849225"], ["updated_at", "2016-12-12 17:48:13.849225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4799], ["g5_updatable_hub_amenity_id", 2537]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4799) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.851705"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4799]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4799]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.857923"], ["updated_at", "2016-12-12 17:48:13.857923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.858859"], ["id", 2538]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4799], ["g5_updatable_hub_amenity_id", 2538]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.861086"], ["updated_at", "2016-12-12 17:48:13.861086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.862061"], ["id", 2539]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4799], ["g5_updatable_hub_amenity_id", 2539]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4799]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4799) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.865611"], ["id", 4799]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.870862"], ["updated_at", "2016-12-12 17:48:13.870862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-12 17:48:13.872687"], ["updated_at", "2016-12-12 17:48:13.872687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4800], ["g5_updatable_hub_amenity_id", 2540]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4800) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.875326"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4800]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4800]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.882072"], ["updated_at", "2016-12-12 17:48:13.882072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.883056"], ["id", 2541]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4800], ["g5_updatable_hub_amenity_id", 2541]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.885694"], ["updated_at", "2016-12-12 17:48:13.885694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.886780"], ["id", 2542]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4800], ["g5_updatable_hub_amenity_id", 2542]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4800]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4800) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.890482"], ["id", 4800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.894763"], ["updated_at", "2016-12-12 17:48:13.894763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-12 17:48:13.896271"], ["updated_at", "2016-12-12 17:48:13.896271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4801], ["g5_updatable_hub_amenity_id", 2543]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4801) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.898873"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4801]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4801]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.905500"], ["updated_at", "2016-12-12 17:48:13.905500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.906487"], ["id", 2544]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4801], ["g5_updatable_hub_amenity_id", 2544]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.908776"], ["updated_at", "2016-12-12 17:48:13.908776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.909939"], ["id", 2545]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4801], ["g5_updatable_hub_amenity_id", 2545]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4801]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4801) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.914022"], ["id", 4801]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.919123"], ["updated_at", "2016-12-12 17:48:13.919123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-12 17:48:13.920831"], ["updated_at", "2016-12-12 17:48:13.920831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4802], ["g5_updatable_hub_amenity_id", 2546]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4802) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.923940"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4802]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4802]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.930552"], ["updated_at", "2016-12-12 17:48:13.930552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.931511"], ["id", 2547]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4802], ["g5_updatable_hub_amenity_id", 2547]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.933636"], ["updated_at", "2016-12-12 17:48:13.933636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.934535"], ["id", 2548]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4802], ["g5_updatable_hub_amenity_id", 2548]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4802]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4802) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.938513"], ["id", 4802]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:48:13.941954"], ["updated_at", "2016-12-12 17:48:13.941954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:13.943635"], ["updated_at", "2016-12-12 17:48:13.943635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1918]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4803]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.947002"], ["updated_at", "2016-12-12 17:48:13.947002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-12 17:48:13.948439"], ["updated_at", "2016-12-12 17:48:13.948439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4804], ["g5_updatable_hub_amenity_id", 2549]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4804) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.951179"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4804]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4804]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.957624"], ["updated_at", "2016-12-12 17:48:13.957624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.958619"], ["id", 2550]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4804], ["g5_updatable_hub_amenity_id", 2550]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.960974"], ["updated_at", "2016-12-12 17:48:13.960974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.962010"], ["id", 2551]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4804], ["g5_updatable_hub_amenity_id", 2551]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4804]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4804) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.965927"], ["id", 4804]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.970397"], ["updated_at", "2016-12-12 17:48:13.970397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-12 17:48:13.972031"], ["updated_at", "2016-12-12 17:48:13.972031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4805], ["g5_updatable_hub_amenity_id", 2552]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4805) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:13.975058"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4805]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4805]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:13.981978"], ["updated_at", "2016-12-12 17:48:13.981978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:13.983140"], ["id", 2553]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4805], ["g5_updatable_hub_amenity_id", 2553]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:13.985615"], ["updated_at", "2016-12-12 17:48:13.985615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:13.986611"], ["id", 2554]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4805], ["g5_updatable_hub_amenity_id", 2554]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4805]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4805) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:13.990466"], ["id", 4805]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:13.995916"], ["updated_at", "2016-12-12 17:48:13.995916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-12 17:48:13.997500"], ["updated_at", "2016-12-12 17:48:13.997500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4806], ["g5_updatable_hub_amenity_id", 2555]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4806) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.000163"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4806]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4806]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.011694"], ["updated_at", "2016-12-12 17:48:14.011694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.013251"], ["id", 2556]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4806], ["g5_updatable_hub_amenity_id", 2556]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.015703"], ["updated_at", "2016-12-12 17:48:14.015703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.016635"], ["id", 2557]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4806], ["g5_updatable_hub_amenity_id", 2557]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4806]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4806) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.020561"], ["id", 4806]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.026430"], ["updated_at", "2016-12-12 17:48:14.026430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-12 17:48:14.027966"], ["updated_at", "2016-12-12 17:48:14.027966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4807], ["g5_updatable_hub_amenity_id", 2558]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4807) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.030792"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4807]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4807]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.037220"], ["updated_at", "2016-12-12 17:48:14.037220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.038146"], ["id", 2559]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4807], ["g5_updatable_hub_amenity_id", 2559]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.040388"], ["updated_at", "2016-12-12 17:48:14.040388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.041270"], ["id", 2560]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4807], ["g5_updatable_hub_amenity_id", 2560]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4807]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4807) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.044829"], ["id", 4807]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:48:14.048239"], ["updated_at", "2016-12-12 17:48:14.048239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:14.049860"], ["updated_at", "2016-12-12 17:48:14.049860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1919]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4808]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.053218"], ["updated_at", "2016-12-12 17:48:14.053218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-12 17:48:14.054680"], ["updated_at", "2016-12-12 17:48:14.054680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4809], ["g5_updatable_hub_amenity_id", 2561]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4809) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.057417"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4809]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4809]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.064114"], ["updated_at", "2016-12-12 17:48:14.064114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.065068"], ["id", 2562]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4809], ["g5_updatable_hub_amenity_id", 2562]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.067190"], ["updated_at", "2016-12-12 17:48:14.067190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.068087"], ["id", 2563]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4809], ["g5_updatable_hub_amenity_id", 2563]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4809]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4809) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.072509"], ["id", 4809]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.077665"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.080136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4810]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.084265"], ["updated_at", "2016-12-12 17:48:14.084265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.085415"], ["id", 2564]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4810], ["g5_updatable_hub_amenity_id", 2564]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.087793"], ["updated_at", "2016-12-12 17:48:14.087793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.088683"], ["id", 2565]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4810], ["g5_updatable_hub_amenity_id", 2565]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4810]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4810) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.092453"], ["id", 4810]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4810]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4810]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.098649"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.100721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4811]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.104574"], ["updated_at", "2016-12-12 17:48:14.104574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.105484"], ["id", 2566]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4811], ["g5_updatable_hub_amenity_id", 2566]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.107991"], ["updated_at", "2016-12-12 17:48:14.107991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.109032"], ["id", 2567]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4811], ["g5_updatable_hub_amenity_id", 2567]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4811]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4811) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.112955"], ["id", 4811]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.119084"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.121647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4812]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.125956"], ["updated_at", "2016-12-12 17:48:14.125956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.126943"], ["id", 2568]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4812], ["g5_updatable_hub_amenity_id", 2568]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.129266"], ["updated_at", "2016-12-12 17:48:14.129266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.130430"], ["id", 2569]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4812], ["g5_updatable_hub_amenity_id", 2569]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4812]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4812) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.134120"], ["id", 4812]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.137966"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.140299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4813]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.144307"], ["updated_at", "2016-12-12 17:48:14.144307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.145228"], ["id", 2570]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4813], ["g5_updatable_hub_amenity_id", 2570]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.147562"], ["updated_at", "2016-12-12 17:48:14.147562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.148459"], ["id", 2571]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4813], ["g5_updatable_hub_amenity_id", 2571]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4813]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4813) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.152172"], ["id", 4813]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.157073"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.159121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4814]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.162977"], ["updated_at", "2016-12-12 17:48:14.162977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.164012"], ["id", 2572]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4814], ["g5_updatable_hub_amenity_id", 2572]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.166150"], ["updated_at", "2016-12-12 17:48:14.166150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.167086"], ["id", 2573]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4814], ["g5_updatable_hub_amenity_id", 2573]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4814]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4814) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.170936"], ["id", 4814]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.176301"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.178574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4815]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.182745"], ["updated_at", "2016-12-12 17:48:14.182745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.183714"], ["id", 2574]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4815], ["g5_updatable_hub_amenity_id", 2574]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.186042"], ["updated_at", "2016-12-12 17:48:14.186042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.186981"], ["id", 2575]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4815], ["g5_updatable_hub_amenity_id", 2575]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4815]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4815) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.190828"], ["id", 4815]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.195338"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.197837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4816]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.201864"], ["updated_at", "2016-12-12 17:48:14.201864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.202947"], ["id", 2576]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4816], ["g5_updatable_hub_amenity_id", 2576]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.205206"], ["updated_at", "2016-12-12 17:48:14.205206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.206312"], ["id", 2577]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4816], ["g5_updatable_hub_amenity_id", 2577]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4816]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4816) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.214484"], ["id", 4816]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:48:14.217843"], ["updated_at", "2016-12-12 17:48:14.217843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:14.219744"], ["updated_at", "2016-12-12 17:48:14.219744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1920]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4817]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.223221"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.225568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4818]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.229591"], ["updated_at", "2016-12-12 17:48:14.229591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.230845"], ["id", 2578]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4818], ["g5_updatable_hub_amenity_id", 2578]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.232986"], ["updated_at", "2016-12-12 17:48:14.232986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.233889"], ["id", 2579]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4818], ["g5_updatable_hub_amenity_id", 2579]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4818]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4818) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.237445"], ["id", 4818]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.242407"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.244454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4819]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.248556"], ["updated_at", "2016-12-12 17:48:14.248556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.249545"], ["id", 2580]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4819], ["g5_updatable_hub_amenity_id", 2580]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.251736"], ["updated_at", "2016-12-12 17:48:14.251736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.252659"], ["id", 2581]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4819], ["g5_updatable_hub_amenity_id", 2581]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4819]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4819) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.256368"], ["id", 4819]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.260806"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.263031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4820]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.266955"], ["updated_at", "2016-12-12 17:48:14.266955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.267928"], ["id", 2582]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4820], ["g5_updatable_hub_amenity_id", 2582]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.270317"], ["updated_at", "2016-12-12 17:48:14.270317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.271499"], ["id", 2583]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4820], ["g5_updatable_hub_amenity_id", 2583]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4820]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4820) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.275815"], ["id", 4820]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.280650"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.282771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4821]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.287175"], ["updated_at", "2016-12-12 17:48:14.287175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.288281"], ["id", 2584]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4821], ["g5_updatable_hub_amenity_id", 2584]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.290657"], ["updated_at", "2016-12-12 17:48:14.290657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.291556"], ["id", 2585]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4821], ["g5_updatable_hub_amenity_id", 2585]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4821]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4821) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.295339"], ["id", 4821]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.300067"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.302085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4822]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.305878"], ["updated_at", "2016-12-12 17:48:14.305878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.307117"], ["id", 2586]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4822], ["g5_updatable_hub_amenity_id", 2586]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.309736"], ["updated_at", "2016-12-12 17:48:14.309736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.310765"], ["id", 2587]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4822], ["g5_updatable_hub_amenity_id", 2587]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4822]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4822) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.315045"], ["id", 4822]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.320320"], ["updated_at", "2016-12-12 17:48:14.320320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.322021"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.324486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4824]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.328331"], ["updated_at", "2016-12-12 17:48:14.328331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.329515"], ["id", 2588]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4824], ["g5_updatable_hub_amenity_id", 2588]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.331660"], ["updated_at", "2016-12-12 17:48:14.331660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.332810"], ["id", 2589]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4824], ["g5_updatable_hub_amenity_id", 2589]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4824]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4824) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.336780"], ["id", 4824]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4823]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4823]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.344754"], ["updated_at", "2016-12-12 17:48:14.344754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-12 17:48:14.350412"], ["updated_at", "2016-12-12 17:48:14.350412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.353699"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.355783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4827]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.359776"], ["updated_at", "2016-12-12 17:48:14.359776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.360698"], ["id", 2590]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4827], ["g5_updatable_hub_amenity_id", 2590]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.363142"], ["updated_at", "2016-12-12 17:48:14.363142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.364050"], ["id", 2591]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4827], ["g5_updatable_hub_amenity_id", 2591]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4827]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4827) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.368024"], ["id", 4827]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4825]] SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4825]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:14.375992"], ["updated_at", "2016-12-12 17:48:14.375992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4828) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.377751"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4828]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4828]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.384455"], ["updated_at", "2016-12-12 17:48:14.384455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.385442"], ["id", 2592]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4828], ["g5_updatable_hub_amenity_id", 2592]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.387836"], ["updated_at", "2016-12-12 17:48:14.387836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.388728"], ["id", 2593]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4828], ["g5_updatable_hub_amenity_id", 2593]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4828]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4828) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.392648"], ["id", 4828]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:14.396820"], ["updated_at", "2016-12-12 17:48:14.396820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (4.7ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4829) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.398605"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4829]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4829]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.412193"], ["updated_at", "2016-12-12 17:48:14.412193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.413436"], ["id", 2594]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4829], ["g5_updatable_hub_amenity_id", 2594]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.415621"], ["updated_at", "2016-12-12 17:48:14.415621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.416516"], ["id", 2595]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4829], ["g5_updatable_hub_amenity_id", 2595]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4829]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4829) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.420314"], ["id", 4829]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:14.424784"], ["updated_at", "2016-12-12 17:48:14.424784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4830) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:48:14.427161"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4830]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4830]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4830]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4830) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:48:14.436221"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.438210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4831]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4831]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4831) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:48:14.444615"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.446706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4832]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:48:14.450259"], ["updated_at", "2016-12-12 17:48:14.450259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:48:14.451176"], ["id", 2596]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4832], ["g5_updatable_hub_amenity_id", 2596]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:48:14.453501"], ["updated_at", "2016-12-12 17:48:14.453501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:48:14.454417"], ["id", 2597]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4832], ["g5_updatable_hub_amenity_id", 2597]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4832]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4832) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.458243"], ["id", 4832]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:48:14.460710"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.463121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4833]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4833], ["g5_updatable_hub_amenity_id", 2596]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4833], ["g5_updatable_hub_amenity_id", 2597]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4833]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4833) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:48:14.471397"], ["id", 4833]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:48:14.474380"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:48:14.476527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4834]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4834]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4834) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:48:14.526016"], ["updated_at", "2016-12-12 17:48:14.526016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:14.527922"], ["updated_at", "2016-12-12 17:48:14.527922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:14.529790"], ["updated_at", "2016-12-12 17:48:14.529790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:14.531431"], ["updated_at", "2016-12-12 17:48:14.531431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:48:14.538329"], ["updated_at", "2016-12-12 17:48:14.538329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:14.540343"], ["updated_at", "2016-12-12 17:48:14.540343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:14.542091"], ["updated_at", "2016-12-12 17:48:14.542091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:48:14.543782"], ["updated_at", "2016-12-12 17:48:14.543782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.469723"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.479975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4841]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.501592"], ["updated_at", "2016-12-12 17:49:16.501592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.504304"], ["id", 2598]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4841], ["g5_updatable_hub_amenity_id", 2598]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.511482"], ["updated_at", "2016-12-12 17:49:16.511482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.512853"], ["id", 2599]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4841], ["g5_updatable_hub_amenity_id", 2599]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4841]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4841) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.520393"], ["id", 4841]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.526906"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.529368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4842]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.533707"], ["updated_at", "2016-12-12 17:49:16.533707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.534908"], ["id", 2600]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4842], ["g5_updatable_hub_amenity_id", 2600]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.538140"], ["updated_at", "2016-12-12 17:49:16.538140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.539317"], ["id", 2601]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4842], ["g5_updatable_hub_amenity_id", 2601]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4842]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4842) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.543801"], ["id", 4842]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.551072"], ["updated_at", "2016-12-12 17:49:16.551072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-12 17:49:16.553164"], ["updated_at", "2016-12-12 17:49:16.553164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4843], ["g5_updatable_hub_amenity_id", 2602]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4843) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.556297"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4843]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4843]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.564248"], ["id", 2602]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4843], ["g5_updatable_hub_amenity_id", 2602]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.567061"], ["updated_at", "2016-12-12 17:49:16.567061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.568128"], ["id", 2603]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4843], ["g5_updatable_hub_amenity_id", 2603]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4843]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4843) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.572719"], ["id", 4843]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.578220"], ["updated_at", "2016-12-12 17:49:16.578220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-12 17:49:16.579891"], ["updated_at", "2016-12-12 17:49:16.579891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4844], ["g5_updatable_hub_amenity_id", 2604]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.5ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4844) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.582554"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4844]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4844]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.590219"], ["updated_at", "2016-12-12 17:49:16.590219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.591205"], ["id", 2605]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4844], ["g5_updatable_hub_amenity_id", 2605]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.593466"], ["updated_at", "2016-12-12 17:49:16.593466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.594375"], ["id", 2606]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4844], ["g5_updatable_hub_amenity_id", 2606]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4844]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4844) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.598374"], ["id", 4844]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.602937"], ["updated_at", "2016-12-12 17:49:16.602937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-12 17:49:16.604539"], ["updated_at", "2016-12-12 17:49:16.604539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4845], ["g5_updatable_hub_amenity_id", 2607]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4845) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.607339"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4845]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4845]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.614241"], ["updated_at", "2016-12-12 17:49:16.614241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.615210"], ["id", 2608]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4845], ["g5_updatable_hub_amenity_id", 2608]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.617390"], ["updated_at", "2016-12-12 17:49:16.617390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.618326"], ["id", 2609]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4845], ["g5_updatable_hub_amenity_id", 2609]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4845]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4845) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.622672"], ["id", 4845]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4845]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.628750"], ["updated_at", "2016-12-12 17:49:16.628750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-12 17:49:16.630304"], ["updated_at", "2016-12-12 17:49:16.630304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4846], ["g5_updatable_hub_amenity_id", 2610]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4846) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.632947"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4846]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4846]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.640050"], ["updated_at", "2016-12-12 17:49:16.640050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.648192"], ["id", 2611]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4846], ["g5_updatable_hub_amenity_id", 2611]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.651054"], ["updated_at", "2016-12-12 17:49:16.651054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.652272"], ["id", 2612]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4846], ["g5_updatable_hub_amenity_id", 2612]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4846]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4846) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.656093"], ["id", 4846]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.661448"], ["updated_at", "2016-12-12 17:49:16.661448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-12 17:49:16.662969"], ["updated_at", "2016-12-12 17:49:16.662969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4847], ["g5_updatable_hub_amenity_id", 2613]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4847) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.665528"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4847]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4847]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.672392"], ["updated_at", "2016-12-12 17:49:16.672392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.673468"], ["id", 2614]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4847], ["g5_updatable_hub_amenity_id", 2614]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.675582"], ["updated_at", "2016-12-12 17:49:16.675582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.676642"], ["id", 2615]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4847], ["g5_updatable_hub_amenity_id", 2615]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4847]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4847) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.680486"], ["id", 4847]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-12 17:49:16.687744"], ["updated_at", "2016-12-12 17:49:16.687744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:16.689903"], ["updated_at", "2016-12-12 17:49:16.689903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1923]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4848]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.693727"], ["updated_at", "2016-12-12 17:49:16.693727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-12 17:49:16.695190"], ["updated_at", "2016-12-12 17:49:16.695190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4849], ["g5_updatable_hub_amenity_id", 2616]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4849) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.697893"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4849]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4849]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.705047"], ["updated_at", "2016-12-12 17:49:16.705047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.706044"], ["id", 2617]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4849], ["g5_updatable_hub_amenity_id", 2617]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.708189"], ["updated_at", "2016-12-12 17:49:16.708189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.709114"], ["id", 2618]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4849], ["g5_updatable_hub_amenity_id", 2618]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4849]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4849) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.713114"], ["id", 4849]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.717955"], ["updated_at", "2016-12-12 17:49:16.717955"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-12 17:49:16.719504"], ["updated_at", "2016-12-12 17:49:16.719504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4850], ["g5_updatable_hub_amenity_id", 2619]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4850) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.722149"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4850]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4850]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.728520"], ["updated_at", "2016-12-12 17:49:16.728520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.729512"], ["id", 2620]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4850], ["g5_updatable_hub_amenity_id", 2620]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.731960"], ["id", 2619]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4850], ["g5_updatable_hub_amenity_id", 2619]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4850]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4850) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.735788"], ["id", 4850]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.741002"], ["updated_at", "2016-12-12 17:49:16.741002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-12 17:49:16.742476"], ["updated_at", "2016-12-12 17:49:16.742476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4851], ["g5_updatable_hub_amenity_id", 2621]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4851) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.745103"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4851]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4851]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.751570"], ["updated_at", "2016-12-12 17:49:16.751570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.752499"], ["id", 2622]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4851], ["g5_updatable_hub_amenity_id", 2622]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.754638"], ["updated_at", "2016-12-12 17:49:16.754638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.755515"], ["id", 2623]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4851], ["g5_updatable_hub_amenity_id", 2623]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4851]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4851) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.758992"], ["id", 4851]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.764233"], ["updated_at", "2016-12-12 17:49:16.764233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-12 17:49:16.765673"], ["updated_at", "2016-12-12 17:49:16.765673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4852], ["g5_updatable_hub_amenity_id", 2624]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4852) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.768068"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4852]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4852]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.774696"], ["updated_at", "2016-12-12 17:49:16.774696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.775657"], ["id", 2625]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4852], ["g5_updatable_hub_amenity_id", 2625]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.777857"], ["updated_at", "2016-12-12 17:49:16.777857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.778873"], ["id", 2626]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4852], ["g5_updatable_hub_amenity_id", 2626]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4852]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4852) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.782340"], ["id", 4852]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-12 17:49:16.785838"], ["updated_at", "2016-12-12 17:49:16.785838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:16.787927"], ["updated_at", "2016-12-12 17:49:16.787927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1924]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4853]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.791615"], ["updated_at", "2016-12-12 17:49:16.791615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-12 17:49:16.793185"], ["updated_at", "2016-12-12 17:49:16.793185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4854], ["g5_updatable_hub_amenity_id", 2627]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4854) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.795791"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4854]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4854]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.802501"], ["updated_at", "2016-12-12 17:49:16.802501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.803452"], ["id", 2628]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4854], ["g5_updatable_hub_amenity_id", 2628]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.805555"], ["updated_at", "2016-12-12 17:49:16.805555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.806434"], ["id", 2629]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4854], ["g5_updatable_hub_amenity_id", 2629]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4854]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4854) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.809914"], ["id", 4854]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:16.815479"], ["updated_at", "2016-12-12 17:49:16.815479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4855) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.817158"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4855]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4855]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.824087"], ["updated_at", "2016-12-12 17:49:16.824087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.825062"], ["id", 2630]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4855], ["g5_updatable_hub_amenity_id", 2630]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.827313"], ["updated_at", "2016-12-12 17:49:16.827313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.828261"], ["id", 2631]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4855], ["g5_updatable_hub_amenity_id", 2631]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4855]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4855) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.831767"], ["id", 4855]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:16.836376"], ["updated_at", "2016-12-12 17:49:16.836376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4856) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.838853"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4856]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4856]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4856]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4856) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:49:16.848603"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.850640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4857]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4857]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4857) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:49:16.863374"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.865594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4858]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.869932"], ["updated_at", "2016-12-12 17:49:16.869932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.871219"], ["id", 2632]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4858], ["g5_updatable_hub_amenity_id", 2632]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.873768"], ["updated_at", "2016-12-12 17:49:16.873768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.874824"], ["id", 2633]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4858], ["g5_updatable_hub_amenity_id", 2633]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4858]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4858) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.879032"], ["id", 4858]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:49:16.881745"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.884063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4859]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4859], ["g5_updatable_hub_amenity_id", 2632]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4859], ["g5_updatable_hub_amenity_id", 2633]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4859]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4859) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.893723"], ["id", 4859]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:49:16.896642"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.898905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4860]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4860]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4860) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:16.907467"], ["updated_at", "2016-12-12 17:49:16.907467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4861) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.909176"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4861]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4861]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.916530"], ["updated_at", "2016-12-12 17:49:16.916530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.917507"], ["id", 2634]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4861], ["g5_updatable_hub_amenity_id", 2634]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.919873"], ["updated_at", "2016-12-12 17:49:16.919873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.920886"], ["id", 2635]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4861], ["g5_updatable_hub_amenity_id", 2635]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4861]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4861) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.924976"], ["id", 4861]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.931399"], ["updated_at", "2016-12-12 17:49:16.931399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-12 17:49:16.938075"], ["updated_at", "2016-12-12 17:49:16.938075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.942271"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:16.945340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4864]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.951545"], ["updated_at", "2016-12-12 17:49:16.951545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.952649"], ["id", 2636]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4864], ["g5_updatable_hub_amenity_id", 2636]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.955253"], ["updated_at", "2016-12-12 17:49:16.955253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.956388"], ["id", 2637]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4864], ["g5_updatable_hub_amenity_id", 2637]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4864]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4864) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:16.960937"], ["id", 4864]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4862]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4862]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:49:16.969452"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:49:16.973890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4865) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:16.982832"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4865]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4865]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:16.992316"], ["updated_at", "2016-12-12 17:49:16.992316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:16.993408"], ["id", 2638]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4865], ["g5_updatable_hub_amenity_id", 2638]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:16.995998"], ["updated_at", "2016-12-12 17:49:16.995998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:16.997123"], ["id", 2639]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4865], ["g5_updatable_hub_amenity_id", 2639]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4865]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4865) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.001527"], ["id", 4865]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4865]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:49:17.006360"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:49:17.010516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4866) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.019652"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4866]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4866]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.028885"], ["updated_at", "2016-12-12 17:49:17.028885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.030126"], ["id", 2640]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4866], ["g5_updatable_hub_amenity_id", 2640]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.032729"], ["updated_at", "2016-12-12 17:49:17.032729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.033889"], ["id", 2641]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4866], ["g5_updatable_hub_amenity_id", 2641]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4866]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4866) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.038894"], ["id", 4866]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:49:17.042879"], ["updated_at", "2016-12-12 17:49:17.042879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.044802"], ["updated_at", "2016-12-12 17:49:17.044802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1925]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4867]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.048511"], ["updated_at", "2016-12-12 17:49:17.048511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.050051"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.052945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4869]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.057942"], ["updated_at", "2016-12-12 17:49:17.057942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.059043"], ["id", 2642]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4869], ["g5_updatable_hub_amenity_id", 2642]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.074214"], ["updated_at", "2016-12-12 17:49:17.074214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.075228"], ["id", 2643]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4869], ["g5_updatable_hub_amenity_id", 2643]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4869]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4869) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.079200"], ["id", 4869]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4868]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4868]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.085291"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.087822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4870]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.091820"], ["updated_at", "2016-12-12 17:49:17.091820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.092766"], ["id", 2644]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4870], ["g5_updatable_hub_amenity_id", 2644]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.095308"], ["updated_at", "2016-12-12 17:49:17.095308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.096418"], ["id", 2645]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4870], ["g5_updatable_hub_amenity_id", 2645]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4870]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4870) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.100113"], ["id", 4870]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.104801"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.106845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4871]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.110882"], ["updated_at", "2016-12-12 17:49:17.110882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.112057"], ["id", 2646]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4871], ["g5_updatable_hub_amenity_id", 2646]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.114721"], ["updated_at", "2016-12-12 17:49:17.114721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.115632"], ["id", 2647]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4871], ["g5_updatable_hub_amenity_id", 2647]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4871]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4871) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.119290"], ["id", 4871]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4871]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4871]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.125407"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.127505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4872]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.132001"], ["updated_at", "2016-12-12 17:49:17.132001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.133140"], ["id", 2648]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4872], ["g5_updatable_hub_amenity_id", 2648]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.135945"], ["updated_at", "2016-12-12 17:49:17.135945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.137207"], ["id", 2649]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4872], ["g5_updatable_hub_amenity_id", 2649]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4872]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4872) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.141132"], ["id", 4872]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.144824"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.147145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4873]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.150940"], ["updated_at", "2016-12-12 17:49:17.150940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.152088"], ["id", 2650]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4873], ["g5_updatable_hub_amenity_id", 2650]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.154213"], ["updated_at", "2016-12-12 17:49:17.154213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.155107"], ["id", 2651]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4873], ["g5_updatable_hub_amenity_id", 2651]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4873]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4873) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.158602"], ["id", 4873]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.164673"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.166856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4874]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.170853"], ["updated_at", "2016-12-12 17:49:17.170853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.171923"], ["id", 2652]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4874], ["g5_updatable_hub_amenity_id", 2652]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.174156"], ["updated_at", "2016-12-12 17:49:17.174156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.175029"], ["id", 2653]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4874], ["g5_updatable_hub_amenity_id", 2653]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4874]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4874) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.178894"], ["id", 4874]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.183586"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.185956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4875]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.190260"], ["updated_at", "2016-12-12 17:49:17.190260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.191185"], ["id", 2654]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4875], ["g5_updatable_hub_amenity_id", 2654]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.193473"], ["updated_at", "2016-12-12 17:49:17.193473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.194423"], ["id", 2655]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4875], ["g5_updatable_hub_amenity_id", 2655]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4875]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4875) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.198167"], ["id", 4875]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.202920"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.204978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4876]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.208758"], ["updated_at", "2016-12-12 17:49:17.208758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.209738"], ["id", 2656]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4876], ["g5_updatable_hub_amenity_id", 2656]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.212026"], ["updated_at", "2016-12-12 17:49:17.212026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.213024"], ["id", 2657]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4876], ["g5_updatable_hub_amenity_id", 2657]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4876]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4876) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.216780"], ["id", 4876]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.221577"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.223836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4877]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.227834"], ["updated_at", "2016-12-12 17:49:17.227834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.228753"], ["id", 2658]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4877], ["g5_updatable_hub_amenity_id", 2658]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.231087"], ["updated_at", "2016-12-12 17:49:17.231087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.232017"], ["id", 2659]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4877], ["g5_updatable_hub_amenity_id", 2659]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4877]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4877) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.235875"], ["id", 4877]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.241028"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.243118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4878]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.247410"], ["updated_at", "2016-12-12 17:49:17.247410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.248390"], ["id", 2660]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4878], ["g5_updatable_hub_amenity_id", 2660]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.250640"], ["updated_at", "2016-12-12 17:49:17.250640"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.251847"], ["id", 2661]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4878], ["g5_updatable_hub_amenity_id", 2661]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4878]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4878) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.255505"], ["id", 4878]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.260366"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.262905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4879]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.267013"], ["updated_at", "2016-12-12 17:49:17.267013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.268188"], ["id", 2662]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4879], ["g5_updatable_hub_amenity_id", 2662]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.270840"], ["updated_at", "2016-12-12 17:49:17.270840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.271886"], ["id", 2663]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4879], ["g5_updatable_hub_amenity_id", 2663]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4879]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4879) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.279936"], ["id", 4879]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.284475"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.287415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4880]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.291604"], ["updated_at", "2016-12-12 17:49:17.291604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.292648"], ["id", 2664]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4880], ["g5_updatable_hub_amenity_id", 2664]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.294968"], ["updated_at", "2016-12-12 17:49:17.294968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.295841"], ["id", 2665]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4880], ["g5_updatable_hub_amenity_id", 2665]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4880]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4880) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.299558"], ["id", 4880]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.304455"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.306452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4881]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.310279"], ["updated_at", "2016-12-12 17:49:17.310279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.311433"], ["id", 2666]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4881], ["g5_updatable_hub_amenity_id", 2666]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.314169"], ["updated_at", "2016-12-12 17:49:17.314169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.315191"], ["id", 2667]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4881], ["g5_updatable_hub_amenity_id", 2667]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4881]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4881) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.318826"], ["id", 4881]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:49:17.322065"], ["updated_at", "2016-12-12 17:49:17.322065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.323887"], ["updated_at", "2016-12-12 17:49:17.323887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1926]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4882]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:49:17.359035"], ["updated_at", "2016-12-12 17:49:17.359035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1927) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1927) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:49:17.361087"], ["id", 1927]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1927]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:49:17.365227"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:49:17.366272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:49:17.368673"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:49:17.369711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:49:17.372519"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:49:17.373596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:49:17.376769"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:49:17.377759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:49:17.380395"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:49:17.381399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:49:17.384202"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:49:17.385473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:49:17.388488"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:49:17.389484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.392781"], ["updated_at", "2016-12-12 17:49:17.392781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1935) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1935) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:49:17.393932"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1935]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.398236"], ["updated_at", "2016-12-12 17:49:17.398236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1936) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1936) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:49:17.399379"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1936]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.404176"], ["updated_at", "2016-12-12 17:49:17.404176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1937) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1937) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:49:17.405360"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1937]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.409808"], ["updated_at", "2016-12-12 17:49:17.409808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1938) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1938) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:49:17.410926"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1938]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:49:17.417240"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:49:17.419261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.421504"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.423836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4883]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4883]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4883) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:49:17.430609"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.432591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4884]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4884]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4884) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:49:17.439531"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.441590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4885]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.445679"], ["updated_at", "2016-12-12 17:49:17.445679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.446637"], ["id", 2668]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4885], ["g5_updatable_hub_amenity_id", 2668]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.448810"], ["updated_at", "2016-12-12 17:49:17.448810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.449864"], ["id", 2669]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4885], ["g5_updatable_hub_amenity_id", 2669]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4885]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4885) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.454296"], ["id", 4885]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:49:17.456839"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.458857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4886]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4886], ["g5_updatable_hub_amenity_id", 2668]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4886], ["g5_updatable_hub_amenity_id", 2669]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4886]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4886) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.467096"], ["id", 4886]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:49:17.469753"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.471876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4887]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4887]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4887) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:49:17.490820"], ["updated_at", "2016-12-12 17:49:17.490820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1940]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:49:17.493936"], ["updated_at", "2016-12-12 17:49:17.493936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.495615"], ["updated_at", "2016-12-12 17:49:17.495615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:49:17.513661"], ["updated_at", "2016-12-12 17:49:17.513661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.530402"], ["updated_at", "2016-12-12 17:49:17.530402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4889]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.6ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.535604"], ["updated_at", "2016-12-12 17:49:17.535604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-12 17:49:17.537402"], ["updated_at", "2016-12-12 17:49:17.537402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-12 17:49:17.538752"], ["updated_at", "2016-12-12 17:49:17.538752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4890], ["g5_updatable_hub_amenity_id", 2670]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4890], ["g5_updatable_hub_amenity_id", 2671]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4890]]  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 4890) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-11|amenity-12|"], ["updated_at", "2016-12-12 17:49:17.544839"], ["id", 4890]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4890]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4890]] G5Updatable::HubAmenitiesLocation Load (0.3ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4890]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4890]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4890]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.555073"], ["updated_at", "2016-12-12 17:49:17.555073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-12 17:49:17.556480"], ["updated_at", "2016-12-12 17:49:17.556480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-12 17:49:17.557524"], ["updated_at", "2016-12-12 17:49:17.557524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4891], ["g5_updatable_hub_amenity_id", 2672]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4891], ["g5_updatable_hub_amenity_id", 2673]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4891]]  (0.3ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 4891) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-13|amenity-14|"], ["updated_at", "2016-12-12 17:49:17.565649"], ["id", 4891]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4891]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4891]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:49:17.597588"], ["updated_at", "2016-12-12 17:49:17.597588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.614839"], ["updated_at", "2016-12-12 17:49:17.614839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.618540"], ["updated_at", "2016-12-12 17:49:17.618540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.620930"], ["updated_at", "2016-12-12 17:49:17.620930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.629562"], ["updated_at", "2016-12-12 17:49:17.629562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.634104"], ["updated_at", "2016-12-12 17:49:17.634104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.635801"], ["updated_at", "2016-12-12 17:49:17.635801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.639617"], ["updated_at", "2016-12-12 17:49:17.639617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.642482"], ["updated_at", "2016-12-12 17:49:17.642482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.644123"], ["updated_at", "2016-12-12 17:49:17.644123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.647714"], ["updated_at", "2016-12-12 17:49:17.647714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.650559"], ["updated_at", "2016-12-12 17:49:17.650559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.652397"], ["updated_at", "2016-12-12 17:49:17.652397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.655086"], ["updated_at", "2016-12-12 17:49:17.655086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.657800"], ["updated_at", "2016-12-12 17:49:17.657800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.659367"], ["updated_at", "2016-12-12 17:49:17.659367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.662254"], ["updated_at", "2016-12-12 17:49:17.662254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.665049"], ["updated_at", "2016-12-12 17:49:17.665049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.666620"], ["updated_at", "2016-12-12 17:49:17.666620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:49:17.669271"], ["updated_at", "2016-12-12 17:49:17.669271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.671867"], ["updated_at", "2016-12-12 17:49:17.671867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.674841"], ["updated_at", "2016-12-12 17:49:17.674841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.676604"], ["updated_at", "2016-12-12 17:49:17.676604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.680107"], ["updated_at", "2016-12-12 17:49:17.680107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.682888"], ["updated_at", "2016-12-12 17:49:17.682888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.684552"], ["updated_at", "2016-12-12 17:49:17.684552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.688979"], ["updated_at", "2016-12-12 17:49:17.688979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.691671"], ["updated_at", "2016-12-12 17:49:17.691671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.693184"], ["updated_at", "2016-12-12 17:49:17.693184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.696743"], ["updated_at", "2016-12-12 17:49:17.696743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.699383"], ["updated_at", "2016-12-12 17:49:17.699383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.700907"], ["updated_at", "2016-12-12 17:49:17.700907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.704204"], ["updated_at", "2016-12-12 17:49:17.704204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.706823"], ["updated_at", "2016-12-12 17:49:17.706823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.708359"], ["updated_at", "2016-12-12 17:49:17.708359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.711704"], ["updated_at", "2016-12-12 17:49:17.711704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.714444"], ["updated_at", "2016-12-12 17:49:17.714444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.715966"], ["updated_at", "2016-12-12 17:49:17.715966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:49:17.719966"], ["updated_at", "2016-12-12 17:49:17.719966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.722950"], ["updated_at", "2016-12-12 17:49:17.722950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:49:17.724543"], ["updated_at", "2016-12-12 17:49:17.724543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:49:17.728631"], ["updated_at", "2016-12-12 17:49:17.728631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.730340"], ["updated_at", "2016-12-12 17:49:17.730340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:49:17.733653"], ["updated_at", "2016-12-12 17:49:17.733653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.735438"], ["updated_at", "2016-12-12 17:49:17.735438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.738320"], ["updated_at", "2016-12-12 17:49:17.738320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.740886"], ["updated_at", "2016-12-12 17:49:17.740886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.743230"], ["updated_at", "2016-12-12 17:49:17.743230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.750105"], ["updated_at", "2016-12-12 17:49:17.750105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.752159"], ["updated_at", "2016-12-12 17:49:17.752159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.755315"], ["updated_at", "2016-12-12 17:49:17.755315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.757070"], ["updated_at", "2016-12-12 17:49:17.757070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.759814"], ["updated_at", "2016-12-12 17:49:17.759814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.761743"], ["updated_at", "2016-12-12 17:49:17.761743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.765710"], ["updated_at", "2016-12-12 17:49:17.765710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.767410"], ["updated_at", "2016-12-12 17:49:17.767410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.771597"], ["updated_at", "2016-12-12 17:49:17.771597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:17.773573"], ["updated_at", "2016-12-12 17:49:17.773573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.786837"], ["updated_at", "2016-12-12 17:49:17.786837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:49:17.788943"], ["updated_at", "2016-12-12 17:49:17.788943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-12 17:49:17.790222"], ["updated_at", "2016-12-12 17:49:17.790222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-12 17:49:17.791292"], ["updated_at", "2016-12-12 17:49:17.791292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-12 17:49:17.792355"], ["updated_at", "2016-12-12 17:49:17.792355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4935], ["g5_updatable_hub_amenity_id", 2674]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4935], ["g5_updatable_hub_amenity_id", 2675]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.8ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:49:17.800966"], ["updated_at", "2016-12-12 17:49:17.800966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:49:17.802633"], ["updated_at", "2016-12-12 17:49:17.802633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-12 17:49:17.804155"], ["updated_at", "2016-12-12 17:49:17.804155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-12 17:49:17.805109"], ["updated_at", "2016-12-12 17:49:17.805109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-12 17:49:17.805954"], ["updated_at", "2016-12-12 17:49:17.805954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4936], ["g5_updatable_hub_amenity_id", 2677]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4936], ["g5_updatable_hub_amenity_id", 2678]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:49:17.815159"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:49:17.816985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.819617"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.822111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4937]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4937]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4937) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:49:17.834287"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.837015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4938]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4938]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4938) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:49:17.843975"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.846251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4939]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.850263"], ["updated_at", "2016-12-12 17:49:17.850263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.851220"], ["id", 2680]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4939], ["g5_updatable_hub_amenity_id", 2680]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.853711"], ["updated_at", "2016-12-12 17:49:17.853711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.854629"], ["id", 2681]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4939], ["g5_updatable_hub_amenity_id", 2681]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4939]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4939) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.858465"], ["id", 4939]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:49:17.861015"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.863343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4940]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4940], ["g5_updatable_hub_amenity_id", 2680]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4940], ["g5_updatable_hub_amenity_id", 2681]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4940]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4940) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.871967"], ["id", 4940]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:49:17.874396"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.876439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4941]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4941]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4941) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:49:17.888224"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:49:17.890054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.892316"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.894388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4942]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4942]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4942) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:49:17.901371"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.903871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4943]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4943]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4943) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:49:17.911065"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.913519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4944]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.917355"], ["updated_at", "2016-12-12 17:49:17.917355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.918387"], ["id", 2682]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4944], ["g5_updatable_hub_amenity_id", 2682]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.920708"], ["updated_at", "2016-12-12 17:49:17.920708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.921755"], ["id", 2683]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4944], ["g5_updatable_hub_amenity_id", 2683]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4944]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4944) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.925625"], ["id", 4944]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:49:17.928037"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.930478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4945]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4945], ["g5_updatable_hub_amenity_id", 2682]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4945], ["g5_updatable_hub_amenity_id", 2683]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4945]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4945) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:17.939513"], ["id", 4945]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:49:17.942346"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.944745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4946]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4946]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4946) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:49:17.959752"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:49:17.961591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:17.964426"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.967260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4947]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4947]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4947) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:49:17.974831"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.977002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4948]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4948]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4948) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:49:17.984101"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:17.987018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4949]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:17.991077"], ["updated_at", "2016-12-12 17:49:17.991077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:17.995866"], ["id", 2684]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4949], ["g5_updatable_hub_amenity_id", 2684]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:17.998325"], ["updated_at", "2016-12-12 17:49:17.998325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:17.999213"], ["id", 2685]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4949], ["g5_updatable_hub_amenity_id", 2685]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4949]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4949) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:18.003149"], ["id", 4949]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:49:18.005698"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.007810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4950]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4950], ["g5_updatable_hub_amenity_id", 2684]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4950], ["g5_updatable_hub_amenity_id", 2685]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4950]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4950) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:18.017609"], ["id", 4950]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:49:18.020560"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.022989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4951]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4951]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4951) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4949]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:49:18.037033"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:49:18.038994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:18.041423"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.043734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4952]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4952]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4952) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:49:18.050973"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.053532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4953]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4953]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4953) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:49:18.060265"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.062463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4954]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:18.066092"], ["updated_at", "2016-12-12 17:49:18.066092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:18.067068"], ["id", 2686]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4954], ["g5_updatable_hub_amenity_id", 2686]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:18.069425"], ["updated_at", "2016-12-12 17:49:18.069425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:18.070346"], ["id", 2687]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4954], ["g5_updatable_hub_amenity_id", 2687]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4954]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4954) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:18.074449"], ["id", 4954]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:49:18.077038"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.079279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4955]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4955], ["g5_updatable_hub_amenity_id", 2686]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4955], ["g5_updatable_hub_amenity_id", 2687]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4955]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4955) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:18.087797"], ["id", 4955]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:49:18.090572"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.092690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4956]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4956]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4956) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1963) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1963) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:49:18.103978"], ["id", 1963]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.2ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4956]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4956]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4955]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2994]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2995]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4955]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4954]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2992]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2993]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4954]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4953]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4953]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4952]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4952]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:49:18.121833"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:49:18.123865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:18.126169"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.128569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4957]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4957]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4957) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:49:18.135796"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.137867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4958]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4958]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 4958) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:49:18.144612"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.146878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4959]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:18.150759"], ["updated_at", "2016-12-12 17:49:18.150759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:18.152031"], ["id", 2688]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4959], ["g5_updatable_hub_amenity_id", 2688]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:18.154324"], ["updated_at", "2016-12-12 17:49:18.154324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:18.155223"], ["id", 2689]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4959], ["g5_updatable_hub_amenity_id", 2689]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4959]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 4959) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:18.159015"], ["id", 4959]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:49:18.161607"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.168150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4960]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4960], ["g5_updatable_hub_amenity_id", 2688]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4960], ["g5_updatable_hub_amenity_id", 2689]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4960]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 4960) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:18.176385"], ["id", 4960]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:49:18.178879"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.180987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4961]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4961]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 4961) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1964) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1964) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:49:18.191158"], ["id", 1964]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4957) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-12 17:49:18.196819"], ["id", 4957]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4957]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4957]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4957) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4961]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4961]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4960]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2998]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2999]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4960]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4959]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2996]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 2997]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4959]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4958]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4958]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:49:18.217713"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:49:18.220046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4962]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:49:18.224248"], ["updated_at", "2016-12-12 17:49:18.224248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:49:18.225306"], ["id", 2690]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4962], ["g5_updatable_hub_amenity_id", 2690]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:49:18.227418"], ["updated_at", "2016-12-12 17:49:18.227418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:49:18.228346"], ["id", 2691]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4962], ["g5_updatable_hub_amenity_id", 2691]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4962]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4962) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:49:18.232146"], ["id", 4962]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:49:18.251660"], ["updated_at", "2016-12-12 17:49:18.251660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:18.253698"], ["updated_at", "2016-12-12 17:49:18.253698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:18.255475"], ["updated_at", "2016-12-12 17:49:18.255475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:18.257171"], ["updated_at", "2016-12-12 17:49:18.257171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:49:18.263802"], ["updated_at", "2016-12-12 17:49:18.263802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:18.265690"], ["updated_at", "2016-12-12 17:49:18.265690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:18.267368"], ["updated_at", "2016-12-12 17:49:18.267368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:18.269229"], ["updated_at", "2016-12-12 17:49:18.269229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:18.276508"], ["updated_at", "2016-12-12 17:49:18.276508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.27ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:49:18.283347"], ["updated_at", "2016-12-12 17:49:18.283347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.33ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.6ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:52.567025"], ["updated_at", "2016-12-12 17:54:52.567025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.4ms) Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:52.582862"], ["updated_at", "2016-12-12 17:54:52.582862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.3ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-12 17:54:52.594071"], ["updated_at", "2016-12-12 17:54:52.594071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:52.596109"], ["updated_at", "2016-12-12 17:54:52.596109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:54:52.606518"], ["updated_at", "2016-12-12 17:54:52.606518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1968]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:54:52.622709"], ["updated_at", "2016-12-12 17:54:52.622709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.678593"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.682330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4974]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.695229"], ["updated_at", "2016-12-12 17:54:52.695229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.697795"], ["id", 2692]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4974], ["g5_updatable_hub_amenity_id", 2692]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.705434"], ["updated_at", "2016-12-12 17:54:52.705434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.706576"], ["id", 2693]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4974], ["g5_updatable_hub_amenity_id", 2693]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4974]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4974) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.713127"], ["id", 4974]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.720455"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.722906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4975]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.727680"], ["updated_at", "2016-12-12 17:54:52.727680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.728958"], ["id", 2694]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4975], ["g5_updatable_hub_amenity_id", 2694]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.731775"], ["updated_at", "2016-12-12 17:54:52.731775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.733034"], ["id", 2695]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4975], ["g5_updatable_hub_amenity_id", 2695]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4975]]  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4975) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.739982"], ["id", 4975]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4975]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4975]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.747427"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.749882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4976]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.755042"], ["updated_at", "2016-12-12 17:54:52.755042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.756422"], ["id", 2696]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4976], ["g5_updatable_hub_amenity_id", 2696]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.759593"], ["updated_at", "2016-12-12 17:54:52.759593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.760751"], ["id", 2697]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4976], ["g5_updatable_hub_amenity_id", 2697]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4976]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4976) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.765315"], ["id", 4976]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.772475"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.775010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4977]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.780071"], ["updated_at", "2016-12-12 17:54:52.780071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.781391"], ["id", 2698]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4977], ["g5_updatable_hub_amenity_id", 2698]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.784114"], ["updated_at", "2016-12-12 17:54:52.784114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.785300"], ["id", 2699]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4977], ["g5_updatable_hub_amenity_id", 2699]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4977]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4977) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.789753"], ["id", 4977]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.794087"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.796891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4978]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.801352"], ["updated_at", "2016-12-12 17:54:52.801352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.802461"], ["id", 2700]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4978], ["g5_updatable_hub_amenity_id", 2700]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.805274"], ["updated_at", "2016-12-12 17:54:52.805274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.806319"], ["id", 2701]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4978], ["g5_updatable_hub_amenity_id", 2701]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4978]]  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4978) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.818327"], ["id", 4978]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.823996"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.826346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4979]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.830989"], ["updated_at", "2016-12-12 17:54:52.830989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.832122"], ["id", 2702]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4979], ["g5_updatable_hub_amenity_id", 2702]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.834610"], ["updated_at", "2016-12-12 17:54:52.834610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.835747"], ["id", 2703]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4979], ["g5_updatable_hub_amenity_id", 2703]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4979]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4979) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.840198"], ["id", 4979]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.845779"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.848226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4980]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.852617"], ["updated_at", "2016-12-12 17:54:52.852617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.853762"], ["id", 2704]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4980], ["g5_updatable_hub_amenity_id", 2704]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.856634"], ["updated_at", "2016-12-12 17:54:52.856634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.857608"], ["id", 2705]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4980], ["g5_updatable_hub_amenity_id", 2705]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4980]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4980) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.861861"], ["id", 4980]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.866649"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.868948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4981]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.873038"], ["updated_at", "2016-12-12 17:54:52.873038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.874054"], ["id", 2706]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4981], ["g5_updatable_hub_amenity_id", 2706]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.876317"], ["updated_at", "2016-12-12 17:54:52.876317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.877288"], ["id", 2707]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4981], ["g5_updatable_hub_amenity_id", 2707]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4981]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4981) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.881280"], ["id", 4981]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:54:52.884299"], ["updated_at", "2016-12-12 17:54:52.884299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:52.885984"], ["updated_at", "2016-12-12 17:54:52.885984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1970]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4982]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.889243"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.891376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4983]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.895582"], ["updated_at", "2016-12-12 17:54:52.895582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.896538"], ["id", 2708]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4983], ["g5_updatable_hub_amenity_id", 2708]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.898850"], ["updated_at", "2016-12-12 17:54:52.898850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.899927"], ["id", 2709]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4983], ["g5_updatable_hub_amenity_id", 2709]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4983]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4983) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.904004"], ["id", 4983]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.909648"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.912141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4984]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.918614"], ["updated_at", "2016-12-12 17:54:52.918614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.919597"], ["id", 2710]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4984], ["g5_updatable_hub_amenity_id", 2710]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.923455"], ["updated_at", "2016-12-12 17:54:52.923455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.927299"], ["id", 2711]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4984], ["g5_updatable_hub_amenity_id", 2711]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4984]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4984) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.931519"], ["id", 4984]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.935989"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.938013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4985]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.941888"], ["updated_at", "2016-12-12 17:54:52.941888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.942877"], ["id", 2712]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4985], ["g5_updatable_hub_amenity_id", 2712]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.945239"], ["updated_at", "2016-12-12 17:54:52.945239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.946148"], ["id", 2713]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4985], ["g5_updatable_hub_amenity_id", 2713]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4985]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4985) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.950028"], ["id", 4985]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.955115"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.957376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4986]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.961456"], ["updated_at", "2016-12-12 17:54:52.961456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.962659"], ["id", 2714]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4986], ["g5_updatable_hub_amenity_id", 2714]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.965069"], ["updated_at", "2016-12-12 17:54:52.965069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.965982"], ["id", 2715]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4986], ["g5_updatable_hub_amenity_id", 2715]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4986]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4986) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.969786"], ["id", 4986]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:52.974435"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.976517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4987]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:52.980609"], ["updated_at", "2016-12-12 17:54:52.980609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:52.981617"], ["id", 2716]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4987], ["g5_updatable_hub_amenity_id", 2716]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:52.983761"], ["updated_at", "2016-12-12 17:54:52.983761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:52.984685"], ["id", 2717]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4987], ["g5_updatable_hub_amenity_id", 2717]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4987]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4987) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:52.988377"], ["id", 4987]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:52.995132"], ["updated_at", "2016-12-12 17:54:52.995132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-12 17:54:53.001829"], ["updated_at", "2016-12-12 17:54:53.001829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.005998"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.008346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4990]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.013154"], ["updated_at", "2016-12-12 17:54:53.013154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.014462"], ["id", 2718]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4990], ["g5_updatable_hub_amenity_id", 2718]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.017035"], ["updated_at", "2016-12-12 17:54:53.017035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.018222"], ["id", 2719]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4990], ["g5_updatable_hub_amenity_id", 2719]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4990]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4990) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.023865"], ["id", 4990]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4988]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4988]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:54:53.037489"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:54:53.040808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4991) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.049047"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4991]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4991]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.057373"], ["updated_at", "2016-12-12 17:54:53.057373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.058495"], ["id", 2720]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4991], ["g5_updatable_hub_amenity_id", 2720]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.060923"], ["updated_at", "2016-12-12 17:54:53.060923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.062081"], ["id", 2721]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4991], ["g5_updatable_hub_amenity_id", 2721]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4991]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4991) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.066070"], ["id", 4991]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4991]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 16:54:53.070689"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 17:54:53.073658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4992) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.081310"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4992]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4992]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.088732"], ["updated_at", "2016-12-12 17:54:53.088732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.089832"], ["id", 2722]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4992], ["g5_updatable_hub_amenity_id", 2722]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.092055"], ["updated_at", "2016-12-12 17:54:53.092055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.093037"], ["id", 2723]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4992], ["g5_updatable_hub_amenity_id", 2723]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4992]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4992) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.097061"], ["id", 4992]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:54:53.100652"], ["updated_at", "2016-12-12 17:54:53.100652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.102816"], ["updated_at", "2016-12-12 17:54:53.102816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1971]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 4993]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.106445"], ["updated_at", "2016-12-12 17:54:53.106445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.108060"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.110815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4995]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.115704"], ["updated_at", "2016-12-12 17:54:53.115704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.116707"], ["id", 2724]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4995], ["g5_updatable_hub_amenity_id", 2724]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.119066"], ["updated_at", "2016-12-12 17:54:53.119066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.120022"], ["id", 2725]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4995], ["g5_updatable_hub_amenity_id", 2725]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4995]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4995) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.123883"], ["id", 4995]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4994]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 4994]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.131277"], ["updated_at", "2016-12-12 17:54:53.131277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.133136"], ["updated_at", "2016-12-12 17:54:53.133136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4996], ["g5_updatable_hub_amenity_id", 2726]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4996) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.136327"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4996]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4996]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.147521"], ["id", 2726]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4996], ["g5_updatable_hub_amenity_id", 2726]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.150313"], ["updated_at", "2016-12-12 17:54:53.150313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.151647"], ["id", 2727]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4996], ["g5_updatable_hub_amenity_id", 2727]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4996]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4996) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.156980"], ["id", 4996]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.163193"], ["updated_at", "2016-12-12 17:54:53.163193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.165130"], ["updated_at", "2016-12-12 17:54:53.165130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4997], ["g5_updatable_hub_amenity_id", 2728]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4997) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.168109"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4997]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4997]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.177237"], ["updated_at", "2016-12-12 17:54:53.177237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.178332"], ["id", 2729]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4997], ["g5_updatable_hub_amenity_id", 2729]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.180920"], ["updated_at", "2016-12-12 17:54:53.180920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.181933"], ["id", 2730]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4997], ["g5_updatable_hub_amenity_id", 2730]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4997]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4997) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.186246"], ["id", 4997]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.192312"], ["updated_at", "2016-12-12 17:54:53.192312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.193984"], ["updated_at", "2016-12-12 17:54:53.193984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4998], ["g5_updatable_hub_amenity_id", 2731]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4998) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.197084"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4998]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4998]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.206202"], ["updated_at", "2016-12-12 17:54:53.206202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.207321"], ["id", 2732]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4998], ["g5_updatable_hub_amenity_id", 2732]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.209836"], ["updated_at", "2016-12-12 17:54:53.209836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.211180"], ["id", 2733]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4998], ["g5_updatable_hub_amenity_id", 2733]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4998]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4998) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.216032"], ["id", 4998]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4998]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.222842"], ["updated_at", "2016-12-12 17:54:53.222842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.224451"], ["updated_at", "2016-12-12 17:54:53.224451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4999], ["g5_updatable_hub_amenity_id", 2734]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4999) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.227396"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 4999]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4999]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.235920"], ["updated_at", "2016-12-12 17:54:53.235920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.237109"], ["id", 2735]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4999], ["g5_updatable_hub_amenity_id", 2735]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.239633"], ["updated_at", "2016-12-12 17:54:53.239633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.240764"], ["id", 2736]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 4999], ["g5_updatable_hub_amenity_id", 2736]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 4999]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 4999) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.245494"], ["id", 4999]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.251621"], ["updated_at", "2016-12-12 17:54:53.251621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.253340"], ["updated_at", "2016-12-12 17:54:53.253340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5000], ["g5_updatable_hub_amenity_id", 2737]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5000) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.256506"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5000]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5000]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.278494"], ["updated_at", "2016-12-12 17:54:53.278494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.279741"], ["id", 2738]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5000], ["g5_updatable_hub_amenity_id", 2738]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.282240"], ["updated_at", "2016-12-12 17:54:53.282240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.283277"], ["id", 2739]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5000], ["g5_updatable_hub_amenity_id", 2739]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5000]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5000) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.287029"], ["id", 5000]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:54:53.289982"], ["updated_at", "2016-12-12 17:54:53.289982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.291617"], ["updated_at", "2016-12-12 17:54:53.291617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1972]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5001]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.295020"], ["updated_at", "2016-12-12 17:54:53.295020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.296458"], ["updated_at", "2016-12-12 17:54:53.296458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5002], ["g5_updatable_hub_amenity_id", 2740]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5002) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.299017"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5002]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5002]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.306299"], ["updated_at", "2016-12-12 17:54:53.306299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.307253"], ["id", 2741]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5002], ["g5_updatable_hub_amenity_id", 2741]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.309389"], ["updated_at", "2016-12-12 17:54:53.309389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.310656"], ["id", 2742]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5002], ["g5_updatable_hub_amenity_id", 2742]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5002]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5002) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.314900"], ["id", 5002]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.320034"], ["updated_at", "2016-12-12 17:54:53.320034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.321531"], ["updated_at", "2016-12-12 17:54:53.321531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5003], ["g5_updatable_hub_amenity_id", 2743]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5003) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.324199"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5003]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5003]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.330483"], ["updated_at", "2016-12-12 17:54:53.330483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.331621"], ["id", 2744]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5003], ["g5_updatable_hub_amenity_id", 2744]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.333967"], ["id", 2743]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5003], ["g5_updatable_hub_amenity_id", 2743]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5003]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5003) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.337632"], ["id", 5003]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.341884"], ["updated_at", "2016-12-12 17:54:53.341884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.343385"], ["updated_at", "2016-12-12 17:54:53.343385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5004], ["g5_updatable_hub_amenity_id", 2745]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5004) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.346085"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5004]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5004]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.353115"], ["updated_at", "2016-12-12 17:54:53.353115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.354312"], ["id", 2746]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5004], ["g5_updatable_hub_amenity_id", 2746]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.357048"], ["updated_at", "2016-12-12 17:54:53.357048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.358121"], ["id", 2747]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5004], ["g5_updatable_hub_amenity_id", 2747]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5004]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5004) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.362289"], ["id", 5004]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.367466"], ["updated_at", "2016-12-12 17:54:53.367466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.369002"], ["updated_at", "2016-12-12 17:54:53.369002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5005], ["g5_updatable_hub_amenity_id", 2748]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5005) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.371463"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5005]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5005]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.377965"], ["updated_at", "2016-12-12 17:54:53.377965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.378879"], ["id", 2749]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5005], ["g5_updatable_hub_amenity_id", 2749]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.381141"], ["updated_at", "2016-12-12 17:54:53.381141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.382040"], ["id", 2750]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5005], ["g5_updatable_hub_amenity_id", 2750]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5005]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5005) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.385578"], ["id", 5005]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.390773"], ["updated_at", "2016-12-12 17:54:53.390773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.392236"], ["updated_at", "2016-12-12 17:54:53.392236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5006], ["g5_updatable_hub_amenity_id", 2751]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5006) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.394904"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5006]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5006]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.401381"], ["updated_at", "2016-12-12 17:54:53.401381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.402380"], ["id", 2752]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5006], ["g5_updatable_hub_amenity_id", 2752]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.404710"], ["updated_at", "2016-12-12 17:54:53.404710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.405774"], ["id", 2753]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5006], ["g5_updatable_hub_amenity_id", 2753]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5006]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5006) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.409507"], ["id", 5006]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-12 17:54:53.413475"], ["updated_at", "2016-12-12 17:54:53.413475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.415520"], ["updated_at", "2016-12-12 17:54:53.415520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1973]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5007]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.419151"], ["updated_at", "2016-12-12 17:54:53.419151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5008) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.420814"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5008]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5008]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.427526"], ["updated_at", "2016-12-12 17:54:53.427526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.428510"], ["id", 2754]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5008], ["g5_updatable_hub_amenity_id", 2754]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.430907"], ["updated_at", "2016-12-12 17:54:53.430907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.431942"], ["id", 2755]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5008], ["g5_updatable_hub_amenity_id", 2755]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5008]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5008) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.435857"], ["id", 5008]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.440483"], ["updated_at", "2016-12-12 17:54:53.440483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5009) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.442799"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5009]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5009]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5009]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5009) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:54:53.452445"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.454599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5010]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5010]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5010) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:54:53.461660"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.464479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5011]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.468963"], ["updated_at", "2016-12-12 17:54:53.468963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.469949"], ["id", 2756]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5011], ["g5_updatable_hub_amenity_id", 2756]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.472314"], ["updated_at", "2016-12-12 17:54:53.472314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.473291"], ["id", 2757]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5011], ["g5_updatable_hub_amenity_id", 2757]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5011]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5011) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.481423"], ["id", 5011]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:54:53.483946"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.486198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5012]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5012], ["g5_updatable_hub_amenity_id", 2756]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5012], ["g5_updatable_hub_amenity_id", 2757]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5012]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5012) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.494429"], ["id", 5012]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:54:53.496901"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.499066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5013]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5013]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5013) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.507185"], ["updated_at", "2016-12-12 17:54:53.507185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5014) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.508879"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5014]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5014]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.515716"], ["updated_at", "2016-12-12 17:54:53.515716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.516658"], ["id", 2758]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5014], ["g5_updatable_hub_amenity_id", 2758]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.518899"], ["updated_at", "2016-12-12 17:54:53.518899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.519817"], ["id", 2759]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5014], ["g5_updatable_hub_amenity_id", 2759]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5014]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5014) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.523354"], ["id", 5014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.527947"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.530174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5015]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.534034"], ["updated_at", "2016-12-12 17:54:53.534034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.535112"], ["id", 2760]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5015], ["g5_updatable_hub_amenity_id", 2760]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.537241"], ["updated_at", "2016-12-12 17:54:53.537241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.538175"], ["id", 2761]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5015], ["g5_updatable_hub_amenity_id", 2761]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5015]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5015) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.541731"], ["id", 5015]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:53.560135"], ["updated_at", "2016-12-12 17:54:53.560135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:54:53.562921"], ["updated_at", "2016-12-12 17:54:53.562921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.564152"], ["updated_at", "2016-12-12 17:54:53.564152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.565064"], ["updated_at", "2016-12-12 17:54:53.565064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.565914"], ["updated_at", "2016-12-12 17:54:53.565914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5016], ["g5_updatable_hub_amenity_id", 2762]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5016], ["g5_updatable_hub_amenity_id", 2763]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:53.574152"], ["updated_at", "2016-12-12 17:54:53.574152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:54:53.575656"], ["updated_at", "2016-12-12 17:54:53.575656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.576864"], ["updated_at", "2016-12-12 17:54:53.576864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.577981"], ["updated_at", "2016-12-12 17:54:53.577981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-12 17:54:53.578873"], ["updated_at", "2016-12-12 17:54:53.578873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5017], ["g5_updatable_hub_amenity_id", 2765]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5017], ["g5_updatable_hub_amenity_id", 2766]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:53.585138"], ["updated_at", "2016-12-12 17:54:53.585138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1976) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1976) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:54:53.586423"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1976]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:53.590580"], ["updated_at", "2016-12-12 17:54:53.590580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1977) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1977) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:54:53.591761"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1977]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:53.596560"], ["updated_at", "2016-12-12 17:54:53.596560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1978) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1978) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:54:53.597928"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1978]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:53.602800"], ["updated_at", "2016-12-12 17:54:53.602800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1979) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1979) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:54:53.604024"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 1979]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:54:53.608127"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:54:53.609130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:54:53.611678"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:54:53.612919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:54:53.616303"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:54:53.617347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:54:53.619886"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:54:53.620885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:54:53.623548"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:54:53.624509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:54:53.627197"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:54:53.628187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 17:54:53.630767"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 17:54:53.631786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:54:53.635262"], ["updated_at", "2016-12-12 17:54:53.635262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 1987) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 1987) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:54:53.636972"], ["id", 1987]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 1987]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:54:53.643007"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:54:53.644995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.647109"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.649294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5018]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5018]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5018) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:54:53.656089"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.658162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5019]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5019]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5019) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:54:53.665432"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.667624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5020]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.671629"], ["updated_at", "2016-12-12 17:54:53.671629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.672641"], ["id", 2768]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5020], ["g5_updatable_hub_amenity_id", 2768]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.674972"], ["updated_at", "2016-12-12 17:54:53.674972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.676444"], ["id", 2769]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5020], ["g5_updatable_hub_amenity_id", 2769]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5020]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5020) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.681092"], ["id", 5020]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:54:53.683597"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.685826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5021]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5021], ["g5_updatable_hub_amenity_id", 2768]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5021], ["g5_updatable_hub_amenity_id", 2769]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5021]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5021) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.698396"], ["id", 5021]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:54:53.701127"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.703308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5022]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5022]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5022) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:54:53.722348"], ["updated_at", "2016-12-12 17:54:53.722348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.724368"], ["updated_at", "2016-12-12 17:54:53.724368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.726167"], ["updated_at", "2016-12-12 17:54:53.726167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.728051"], ["updated_at", "2016-12-12 17:54:53.728051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:54:53.734836"], ["updated_at", "2016-12-12 17:54:53.734836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.736892"], ["updated_at", "2016-12-12 17:54:53.736892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.738621"], ["updated_at", "2016-12-12 17:54:53.738621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:53.740326"], ["updated_at", "2016-12-12 17:54:53.740326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.759449"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.763040"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5029]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.770190"], ["updated_at", "2016-12-12 17:54:53.770190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.772138"], ["id", 2770]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5029], ["g5_updatable_hub_amenity_id", 2770]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.775512"], ["updated_at", "2016-12-12 17:54:53.775512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.776570"], ["id", 2771]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5029], ["g5_updatable_hub_amenity_id", 2771]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5029]]  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5029) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.781997"], ["id", 5029]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:54:53.795468"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:54:53.799586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.803189"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.806149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5030]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5030]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5030) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:54:53.814798"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.817141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5031]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5031]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5031) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:54:53.823902"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.826025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5032]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.830049"], ["updated_at", "2016-12-12 17:54:53.830049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.831085"], ["id", 2772]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5032], ["g5_updatable_hub_amenity_id", 2772]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.833287"], ["updated_at", "2016-12-12 17:54:53.833287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.834276"], ["id", 2773]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5032], ["g5_updatable_hub_amenity_id", 2773]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5032]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5032) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.838102"], ["id", 5032]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:54:53.840560"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.842703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5033]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5033], ["g5_updatable_hub_amenity_id", 2772]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5033], ["g5_updatable_hub_amenity_id", 2773]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5033]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5033) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.851273"], ["id", 5033]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:54:53.853843"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.855862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5034]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5034]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5034) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5032]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:54:53.868069"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:54:53.869871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.872059"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.874138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5035]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5035]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5035) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:54:53.880954"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.883044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5036]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5036]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5036) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:54:53.889764"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.892082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5037]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.901345"], ["updated_at", "2016-12-12 17:54:53.901345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.902624"], ["id", 2774]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5037], ["g5_updatable_hub_amenity_id", 2774]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.905033"], ["updated_at", "2016-12-12 17:54:53.905033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.906040"], ["id", 2775]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5037], ["g5_updatable_hub_amenity_id", 2775]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5037]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5037) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.909714"], ["id", 5037]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:54:53.912767"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.915103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5038]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5038], ["g5_updatable_hub_amenity_id", 2774]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5038], ["g5_updatable_hub_amenity_id", 2775]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5038]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5038) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.923505"], ["id", 5038]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:54:53.926307"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.928853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5039]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5039]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5039) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:54:53.944717"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:54:53.946405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:53.948708"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.950882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5040]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5040]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5040) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:54:53.958386"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.960991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5041]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5041]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5041) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:54:53.967625"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.969792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5042]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:53.973539"], ["updated_at", "2016-12-12 17:54:53.973539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:53.974522"], ["id", 2776]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5042], ["g5_updatable_hub_amenity_id", 2776]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:53.976708"], ["updated_at", "2016-12-12 17:54:53.976708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:53.977831"], ["id", 2777]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5042], ["g5_updatable_hub_amenity_id", 2777]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5042]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5042) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.981391"], ["id", 5042]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:54:53.983777"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.985947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5043]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5043], ["g5_updatable_hub_amenity_id", 2776]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5043], ["g5_updatable_hub_amenity_id", 2777]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5043]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5043) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:53.993855"], ["id", 5043]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:54:53.996355"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:53.998497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5044]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5044]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5044) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:54:54.008936"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:54:54.010740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:54.012984"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:54.015129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5045]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5045]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5045) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:54:54.021776"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:54.024062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5046]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5046]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5046) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:54:54.030587"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:54.032984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5047]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:54.036885"], ["updated_at", "2016-12-12 17:54:54.036885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:54.037857"], ["id", 2778]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5047], ["g5_updatable_hub_amenity_id", 2778]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:54.040145"], ["updated_at", "2016-12-12 17:54:54.040145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:54.041076"], ["id", 2779]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5047], ["g5_updatable_hub_amenity_id", 2779]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5047]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5047) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:54.044920"], ["id", 5047]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:54:54.047683"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:54.049857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5048]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5048], ["g5_updatable_hub_amenity_id", 2778]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5048], ["g5_updatable_hub_amenity_id", 2779]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5048]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5048) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:54.063733"], ["id", 5048]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:54:54.066362"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:54.068369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5049]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5049]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5049) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1994) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1994) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:54:54.078774"], ["id", 1994]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5045) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-12 17:54:54.084773"], ["id", 5045]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5045]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5045]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5045) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5049]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5049]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5048]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3100]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3101]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5048]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5047]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3098]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3099]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5047]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5046]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5046]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 17:54:54.104429"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 17:54:54.106340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 17:54:54.108574"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:54.110796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5050]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5050]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5050) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 17:54:54.118018"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:54.121218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5051]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5051]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5051) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 17:54:54.128740"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:54.131258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5052]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 17:54:54.135283"], ["updated_at", "2016-12-12 17:54:54.135283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 17:54:54.136566"], ["id", 2780]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5052], ["g5_updatable_hub_amenity_id", 2780]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 17:54:54.138827"], ["updated_at", "2016-12-12 17:54:54.138827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 17:54:54.139726"], ["id", 2781]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5052], ["g5_updatable_hub_amenity_id", 2781]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5052]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5052) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:54.143448"], ["id", 5052]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 17:54:54.145907"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:54.148074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5053]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5053], ["g5_updatable_hub_amenity_id", 2780]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5053], ["g5_updatable_hub_amenity_id", 2781]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5053]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5053) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 17:54:54.156880"], ["id", 5053]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 17:54:54.159206"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 17:54:54.161248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5054]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5054]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5054) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1995) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 1995) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 17:54:54.170981"], ["id", 1995]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5054]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5054]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5053]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3104]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3105]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5053]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5052]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3102]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3103]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5052]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5051]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5051]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5050]] SQL (0.0ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5050]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.198611"], ["updated_at", "2016-12-12 17:54:54.198611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.200748"], ["updated_at", "2016-12-12 17:54:54.200748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.205178"], ["updated_at", "2016-12-12 17:54:54.205178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.207030"], ["updated_at", "2016-12-12 17:54:54.207030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.210821"], ["updated_at", "2016-12-12 17:54:54.210821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.212575"], ["updated_at", "2016-12-12 17:54:54.212575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.6ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.217865"], ["updated_at", "2016-12-12 17:54:54.217865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.220290"], ["updated_at", "2016-12-12 17:54:54.220290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.223566"], ["updated_at", "2016-12-12 17:54:54.223566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.226166"], ["updated_at", "2016-12-12 17:54:54.226166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 17:54:54.233192"], ["updated_at", "2016-12-12 17:54:54.233192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.272992"], ["updated_at", "2016-12-12 17:54:54.272992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.275303"], ["updated_at", "2016-12-12 17:54:54.275303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.277872"], ["updated_at", "2016-12-12 17:54:54.277872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.280374"], ["updated_at", "2016-12-12 17:54:54.280374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.283233"], ["updated_at", "2016-12-12 17:54:54.283233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.284819"], ["updated_at", "2016-12-12 17:54:54.284819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.288150"], ["updated_at", "2016-12-12 17:54:54.288150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.290846"], ["updated_at", "2016-12-12 17:54:54.290846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.292509"], ["updated_at", "2016-12-12 17:54:54.292509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.296140"], ["updated_at", "2016-12-12 17:54:54.296140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.299083"], ["updated_at", "2016-12-12 17:54:54.299083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.300756"], ["updated_at", "2016-12-12 17:54:54.300756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 17:54:54.303605"], ["updated_at", "2016-12-12 17:54:54.303605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.306522"], ["updated_at", "2016-12-12 17:54:54.306522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.309602"], ["updated_at", "2016-12-12 17:54:54.309602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.311416"], ["updated_at", "2016-12-12 17:54:54.311416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.314230"], ["updated_at", "2016-12-12 17:54:54.314230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.316855"], ["updated_at", "2016-12-12 17:54:54.316855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.318370"], ["updated_at", "2016-12-12 17:54:54.318370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.321154"], ["updated_at", "2016-12-12 17:54:54.321154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.323807"], ["updated_at", "2016-12-12 17:54:54.323807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.325510"], ["updated_at", "2016-12-12 17:54:54.325510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.329602"], ["updated_at", "2016-12-12 17:54:54.329602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.332731"], ["updated_at", "2016-12-12 17:54:54.332731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.334407"], ["updated_at", "2016-12-12 17:54:54.334407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.337702"], ["updated_at", "2016-12-12 17:54:54.337702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.340426"], ["updated_at", "2016-12-12 17:54:54.340426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.341969"], ["updated_at", "2016-12-12 17:54:54.341969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.346055"], ["updated_at", "2016-12-12 17:54:54.346055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.348885"], ["updated_at", "2016-12-12 17:54:54.348885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.350438"], ["updated_at", "2016-12-12 17:54:54.350438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.354136"], ["updated_at", "2016-12-12 17:54:54.354136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.357527"], ["updated_at", "2016-12-12 17:54:54.357527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.359308"], ["updated_at", "2016-12-12 17:54:54.359308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.362961"], ["updated_at", "2016-12-12 17:54:54.362961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.365747"], ["updated_at", "2016-12-12 17:54:54.365747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.367302"], ["updated_at", "2016-12-12 17:54:54.367302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.370597"], ["updated_at", "2016-12-12 17:54:54.370597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.373318"], ["updated_at", "2016-12-12 17:54:54.373318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.374921"], ["updated_at", "2016-12-12 17:54:54.374921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 17:54:54.378429"], ["updated_at", "2016-12-12 17:54:54.378429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 17:54:54.381268"], ["updated_at", "2016-12-12 17:54:54.381268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 17:54:54.382854"], ["updated_at", "2016-12-12 17:54:54.382854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.388925"], ["updated_at", "2016-12-12 17:54:54.388925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5096]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.396140"], ["updated_at", "2016-12-12 17:54:54.396140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-12 17:54:54.397518"], ["updated_at", "2016-12-12 17:54:54.397518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-12 17:54:54.398473"], ["updated_at", "2016-12-12 17:54:54.398473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5097], ["g5_updatable_hub_amenity_id", 2782]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5097], ["g5_updatable_hub_amenity_id", 2783]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5097]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5097) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-17|amenity-18|"], ["updated_at", "2016-12-12 17:54:54.403012"], ["id", 5097]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5097]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5097]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.407098"], ["updated_at", "2016-12-12 17:54:54.407098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-12 17:54:54.408518"], ["updated_at", "2016-12-12 17:54:54.408518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-12 17:54:54.409440"], ["updated_at", "2016-12-12 17:54:54.409440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5098], ["g5_updatable_hub_amenity_id", 2784]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5098], ["g5_updatable_hub_amenity_id", 2785]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5098]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5098) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-19|amenity-20|"], ["updated_at", "2016-12-12 17:54:54.414697"], ["id", 5098]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5098]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5098]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5098]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5098]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5098]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:54:54.419925"], ["updated_at", "2016-12-12 17:54:54.419925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.421731"], ["updated_at", "2016-12-12 17:54:54.421731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 17:54:54.425024"], ["updated_at", "2016-12-12 17:54:54.425024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 17:54:54.426726"], ["updated_at", "2016-12-12 17:54:54.426726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (6.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (6.8ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.001298"], ["updated_at", "2016-12-12 18:59:28.001298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.4ms) Completed 200 OK in 10ms (Views: 4.1ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.020989"], ["updated_at", "2016-12-12 18:59:28.020989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.028569"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.031710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5103]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.051534"], ["updated_at", "2016-12-12 18:59:28.051534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.053922"], ["id", 2786]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5103], ["g5_updatable_hub_amenity_id", 2786]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.061321"], ["updated_at", "2016-12-12 18:59:28.061321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.062330"], ["id", 2787]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5103], ["g5_updatable_hub_amenity_id", 2787]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5103]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5103) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.067775"], ["id", 5103]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.075344"], ["updated_at", "2016-12-12 18:59:28.075344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-12 18:59:28.077123"], ["updated_at", "2016-12-12 18:59:28.077123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5104], ["g5_updatable_hub_amenity_id", 2788]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5104) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.079794"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5104]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5104]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.087976"], ["id", 2788]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5104], ["g5_updatable_hub_amenity_id", 2788]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.090728"], ["updated_at", "2016-12-12 18:59:28.090728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.091998"], ["id", 2789]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5104], ["g5_updatable_hub_amenity_id", 2789]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5104]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5104) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.096629"], ["id", 5104]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.104191"], ["updated_at", "2016-12-12 18:59:28.104191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-12 18:59:28.106138"], ["updated_at", "2016-12-12 18:59:28.106138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5105], ["g5_updatable_hub_amenity_id", 2790]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5105) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.109250"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5105]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5105]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.116760"], ["updated_at", "2016-12-12 18:59:28.116760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.117838"], ["id", 2791]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5105], ["g5_updatable_hub_amenity_id", 2791]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.120738"], ["updated_at", "2016-12-12 18:59:28.120738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.121816"], ["id", 2792]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5105], ["g5_updatable_hub_amenity_id", 2792]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5105]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5105) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.126026"], ["id", 5105]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.131078"], ["updated_at", "2016-12-12 18:59:28.131078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-12 18:59:28.133075"], ["updated_at", "2016-12-12 18:59:28.133075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5106], ["g5_updatable_hub_amenity_id", 2793]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5106) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.135884"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5106]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5106]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.144345"], ["updated_at", "2016-12-12 18:59:28.144345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.145388"], ["id", 2794]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5106], ["g5_updatable_hub_amenity_id", 2794]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.147664"], ["updated_at", "2016-12-12 18:59:28.147664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.149164"], ["id", 2795]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5106], ["g5_updatable_hub_amenity_id", 2795]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5106]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5106) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.154070"], ["id", 5106]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5106]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.160895"], ["updated_at", "2016-12-12 18:59:28.160895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-12 18:59:28.162613"], ["updated_at", "2016-12-12 18:59:28.162613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5107], ["g5_updatable_hub_amenity_id", 2796]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5107) LIMIT 1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.165584"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5107]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5107]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.173277"], ["updated_at", "2016-12-12 18:59:28.173277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.174354"], ["id", 2797]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5107], ["g5_updatable_hub_amenity_id", 2797]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.176750"], ["updated_at", "2016-12-12 18:59:28.176750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.177722"], ["id", 2798]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5107], ["g5_updatable_hub_amenity_id", 2798]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5107]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5107) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.181905"], ["id", 5107]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.206043"], ["updated_at", "2016-12-12 18:59:28.206043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-12 18:59:28.207782"], ["updated_at", "2016-12-12 18:59:28.207782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5108], ["g5_updatable_hub_amenity_id", 2799]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5108) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.210530"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5108]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5108]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.218379"], ["updated_at", "2016-12-12 18:59:28.218379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.219686"], ["id", 2800]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5108], ["g5_updatable_hub_amenity_id", 2800]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.222652"], ["updated_at", "2016-12-12 18:59:28.222652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.232642"], ["id", 2801]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5108], ["g5_updatable_hub_amenity_id", 2801]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5108]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5108) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.239495"], ["id", 5108]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.245107"], ["updated_at", "2016-12-12 18:59:28.245107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-12 18:59:28.246662"], ["updated_at", "2016-12-12 18:59:28.246662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5109], ["g5_updatable_hub_amenity_id", 2802]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5109) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.250092"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5109]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5109]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.257461"], ["updated_at", "2016-12-12 18:59:28.257461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.258435"], ["id", 2803]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5109], ["g5_updatable_hub_amenity_id", 2803]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.260940"], ["updated_at", "2016-12-12 18:59:28.260940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.262039"], ["id", 2804]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5109], ["g5_updatable_hub_amenity_id", 2804]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5109]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5109) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.266059"], ["id", 5109]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (1.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:28.276311"], ["updated_at", "2016-12-12 18:59:28.276311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.278744"], ["updated_at", "2016-12-12 18:59:28.278744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2011]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5110]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.284126"], ["updated_at", "2016-12-12 18:59:28.284126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-12 18:59:28.286130"], ["updated_at", "2016-12-12 18:59:28.286130"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5111], ["g5_updatable_hub_amenity_id", 2805]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5111) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.290708"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5111]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5111]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.298508"], ["updated_at", "2016-12-12 18:59:28.298508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.299517"], ["id", 2806]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5111], ["g5_updatable_hub_amenity_id", 2806]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.301979"], ["id", 2805]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5111], ["g5_updatable_hub_amenity_id", 2805]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5111]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5111) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.306220"], ["id", 5111]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.312136"], ["updated_at", "2016-12-12 18:59:28.312136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-12 18:59:28.313671"], ["updated_at", "2016-12-12 18:59:28.313671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5112], ["g5_updatable_hub_amenity_id", 2807]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5112) LIMIT 1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.316224"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5112]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5112]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.323186"], ["updated_at", "2016-12-12 18:59:28.323186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.324244"], ["id", 2808]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5112], ["g5_updatable_hub_amenity_id", 2808]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.326688"], ["updated_at", "2016-12-12 18:59:28.326688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.327958"], ["id", 2809]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5112], ["g5_updatable_hub_amenity_id", 2809]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5112]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5112) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.332261"], ["id", 5112]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.337956"], ["updated_at", "2016-12-12 18:59:28.337956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-12 18:59:28.339547"], ["updated_at", "2016-12-12 18:59:28.339547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5113], ["g5_updatable_hub_amenity_id", 2810]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5113) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.341982"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5113]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5113]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.348342"], ["updated_at", "2016-12-12 18:59:28.348342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.349268"], ["id", 2811]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5113], ["g5_updatable_hub_amenity_id", 2811]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.352124"], ["updated_at", "2016-12-12 18:59:28.352124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.353811"], ["id", 2812]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5113], ["g5_updatable_hub_amenity_id", 2812]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5113]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5113) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.359236"], ["id", 5113]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.365181"], ["updated_at", "2016-12-12 18:59:28.365181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-12 18:59:28.366733"], ["updated_at", "2016-12-12 18:59:28.366733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5114], ["g5_updatable_hub_amenity_id", 2813]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5114) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.369493"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5114]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5114]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.376370"], ["updated_at", "2016-12-12 18:59:28.376370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.377334"], ["id", 2814]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5114], ["g5_updatable_hub_amenity_id", 2814]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.379408"], ["updated_at", "2016-12-12 18:59:28.379408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.380345"], ["id", 2815]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5114], ["g5_updatable_hub_amenity_id", 2815]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5114]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5114) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.384460"], ["id", 5114]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-12 18:59:28.387971"], ["updated_at", "2016-12-12 18:59:28.387971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.389754"], ["updated_at", "2016-12-12 18:59:28.389754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2012]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5115]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 17:59:28.392090"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 18:59:28.394565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5116) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.401275"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5116]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5116]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.407986"], ["updated_at", "2016-12-12 18:59:28.407986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.408937"], ["id", 2816]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5116], ["g5_updatable_hub_amenity_id", 2816]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.411075"], ["updated_at", "2016-12-12 18:59:28.411075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.412014"], ["id", 2817]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5116], ["g5_updatable_hub_amenity_id", 2817]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5116]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5116) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.415781"], ["id", 5116]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5116]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 17:59:28.420433"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 18:59:28.423283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5117) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.430211"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5117]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5117]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.438640"], ["updated_at", "2016-12-12 18:59:28.438640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.439751"], ["id", 2818]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5117], ["g5_updatable_hub_amenity_id", 2818]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.442079"], ["updated_at", "2016-12-12 18:59:28.442079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.442977"], ["id", 2819]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5117], ["g5_updatable_hub_amenity_id", 2819]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5117]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5117) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.446648"], ["id", 5117]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-12 18:59:28.449835"], ["updated_at", "2016-12-12 18:59:28.449835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.457608"], ["updated_at", "2016-12-12 18:59:28.457608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2013]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5118]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.460884"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.463237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5119]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.467555"], ["updated_at", "2016-12-12 18:59:28.467555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.468600"], ["id", 2820]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5119], ["g5_updatable_hub_amenity_id", 2820]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.471240"], ["updated_at", "2016-12-12 18:59:28.471240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.472173"], ["id", 2821]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5119], ["g5_updatable_hub_amenity_id", 2821]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5119]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5119) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.475929"], ["id", 5119]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (8.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.480762"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.483380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5120]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.496659"], ["updated_at", "2016-12-12 18:59:28.496659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.497918"], ["id", 2822]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5120], ["g5_updatable_hub_amenity_id", 2822]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.500220"], ["updated_at", "2016-12-12 18:59:28.500220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.501237"], ["id", 2823]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5120], ["g5_updatable_hub_amenity_id", 2823]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5120]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5120) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.505783"], ["id", 5120]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.510813"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.513763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5121]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.518120"], ["updated_at", "2016-12-12 18:59:28.518120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.519260"], ["id", 2824]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5121], ["g5_updatable_hub_amenity_id", 2824]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.521774"], ["updated_at", "2016-12-12 18:59:28.521774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.522751"], ["id", 2825]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5121], ["g5_updatable_hub_amenity_id", 2825]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5121]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5121) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.526708"], ["id", 5121]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5121]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5121]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.533272"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.535819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5122]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.540783"], ["updated_at", "2016-12-12 18:59:28.540783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.541737"], ["id", 2826]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5122], ["g5_updatable_hub_amenity_id", 2826]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.544134"], ["updated_at", "2016-12-12 18:59:28.544134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.545054"], ["id", 2827]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5122], ["g5_updatable_hub_amenity_id", 2827]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5122]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5122) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.548892"], ["id", 5122]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.555499"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.557896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5123]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.562178"], ["updated_at", "2016-12-12 18:59:28.562178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.563181"], ["id", 2828]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5123], ["g5_updatable_hub_amenity_id", 2828]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.565657"], ["updated_at", "2016-12-12 18:59:28.565657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.566582"], ["id", 2829]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5123], ["g5_updatable_hub_amenity_id", 2829]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5123]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5123) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.570754"], ["id", 5123]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.576431"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.579396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5124]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.585765"], ["updated_at", "2016-12-12 18:59:28.585765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.587236"], ["id", 2830]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5124], ["g5_updatable_hub_amenity_id", 2830]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.590053"], ["updated_at", "2016-12-12 18:59:28.590053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.591068"], ["id", 2831]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5124], ["g5_updatable_hub_amenity_id", 2831]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5124]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5124) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.595510"], ["id", 5124]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 18:59:28.599858"], ["updated_at", "2016-12-12 18:59:28.599858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.601736"], ["updated_at", "2016-12-12 18:59:28.601736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2014]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5125]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.605515"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.608174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5126]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.612938"], ["updated_at", "2016-12-12 18:59:28.612938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.614046"], ["id", 2832]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5126], ["g5_updatable_hub_amenity_id", 2832]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.616663"], ["updated_at", "2016-12-12 18:59:28.616663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.617716"], ["id", 2833]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5126], ["g5_updatable_hub_amenity_id", 2833]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5126]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5126) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.622255"], ["id", 5126]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.627996"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.630554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5127]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.635930"], ["updated_at", "2016-12-12 18:59:28.635930"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.637562"], ["id", 2834]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5127], ["g5_updatable_hub_amenity_id", 2834]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.640446"], ["updated_at", "2016-12-12 18:59:28.640446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.641578"], ["id", 2835]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5127], ["g5_updatable_hub_amenity_id", 2835]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5127]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5127) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.645951"], ["id", 5127]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.651888"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.654764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5128]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.659721"], ["updated_at", "2016-12-12 18:59:28.659721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.660806"], ["id", 2836]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5128], ["g5_updatable_hub_amenity_id", 2836]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.663266"], ["updated_at", "2016-12-12 18:59:28.663266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.664539"], ["id", 2837]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5128], ["g5_updatable_hub_amenity_id", 2837]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5128]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5128) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.669139"], ["id", 5128]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.675008"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.677816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5129]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.682882"], ["updated_at", "2016-12-12 18:59:28.682882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.683943"], ["id", 2838]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5129], ["g5_updatable_hub_amenity_id", 2838]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.686882"], ["updated_at", "2016-12-12 18:59:28.686882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.688111"], ["id", 2839]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5129], ["g5_updatable_hub_amenity_id", 2839]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5129]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5129) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.692762"], ["id", 5129]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.711707"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.713901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5130]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.717686"], ["updated_at", "2016-12-12 18:59:28.717686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.718663"], ["id", 2840]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5130], ["g5_updatable_hub_amenity_id", 2840]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.720981"], ["updated_at", "2016-12-12 18:59:28.720981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.721872"], ["id", 2841]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5130], ["g5_updatable_hub_amenity_id", 2841]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5130]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5130) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.725521"], ["id", 5130]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.730228"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.732680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5131]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.737359"], ["updated_at", "2016-12-12 18:59:28.737359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.738605"], ["id", 2842]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5131], ["g5_updatable_hub_amenity_id", 2842]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.740901"], ["updated_at", "2016-12-12 18:59:28.740901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.741797"], ["id", 2843]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5131], ["g5_updatable_hub_amenity_id", 2843]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5131]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5131) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.745861"], ["id", 5131]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.752758"], ["updated_at", "2016-12-12 18:59:28.752758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-12 18:59:28.758075"], ["updated_at", "2016-12-12 18:59:28.758075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.761411"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.763423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5134]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.767658"], ["updated_at", "2016-12-12 18:59:28.767658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.768908"], ["id", 2844]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5134], ["g5_updatable_hub_amenity_id", 2844]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.771391"], ["updated_at", "2016-12-12 18:59:28.771391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.772285"], ["id", 2845]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5134], ["g5_updatable_hub_amenity_id", 2845]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5134]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5134) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.775863"], ["id", 5134]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5132]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5132]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.783517"], ["updated_at", "2016-12-12 18:59:28.783517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.785257"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.787737"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5136]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.791795"], ["updated_at", "2016-12-12 18:59:28.791795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.792749"], ["id", 2846]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5136], ["g5_updatable_hub_amenity_id", 2846]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.794912"], ["updated_at", "2016-12-12 18:59:28.794912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.795822"], ["id", 2847]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5136], ["g5_updatable_hub_amenity_id", 2847]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5136]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5136) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.799516"], ["id", 5136]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5135]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5135]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.805976"], ["updated_at", "2016-12-12 18:59:28.805976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5137) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.808539"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5137]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5137]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.814890"], ["updated_at", "2016-12-12 18:59:28.814890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.816050"], ["id", 2848]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5137], ["g5_updatable_hub_amenity_id", 2848]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.818465"], ["updated_at", "2016-12-12 18:59:28.818465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.819419"], ["id", 2849]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5137], ["g5_updatable_hub_amenity_id", 2849]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5137]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5137) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.823151"], ["id", 5137]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.826868"], ["updated_at", "2016-12-12 18:59:28.826868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5138) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.828518"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5138]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5138]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.835275"], ["updated_at", "2016-12-12 18:59:28.835275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.836492"], ["id", 2850]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5138], ["g5_updatable_hub_amenity_id", 2850]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.839194"], ["updated_at", "2016-12-12 18:59:28.839194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.840343"], ["id", 2851]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5138], ["g5_updatable_hub_amenity_id", 2851]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5138]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5138) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.844248"], ["id", 5138]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.848082"], ["updated_at", "2016-12-12 18:59:28.848082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5139) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.850917"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5139]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5139]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5139]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5139) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 18:59:28.860656"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.862736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5140]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5140]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5140) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 18:59:28.869725"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.872408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5141]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.876524"], ["updated_at", "2016-12-12 18:59:28.876524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.877510"], ["id", 2852]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5141], ["g5_updatable_hub_amenity_id", 2852]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.879721"], ["updated_at", "2016-12-12 18:59:28.879721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.880762"], ["id", 2853]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5141], ["g5_updatable_hub_amenity_id", 2853]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5141]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5141) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.886072"], ["id", 5141]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 18:59:28.890237"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.892869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5142]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5142], ["g5_updatable_hub_amenity_id", 2852]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5142], ["g5_updatable_hub_amenity_id", 2853]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5142]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5142) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.906191"], ["id", 5142]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 18:59:28.908575"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.910725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5143]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5143]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5143) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:28.918947"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:28.921242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5144]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:28.924998"], ["updated_at", "2016-12-12 18:59:28.924998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:28.925920"], ["id", 2854]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5144], ["g5_updatable_hub_amenity_id", 2854]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:28.928103"], ["updated_at", "2016-12-12 18:59:28.928103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:28.928986"], ["id", 2855]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5144], ["g5_updatable_hub_amenity_id", 2855]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5144]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5144) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:28.932917"], ["id", 5144]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 18:59:28.971542"], ["updated_at", "2016-12-12 18:59:28.971542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.974097"], ["updated_at", "2016-12-12 18:59:28.974097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.975749"], ["updated_at", "2016-12-12 18:59:28.975749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.977375"], ["updated_at", "2016-12-12 18:59:28.977375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 18:59:28.984947"], ["updated_at", "2016-12-12 18:59:28.984947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.987109"], ["updated_at", "2016-12-12 18:59:28.987109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.989304"], ["updated_at", "2016-12-12 18:59:28.989304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:28.990960"], ["updated_at", "2016-12-12 18:59:28.990960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.002855"], ["updated_at", "2016-12-12 18:59:29.002855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5151]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.006099"], ["updated_at", "2016-12-12 18:59:29.006099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.008001"], ["updated_at", "2016-12-12 18:59:29.008001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.011807"], ["updated_at", "2016-12-12 18:59:29.011807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.013483"], ["updated_at", "2016-12-12 18:59:29.013483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.016341"], ["updated_at", "2016-12-12 18:59:29.016341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.018233"], ["updated_at", "2016-12-12 18:59:29.018233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.021805"], ["updated_at", "2016-12-12 18:59:29.021805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.023530"], ["updated_at", "2016-12-12 18:59:29.023530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.027131"], ["updated_at", "2016-12-12 18:59:29.027131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.028806"], ["updated_at", "2016-12-12 18:59:29.028806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.039349"], ["updated_at", "2016-12-12 18:59:29.039349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.042716"], ["updated_at", "2016-12-12 18:59:29.042716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.044295"], ["updated_at", "2016-12-12 18:59:29.044295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.047669"], ["updated_at", "2016-12-12 18:59:29.047669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.050478"], ["updated_at", "2016-12-12 18:59:29.050478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.052225"], ["updated_at", "2016-12-12 18:59:29.052225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.056291"], ["updated_at", "2016-12-12 18:59:29.056291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.059093"], ["updated_at", "2016-12-12 18:59:29.059093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.060614"], ["updated_at", "2016-12-12 18:59:29.060614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.063767"], ["updated_at", "2016-12-12 18:59:29.063767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.066629"], ["updated_at", "2016-12-12 18:59:29.066629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.068197"], ["updated_at", "2016-12-12 18:59:29.068197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.071629"], ["updated_at", "2016-12-12 18:59:29.071629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.074295"], ["updated_at", "2016-12-12 18:59:29.074295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.075805"], ["updated_at", "2016-12-12 18:59:29.075805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.078816"], ["updated_at", "2016-12-12 18:59:29.078816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.081758"], ["updated_at", "2016-12-12 18:59:29.081758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.083530"], ["updated_at", "2016-12-12 18:59:29.083530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.087451"], ["updated_at", "2016-12-12 18:59:29.087451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.090624"], ["updated_at", "2016-12-12 18:59:29.090624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.092276"], ["updated_at", "2016-12-12 18:59:29.092276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.095036"], ["updated_at", "2016-12-12 18:59:29.095036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.097766"], ["updated_at", "2016-12-12 18:59:29.097766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.099387"], ["updated_at", "2016-12-12 18:59:29.099387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.102229"], ["updated_at", "2016-12-12 18:59:29.102229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.105314"], ["updated_at", "2016-12-12 18:59:29.105314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.106860"], ["updated_at", "2016-12-12 18:59:29.106860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 18:59:29.109460"], ["updated_at", "2016-12-12 18:59:29.109460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.111848"], ["updated_at", "2016-12-12 18:59:29.111848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.114638"], ["updated_at", "2016-12-12 18:59:29.114638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.116255"], ["updated_at", "2016-12-12 18:59:29.116255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.120236"], ["updated_at", "2016-12-12 18:59:29.120236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.123082"], ["updated_at", "2016-12-12 18:59:29.123082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.124617"], ["updated_at", "2016-12-12 18:59:29.124617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.127936"], ["updated_at", "2016-12-12 18:59:29.127936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.130673"], ["updated_at", "2016-12-12 18:59:29.130673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.132469"], ["updated_at", "2016-12-12 18:59:29.132469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 18:59:29.136275"], ["updated_at", "2016-12-12 18:59:29.136275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.139843"], ["updated_at", "2016-12-12 18:59:29.139843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 18:59:29.143785"], ["updated_at", "2016-12-12 18:59:29.143785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.147985"], ["updated_at", "2016-12-12 18:59:29.147985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-12 18:59:29.149390"], ["updated_at", "2016-12-12 18:59:29.149390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-12 18:59:29.150290"], ["updated_at", "2016-12-12 18:59:29.150290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5189], ["g5_updatable_hub_amenity_id", 2856]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5189], ["g5_updatable_hub_amenity_id", 2857]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5189]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5189) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-11|amenity-12|"], ["updated_at", "2016-12-12 18:59:29.155955"], ["id", 5189]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5189]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5189]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5189]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5189]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5189]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.161524"], ["updated_at", "2016-12-12 18:59:29.161524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-12 18:59:29.162730"], ["updated_at", "2016-12-12 18:59:29.162730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-12 18:59:29.163580"], ["updated_at", "2016-12-12 18:59:29.163580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5190], ["g5_updatable_hub_amenity_id", 2858]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5190], ["g5_updatable_hub_amenity_id", 2859]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5190]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5190) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-13|amenity-14|"], ["updated_at", "2016-12-12 18:59:29.167945"], ["id", 5190]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5190]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5190]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.172032"], ["updated_at", "2016-12-12 18:59:29.172032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.174543"], ["updated_at", "2016-12-12 18:59:29.174543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.176868"], ["updated_at", "2016-12-12 18:59:29.176868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 18:59:29.179596"], ["updated_at", "2016-12-12 18:59:29.179596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.181584"], ["updated_at", "2016-12-12 18:59:29.181584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-12 18:59:29.186115"], ["updated_at", "2016-12-12 18:59:29.186115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.188741"], ["updated_at", "2016-12-12 18:59:29.188741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 18:59:29.213815"], ["updated_at", "2016-12-12 18:59:29.213815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"client_uid"=>"http://my-client.com/clients/urn"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 18:59:29.264038"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 18:59:29.266419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:29.268851"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.270934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5197]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5197]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5197) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 18:59:29.285034"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.287743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5198]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5198]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5198) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 18:59:29.294855"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.297078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5199]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:29.301019"], ["updated_at", "2016-12-12 18:59:29.301019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:29.302058"], ["id", 2860]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5199], ["g5_updatable_hub_amenity_id", 2860]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:29.304511"], ["updated_at", "2016-12-12 18:59:29.304511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:29.305400"], ["id", 2861]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5199], ["g5_updatable_hub_amenity_id", 2861]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5199]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5199) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.309091"], ["id", 5199]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 18:59:29.311644"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.313742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5200]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5200], ["g5_updatable_hub_amenity_id", 2860]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5200], ["g5_updatable_hub_amenity_id", 2861]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5200]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5200) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.322400"], ["id", 5200]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 18:59:29.324782"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.326769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5201]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5201]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5201) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.341613"], ["updated_at", "2016-12-12 18:59:29.341613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2033) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2033) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 18:59:29.342949"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2033]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.347480"], ["updated_at", "2016-12-12 18:59:29.347480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2034) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2034) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 18:59:29.348785"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2034]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.354003"], ["updated_at", "2016-12-12 18:59:29.354003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2035) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2035) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 18:59:29.355209"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2035]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.360770"], ["updated_at", "2016-12-12 18:59:29.360770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2036) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2036) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 18:59:29.362138"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2036]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 18:59:29.367084"], ["updated_at", "2016-12-12 18:59:29.367084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2037) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2037) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 18:59:29.368714"], ["id", 2037]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2037]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 18:59:29.372893"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 18:59:29.373887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 18:59:29.376440"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 18:59:29.377518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 18:59:29.379964"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 18:59:29.381043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 18:59:29.383325"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 18:59:29.384356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 18:59:29.388534"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 18:59:29.389719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 18:59:29.392523"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 18:59:29.393532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 18:59:29.396111"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 18:59:29.397201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 18:59:29.402343"], ["updated_at", "2016-12-12 18:59:29.402343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 18:59:29.420016"], ["updated_at", "2016-12-12 18:59:29.420016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 18:59:29.421957"], ["updated_at", "2016-12-12 18:59:29.421957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 18:59:29.425503"], ["updated_at", "2016-12-12 18:59:29.425503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2047]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.447333"], ["updated_at", "2016-12-12 18:59:29.447333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 18:59:29.449125"], ["updated_at", "2016-12-12 18:59:29.449125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-12 18:59:29.450346"], ["updated_at", "2016-12-12 18:59:29.450346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-12 18:59:29.451270"], ["updated_at", "2016-12-12 18:59:29.451270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-12 18:59:29.452341"], ["updated_at", "2016-12-12 18:59:29.452341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5203], ["g5_updatable_hub_amenity_id", 2862]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5203], ["g5_updatable_hub_amenity_id", 2863]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 18:59:29.461376"], ["updated_at", "2016-12-12 18:59:29.461376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 18:59:29.463051"], ["updated_at", "2016-12-12 18:59:29.463051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-12 18:59:29.464328"], ["updated_at", "2016-12-12 18:59:29.464328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-12 18:59:29.465511"], ["updated_at", "2016-12-12 18:59:29.465511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-12 18:59:29.466552"], ["updated_at", "2016-12-12 18:59:29.466552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5204], ["g5_updatable_hub_amenity_id", 2865]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5204], ["g5_updatable_hub_amenity_id", 2866]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.7ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:29.476434"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.483415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5205]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:29.488196"], ["updated_at", "2016-12-12 18:59:29.488196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:29.489448"], ["id", 2868]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5205], ["g5_updatable_hub_amenity_id", 2868]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:29.491968"], ["updated_at", "2016-12-12 18:59:29.491968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:29.492907"], ["id", 2869]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5205], ["g5_updatable_hub_amenity_id", 2869]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5205]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5205) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.496717"], ["id", 5205]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 18:59:29.505341"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 18:59:29.507222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:29.509536"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.511690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5206]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5206]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5206) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 18:59:29.518152"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.520064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5207]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5207]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5207) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 18:59:29.526149"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.528067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5208]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:29.531878"], ["updated_at", "2016-12-12 18:59:29.531878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:29.532910"], ["id", 2870]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5208], ["g5_updatable_hub_amenity_id", 2870]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:29.535329"], ["updated_at", "2016-12-12 18:59:29.535329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:29.536396"], ["id", 2871]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5208], ["g5_updatable_hub_amenity_id", 2871]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5208]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5208) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.540870"], ["id", 5208]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 18:59:29.543272"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.545415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5209]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5209], ["g5_updatable_hub_amenity_id", 2870]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5209], ["g5_updatable_hub_amenity_id", 2871]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5209]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5209) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.553248"], ["id", 5209]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 18:59:29.555544"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.557537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5210]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5210]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5210) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 18:59:29.568013"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 18:59:29.569714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:29.571902"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.573946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5211]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5211]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5211) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 18:59:29.580756"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.583030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5212]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5212]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5212) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 18:59:29.590694"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.592911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5213]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:29.596738"], ["updated_at", "2016-12-12 18:59:29.596738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:29.597673"], ["id", 2872]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5213], ["g5_updatable_hub_amenity_id", 2872]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:29.599942"], ["updated_at", "2016-12-12 18:59:29.599942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:29.600868"], ["id", 2873]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5213], ["g5_updatable_hub_amenity_id", 2873]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5213]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5213) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.604978"], ["id", 5213]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 18:59:29.607460"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.609676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5214]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5214], ["g5_updatable_hub_amenity_id", 2872]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5214], ["g5_updatable_hub_amenity_id", 2873]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5214]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5214) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.617935"], ["id", 5214]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 18:59:29.620979"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.623165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5215]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5215]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5215) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5213]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 18:59:29.635986"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 18:59:29.638137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:29.644346"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.646628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5216]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5216]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5216) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 18:59:29.653238"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.655538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5217]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5217]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5217) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 18:59:29.662103"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.664214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5218]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:29.667966"], ["updated_at", "2016-12-12 18:59:29.667966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:29.669006"], ["id", 2874]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5218], ["g5_updatable_hub_amenity_id", 2874]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:29.671509"], ["updated_at", "2016-12-12 18:59:29.671509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:29.672506"], ["id", 2875]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5218], ["g5_updatable_hub_amenity_id", 2875]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5218]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5218) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.676164"], ["id", 5218]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 18:59:29.678507"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.680554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5219]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5219], ["g5_updatable_hub_amenity_id", 2874]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5219], ["g5_updatable_hub_amenity_id", 2875]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5219]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5219) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.689342"], ["id", 5219]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 18:59:29.691809"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.693908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5220]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5220]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5220) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 18:59:29.708313"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 18:59:29.710185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:29.712328"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.714320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5221]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5221]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5221) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 18:59:29.720739"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.723022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5222]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5222]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5222) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 18:59:29.729695"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.732048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5223]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:29.735932"], ["updated_at", "2016-12-12 18:59:29.735932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:29.737377"], ["id", 2876]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5223], ["g5_updatable_hub_amenity_id", 2876]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:29.740005"], ["updated_at", "2016-12-12 18:59:29.740005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:29.740892"], ["id", 2877]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5223], ["g5_updatable_hub_amenity_id", 2877]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5223]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5223) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.744481"], ["id", 5223]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 18:59:29.746828"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.748814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5224]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5224], ["g5_updatable_hub_amenity_id", 2876]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5224], ["g5_updatable_hub_amenity_id", 2877]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5224]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5224) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.756898"], ["id", 5224]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 18:59:29.759399"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.761418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5225]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5225]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5225) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2053) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2053) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 18:59:29.779880"], ["id", 2053]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.3ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5225]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5225]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5224]] SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3212]] SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3213]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5224]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5223]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3210]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3211]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5223]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5222]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5222]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5221]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5221]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 18:59:29.799320"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 18:59:29.801406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 18:59:29.803977"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.806679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5226]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5226]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5226) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 18:59:29.839266"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.841547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5227]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5227]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5227) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 18:59:29.847914"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.849902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5228]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 18:59:29.853736"], ["updated_at", "2016-12-12 18:59:29.853736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 18:59:29.854721"], ["id", 2878]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5228], ["g5_updatable_hub_amenity_id", 2878]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 18:59:29.856889"], ["updated_at", "2016-12-12 18:59:29.856889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 18:59:29.857802"], ["id", 2879]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5228], ["g5_updatable_hub_amenity_id", 2879]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5228]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5228) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.861640"], ["id", 5228]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 18:59:29.864055"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.866713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5229]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5229], ["g5_updatable_hub_amenity_id", 2878]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5229], ["g5_updatable_hub_amenity_id", 2879]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5229]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5229) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 18:59:29.875091"], ["id", 5229]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 18:59:29.877508"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 18:59:29.879487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5230]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5230]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5230) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2054) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2054) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 18:59:29.892933"], ["id", 2054]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5226) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-12 18:59:29.899449"], ["id", 5226]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5226]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5226]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5226) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5230]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5230]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5229]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3216]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3217]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5229]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5228]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3214]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3215]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5228]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5227]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5227]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.7ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-12 19:00:01.423548"], ["updated_at", "2016-12-12 19:00:01.423548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2055]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 19:00:01.437564"], ["updated_at", "2016-12-12 19:00:01.437564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:00:01.458354"], ["updated_at", "2016-12-12 19:00:01.458354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.9ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:01.466511"], ["updated_at", "2016-12-12 19:00:01.466511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:00:01.487845"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:00:01.489059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:00:01.492442"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:00:01.493558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:00:01.496605"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:00:01.497695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:00:01.500619"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:00:01.501815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:00:01.505258"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:00:01.506417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:00:01.509589"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:00:01.510819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:00:01.513628"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:00:01.514606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:00:01.518158"], ["updated_at", "2016-12-12 19:00:01.518158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2065) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2065) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 19:00:01.519836"], ["id", 2065]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2065]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:00:01.527129"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:00:01.529197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.531614"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.534631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5232]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5232]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5232) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:00:01.547563"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.549729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5233]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5233]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5233) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:00:01.556916"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.559093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5234]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.565749"], ["updated_at", "2016-12-12 19:00:01.565749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.567876"], ["id", 2880]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5234], ["g5_updatable_hub_amenity_id", 2880]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.572060"], ["updated_at", "2016-12-12 19:00:01.572060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.573193"], ["id", 2881]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5234], ["g5_updatable_hub_amenity_id", 2881]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5234]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5234) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.577280"], ["id", 5234]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:00:01.580038"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.582262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5235]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5235], ["g5_updatable_hub_amenity_id", 2880]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5235], ["g5_updatable_hub_amenity_id", 2881]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5235]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5235) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.591322"], ["id", 5235]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:00:01.593971"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.596155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5236]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5236]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5236) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:01.611487"], ["updated_at", "2016-12-12 19:00:01.611487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2067) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2067) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:00:01.612754"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2067]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:01.624125"], ["updated_at", "2016-12-12 19:00:01.624125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2068) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2068) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:00:01.625604"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2068]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:01.630140"], ["updated_at", "2016-12-12 19:00:01.630140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2069) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2069) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:00:01.631365"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2069]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:01.636059"], ["updated_at", "2016-12-12 19:00:01.636059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2070) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2070) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:00:01.637232"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2070]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.654755"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.658190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5237]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.663999"], ["updated_at", "2016-12-12 19:00:01.663999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.665281"], ["id", 2882]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5237], ["g5_updatable_hub_amenity_id", 2882]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.668234"], ["updated_at", "2016-12-12 19:00:01.668234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.669365"], ["id", 2883]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5237], ["g5_updatable_hub_amenity_id", 2883]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5237]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5237) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.673865"], ["id", 5237]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.680864"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.683249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5238]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.687735"], ["updated_at", "2016-12-12 19:00:01.687735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.688913"], ["id", 2884]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5238], ["g5_updatable_hub_amenity_id", 2884]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.692029"], ["updated_at", "2016-12-12 19:00:01.692029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.693299"], ["id", 2885]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5238], ["g5_updatable_hub_amenity_id", 2885]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5238]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5238) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.698108"], ["id", 5238]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.702811"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.705145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5239]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.709538"], ["updated_at", "2016-12-12 19:00:01.709538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.710679"], ["id", 2886]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5239], ["g5_updatable_hub_amenity_id", 2886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.713161"], ["updated_at", "2016-12-12 19:00:01.713161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.714244"], ["id", 2887]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5239], ["g5_updatable_hub_amenity_id", 2887]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5239]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5239) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.718483"], ["id", 5239]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5239]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5239]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.725325"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.727789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5240]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.732200"], ["updated_at", "2016-12-12 19:00:01.732200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.733326"], ["id", 2888]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5240], ["g5_updatable_hub_amenity_id", 2888]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.736226"], ["updated_at", "2016-12-12 19:00:01.736226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.737418"], ["id", 2889]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5240], ["g5_updatable_hub_amenity_id", 2889]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5240]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5240) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.742060"], ["id", 5240]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.749203"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.751588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5241]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.755798"], ["updated_at", "2016-12-12 19:00:01.755798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.757052"], ["id", 2890]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5241], ["g5_updatable_hub_amenity_id", 2890]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.759908"], ["updated_at", "2016-12-12 19:00:01.759908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.761055"], ["id", 2891]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5241], ["g5_updatable_hub_amenity_id", 2891]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5241]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5241) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.765283"], ["id", 5241]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.771035"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.773383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5242]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.777693"], ["updated_at", "2016-12-12 19:00:01.777693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.778714"], ["id", 2892]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5242], ["g5_updatable_hub_amenity_id", 2892]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.780930"], ["updated_at", "2016-12-12 19:00:01.780930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.781864"], ["id", 2893]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5242], ["g5_updatable_hub_amenity_id", 2893]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5242]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5242) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.785732"], ["id", 5242]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.790594"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.792716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5243]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.796899"], ["updated_at", "2016-12-12 19:00:01.796899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.797871"], ["id", 2894]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5243], ["g5_updatable_hub_amenity_id", 2894]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.800084"], ["updated_at", "2016-12-12 19:00:01.800084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.800988"], ["id", 2895]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5243], ["g5_updatable_hub_amenity_id", 2895]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5243]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5243) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.804746"], ["id", 5243]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:00:01.807718"], ["updated_at", "2016-12-12 19:00:01.807718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:01.809375"], ["updated_at", "2016-12-12 19:00:01.809375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2071]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5244]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.812771"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.814933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5245]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.819177"], ["updated_at", "2016-12-12 19:00:01.819177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.820137"], ["id", 2896]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5245], ["g5_updatable_hub_amenity_id", 2896]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.822274"], ["updated_at", "2016-12-12 19:00:01.822274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.823254"], ["id", 2897]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5245], ["g5_updatable_hub_amenity_id", 2897]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5245]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5245) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.826873"], ["id", 5245]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.831613"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.833748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5246]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.837624"], ["updated_at", "2016-12-12 19:00:01.837624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.838619"], ["id", 2898]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5246], ["g5_updatable_hub_amenity_id", 2898]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.841308"], ["updated_at", "2016-12-12 19:00:01.841308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.842291"], ["id", 2899]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5246], ["g5_updatable_hub_amenity_id", 2899]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5246]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5246) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.846584"], ["id", 5246]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.851874"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.854282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5247]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.865877"], ["updated_at", "2016-12-12 19:00:01.865877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.867317"], ["id", 2900]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5247], ["g5_updatable_hub_amenity_id", 2900]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.870200"], ["updated_at", "2016-12-12 19:00:01.870200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.871163"], ["id", 2901]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5247], ["g5_updatable_hub_amenity_id", 2901]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5247]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5247) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.875465"], ["id", 5247]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.880871"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.883232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5248]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.887787"], ["updated_at", "2016-12-12 19:00:01.887787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.888769"], ["id", 2902]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5248], ["g5_updatable_hub_amenity_id", 2902]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.891708"], ["updated_at", "2016-12-12 19:00:01.891708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.892786"], ["id", 2903]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5248], ["g5_updatable_hub_amenity_id", 2903]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5248]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5248) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.897209"], ["id", 5248]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.902449"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.904747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5249]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.909024"], ["updated_at", "2016-12-12 19:00:01.909024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.910134"], ["id", 2904]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5249], ["g5_updatable_hub_amenity_id", 2904]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.912456"], ["updated_at", "2016-12-12 19:00:01.912456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.913433"], ["id", 2905]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5249], ["g5_updatable_hub_amenity_id", 2905]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5249]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5249) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.917232"], ["id", 5249]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.922532"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:01.924935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5250]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.929267"], ["updated_at", "2016-12-12 19:00:01.929267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.930270"], ["id", 2906]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5250], ["g5_updatable_hub_amenity_id", 2906]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.932454"], ["updated_at", "2016-12-12 19:00:01.932454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.933471"], ["id", 2907]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5250], ["g5_updatable_hub_amenity_id", 2907]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5250]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5250) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.937522"], ["id", 5250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 18:00:01.942020"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 19:00:01.945077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5251) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.953338"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5251]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5251]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:01.961230"], ["updated_at", "2016-12-12 19:00:01.961230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:01.962319"], ["id", 2908]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5251], ["g5_updatable_hub_amenity_id", 2908]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:01.965200"], ["updated_at", "2016-12-12 19:00:01.965200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:01.966835"], ["id", 2909]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5251], ["g5_updatable_hub_amenity_id", 2909]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5251]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5251) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:01.972246"], ["id", 5251]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5251]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 18:00:01.978178"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 19:00:01.982861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5252) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:01.994168"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5252]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5252]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.004081"], ["updated_at", "2016-12-12 19:00:02.004081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.005185"], ["id", 2910]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5252], ["g5_updatable_hub_amenity_id", 2910]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.007823"], ["updated_at", "2016-12-12 19:00:02.007823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.008846"], ["id", 2911]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5252], ["g5_updatable_hub_amenity_id", 2911]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5252]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5252) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.013303"], ["id", 5252]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:00:02.016969"], ["updated_at", "2016-12-12 19:00:02.016969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (8.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:02.018925"], ["updated_at", "2016-12-12 19:00:02.018925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2072]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5253]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:02.032108"], ["updated_at", "2016-12-12 19:00:02.032108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5254) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.034063"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5254]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5254]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.043695"], ["updated_at", "2016-12-12 19:00:02.043695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.044829"], ["id", 2912]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5254], ["g5_updatable_hub_amenity_id", 2912]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.047667"], ["updated_at", "2016-12-12 19:00:02.047667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.048718"], ["id", 2913]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5254], ["g5_updatable_hub_amenity_id", 2913]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5254]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5254) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.053303"], ["id", 5254]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:02.058106"], ["updated_at", "2016-12-12 19:00:02.058106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5255) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.061024"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5255]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5255]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5255]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5255) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:00:02.073380"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.076162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5256]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5256]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5256) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:00:02.084465"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.087286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5257]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.106064"], ["updated_at", "2016-12-12 19:00:02.106064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.107263"], ["id", 2914]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5257], ["g5_updatable_hub_amenity_id", 2914]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.109703"], ["updated_at", "2016-12-12 19:00:02.109703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.110702"], ["id", 2915]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5257], ["g5_updatable_hub_amenity_id", 2915]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5257]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5257) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.114508"], ["id", 5257]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:00:02.116804"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.118948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5258]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5258], ["g5_updatable_hub_amenity_id", 2914]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5258], ["g5_updatable_hub_amenity_id", 2915]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5258]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5258) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.127045"], ["id", 5258]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:00:02.129401"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.131336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5259]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5259]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5259) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:02.139276"], ["updated_at", "2016-12-12 19:00:02.139276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5260) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.141285"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5260]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5260]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.148012"], ["updated_at", "2016-12-12 19:00:02.148012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.148996"], ["id", 2916]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5260], ["g5_updatable_hub_amenity_id", 2916]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.151167"], ["updated_at", "2016-12-12 19:00:02.151167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.152229"], ["id", 2917]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5260], ["g5_updatable_hub_amenity_id", 2917]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5260]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5260) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.155794"], ["id", 5260]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.159804"], ["updated_at", "2016-12-12 19:00:02.159804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-12 19:00:02.161435"], ["updated_at", "2016-12-12 19:00:02.161435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5261], ["g5_updatable_hub_amenity_id", 2918]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5261) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.163983"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5261]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5261]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.170858"], ["id", 2918]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5261], ["g5_updatable_hub_amenity_id", 2918]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.173074"], ["updated_at", "2016-12-12 19:00:02.173074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.174116"], ["id", 2919]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5261], ["g5_updatable_hub_amenity_id", 2919]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5261]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5261) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.177715"], ["id", 5261]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.181700"], ["updated_at", "2016-12-12 19:00:02.181700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-12 19:00:02.183078"], ["updated_at", "2016-12-12 19:00:02.183078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5262], ["g5_updatable_hub_amenity_id", 2920]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5262) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.185741"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5262]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5262]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.192500"], ["updated_at", "2016-12-12 19:00:02.192500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.193577"], ["id", 2921]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5262], ["g5_updatable_hub_amenity_id", 2921]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.196051"], ["updated_at", "2016-12-12 19:00:02.196051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.197225"], ["id", 2922]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5262], ["g5_updatable_hub_amenity_id", 2922]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5262]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5262) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.200909"], ["id", 5262]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.205758"], ["updated_at", "2016-12-12 19:00:02.205758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-12 19:00:02.207227"], ["updated_at", "2016-12-12 19:00:02.207227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5263], ["g5_updatable_hub_amenity_id", 2923]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5263) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.209677"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5263]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5263]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.216257"], ["updated_at", "2016-12-12 19:00:02.216257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.217172"], ["id", 2924]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5263], ["g5_updatable_hub_amenity_id", 2924]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.219636"], ["updated_at", "2016-12-12 19:00:02.219636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.220660"], ["id", 2925]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5263], ["g5_updatable_hub_amenity_id", 2925]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5263]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5263) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.224264"], ["id", 5263]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5263]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.229593"], ["updated_at", "2016-12-12 19:00:02.229593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-12 19:00:02.230947"], ["updated_at", "2016-12-12 19:00:02.230947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5264], ["g5_updatable_hub_amenity_id", 2926]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5264) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.233425"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5264]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5264]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.240268"], ["updated_at", "2016-12-12 19:00:02.240268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.241402"], ["id", 2927]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5264], ["g5_updatable_hub_amenity_id", 2927]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.243764"], ["updated_at", "2016-12-12 19:00:02.243764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.244733"], ["id", 2928]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5264], ["g5_updatable_hub_amenity_id", 2928]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5264]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5264) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.248715"], ["id", 5264]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.253897"], ["updated_at", "2016-12-12 19:00:02.253897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-12 19:00:02.255428"], ["updated_at", "2016-12-12 19:00:02.255428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5265], ["g5_updatable_hub_amenity_id", 2929]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5265) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.257993"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5265]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5265]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.264344"], ["updated_at", "2016-12-12 19:00:02.264344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.265454"], ["id", 2930]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5265], ["g5_updatable_hub_amenity_id", 2930]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.268184"], ["updated_at", "2016-12-12 19:00:02.268184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.269229"], ["id", 2931]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5265], ["g5_updatable_hub_amenity_id", 2931]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5265]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5265) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.272894"], ["id", 5265]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:00:02.275991"], ["updated_at", "2016-12-12 19:00:02.275991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:02.277817"], ["updated_at", "2016-12-12 19:00:02.277817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2073]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5266]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.281178"], ["updated_at", "2016-12-12 19:00:02.281178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-12 19:00:02.282564"], ["updated_at", "2016-12-12 19:00:02.282564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5267], ["g5_updatable_hub_amenity_id", 2932]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5267) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.285289"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5267]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5267]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.292712"], ["updated_at", "2016-12-12 19:00:02.292712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.294068"], ["id", 2933]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5267], ["g5_updatable_hub_amenity_id", 2933]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.296575"], ["updated_at", "2016-12-12 19:00:02.296575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.297534"], ["id", 2934]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5267], ["g5_updatable_hub_amenity_id", 2934]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5267]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5267) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.301477"], ["id", 5267]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.310569"], ["updated_at", "2016-12-12 19:00:02.310569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-12 19:00:02.312137"], ["updated_at", "2016-12-12 19:00:02.312137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5268], ["g5_updatable_hub_amenity_id", 2935]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5268) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.314629"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5268]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5268]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.320847"], ["updated_at", "2016-12-12 19:00:02.320847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.321757"], ["id", 2936]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5268], ["g5_updatable_hub_amenity_id", 2936]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.324231"], ["id", 2935]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5268], ["g5_updatable_hub_amenity_id", 2935]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5268]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5268) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.327941"], ["id", 5268]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.336485"], ["updated_at", "2016-12-12 19:00:02.336485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-12 19:00:02.338173"], ["updated_at", "2016-12-12 19:00:02.338173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5269], ["g5_updatable_hub_amenity_id", 2937]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5269) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.340843"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5269]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5269]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.347841"], ["updated_at", "2016-12-12 19:00:02.347841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.348836"], ["id", 2938]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5269], ["g5_updatable_hub_amenity_id", 2938]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.351208"], ["updated_at", "2016-12-12 19:00:02.351208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.352118"], ["id", 2939]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5269], ["g5_updatable_hub_amenity_id", 2939]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5269]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5269) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.355592"], ["id", 5269]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:00:02.358786"], ["updated_at", "2016-12-12 19:00:02.358786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:02.360425"], ["updated_at", "2016-12-12 19:00:02.360425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2074]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5270]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.363753"], ["updated_at", "2016-12-12 19:00:02.363753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-12 19:00:02.365163"], ["updated_at", "2016-12-12 19:00:02.365163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5271], ["g5_updatable_hub_amenity_id", 2940]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5271) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.367765"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5271]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5271]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.374395"], ["updated_at", "2016-12-12 19:00:02.374395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.375340"], ["id", 2941]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5271], ["g5_updatable_hub_amenity_id", 2941]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.377678"], ["updated_at", "2016-12-12 19:00:02.377678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.378582"], ["id", 2942]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5271], ["g5_updatable_hub_amenity_id", 2942]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5271]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5271) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.382173"], ["id", 5271]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.387500"], ["updated_at", "2016-12-12 19:00:02.387500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-12 19:00:02.388919"], ["updated_at", "2016-12-12 19:00:02.388919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5272], ["g5_updatable_hub_amenity_id", 2943]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5272) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.391901"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5272]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5272]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.398913"], ["updated_at", "2016-12-12 19:00:02.398913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.399868"], ["id", 2944]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5272], ["g5_updatable_hub_amenity_id", 2944]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.402283"], ["updated_at", "2016-12-12 19:00:02.402283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.403191"], ["id", 2945]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5272], ["g5_updatable_hub_amenity_id", 2945]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5272]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5272) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.406884"], ["id", 5272]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.413610"], ["updated_at", "2016-12-12 19:00:02.413610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-12 19:00:02.419059"], ["updated_at", "2016-12-12 19:00:02.419059"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.423294"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.425630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5275]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.429586"], ["updated_at", "2016-12-12 19:00:02.429586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.430589"], ["id", 2946]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5275], ["g5_updatable_hub_amenity_id", 2946]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.432804"], ["updated_at", "2016-12-12 19:00:02.432804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.433731"], ["id", 2947]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5275], ["g5_updatable_hub_amenity_id", 2947]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5275]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5275) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.437533"], ["id", 5275]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5273]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5273]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.445379"], ["updated_at", "2016-12-12 19:00:02.445379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.447282"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.449434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5277]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.453391"], ["updated_at", "2016-12-12 19:00:02.453391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.454314"], ["id", 2948]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5277], ["g5_updatable_hub_amenity_id", 2948]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.456718"], ["updated_at", "2016-12-12 19:00:02.456718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.457633"], ["id", 2949]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5277], ["g5_updatable_hub_amenity_id", 2949]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5277]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5277) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.461434"], ["id", 5277]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5276]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5276]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.468801"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.470952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5278]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.475007"], ["updated_at", "2016-12-12 19:00:02.475007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.475962"], ["id", 2950]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5278], ["g5_updatable_hub_amenity_id", 2950]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.478178"], ["updated_at", "2016-12-12 19:00:02.478178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.479087"], ["id", 2951]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5278], ["g5_updatable_hub_amenity_id", 2951]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5278]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5278) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.482790"], ["id", 5278]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"client_uid"=>"http://my-client.com/clients/urn"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.549024"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.551451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5279]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.555211"], ["updated_at", "2016-12-12 19:00:02.555211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.556133"], ["id", 2952]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5279], ["g5_updatable_hub_amenity_id", 2952]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.558563"], ["updated_at", "2016-12-12 19:00:02.558563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.559651"], ["id", 2953]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5279], ["g5_updatable_hub_amenity_id", 2953]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5279]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5279) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.563659"], ["id", 5279]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:00:02.572059"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:00:02.573935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.576319"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.578466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5280]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5280]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5280) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:00:02.585085"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.587055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5281]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5281]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5281) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.5ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:00:02.594489"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.597360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5282]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.602017"], ["updated_at", "2016-12-12 19:00:02.602017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.603159"], ["id", 2954]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5282], ["g5_updatable_hub_amenity_id", 2954]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.606254"], ["updated_at", "2016-12-12 19:00:02.606254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.607333"], ["id", 2955]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5282], ["g5_updatable_hub_amenity_id", 2955]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5282]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5282) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.611007"], ["id", 5282]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:00:02.613521"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.615655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5283]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5283], ["g5_updatable_hub_amenity_id", 2954]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5283], ["g5_updatable_hub_amenity_id", 2955]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5283]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5283) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.623330"], ["id", 5283]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:00:02.625702"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.627718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5284]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5284]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5284) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5282]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:00:02.640426"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:00:02.642262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.644610"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.647004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5285]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5285]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5285) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:00:02.653482"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.655522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5286]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5286]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5286) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:00:02.661922"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.663939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5287]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.668324"], ["updated_at", "2016-12-12 19:00:02.668324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.669455"], ["id", 2956]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5287], ["g5_updatable_hub_amenity_id", 2956]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.671745"], ["updated_at", "2016-12-12 19:00:02.671745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.672702"], ["id", 2957]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5287], ["g5_updatable_hub_amenity_id", 2957]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5287]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5287) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.676353"], ["id", 5287]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:00:02.679103"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.681240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5288]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5288], ["g5_updatable_hub_amenity_id", 2956]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5288], ["g5_updatable_hub_amenity_id", 2957]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5288]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5288) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.689494"], ["id", 5288]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:00:02.692228"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.694621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5289]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5289]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5289) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:00:02.716186"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:00:02.718083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.721138"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.723305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5290]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5290]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5290) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:00:02.729835"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.731834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5291]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5291]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5291) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:00:02.738697"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.741260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5292]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.745233"], ["updated_at", "2016-12-12 19:00:02.745233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.746408"], ["id", 2958]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5292], ["g5_updatable_hub_amenity_id", 2958]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.748736"], ["updated_at", "2016-12-12 19:00:02.748736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.749630"], ["id", 2959]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5292], ["g5_updatable_hub_amenity_id", 2959]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5292]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5292) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.753419"], ["id", 5292]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:00:02.755904"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.757993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5293]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5293], ["g5_updatable_hub_amenity_id", 2958]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5293], ["g5_updatable_hub_amenity_id", 2959]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5293]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5293) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.765684"], ["id", 5293]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:00:02.767964"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.770162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5294]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5294]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5294) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:00:02.784184"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:00:02.786112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.788281"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.790344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5295]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5295]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5295) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:00:02.796994"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.798959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5296]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5296]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5296) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:00:02.806088"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.808207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5297]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.811982"], ["updated_at", "2016-12-12 19:00:02.811982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.812922"], ["id", 2960]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5297], ["g5_updatable_hub_amenity_id", 2960]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.814995"], ["updated_at", "2016-12-12 19:00:02.814995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.815872"], ["id", 2961]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5297], ["g5_updatable_hub_amenity_id", 2961]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5297]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5297) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.819602"], ["id", 5297]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:00:02.821856"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.823808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5298]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5298], ["g5_updatable_hub_amenity_id", 2960]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5298], ["g5_updatable_hub_amenity_id", 2961]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5298]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5298) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.831379"], ["id", 5298]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:00:02.834035"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.836294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5299]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5299]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5299) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2078) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2078) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 19:00:02.847007"], ["id", 2078]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5299]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5299]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5298]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3312]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3313]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5298]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5297]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3310]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3311]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5297]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5296]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5296]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5295]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5295]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:00:02.864181"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:00:02.866459"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:00:02.869911"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.872623"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5300]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5300]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5300) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:00:02.887978"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.890474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5301]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5301]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5301) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:00:02.898351"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.900672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5302]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:00:02.905091"], ["updated_at", "2016-12-12 19:00:02.905091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:00:02.906212"], ["id", 2962]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5302], ["g5_updatable_hub_amenity_id", 2962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:00:02.908550"], ["updated_at", "2016-12-12 19:00:02.908550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:00:02.909439"], ["id", 2963]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5302], ["g5_updatable_hub_amenity_id", 2963]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5302]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5302) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.913278"], ["id", 5302]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:00:02.915629"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.917637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5303]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5303], ["g5_updatable_hub_amenity_id", 2962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5303], ["g5_updatable_hub_amenity_id", 2963]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5303]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5303) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:00:02.925655"], ["id", 5303]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:00:02.928145"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:00:02.930045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5304]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5304]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5304) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2079) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2079) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 19:00:02.940089"], ["id", 2079]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5300) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-12 19:00:02.945812"], ["id", 5300]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5300]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5300]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5300) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5304]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5304]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5303]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3316]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3317]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5303]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5302]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3314]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3315]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5302]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5301]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5301]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:02.971599"], ["updated_at", "2016-12-12 19:00:02.971599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5305]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 19:00:02.988154"], ["updated_at", "2016-12-12 19:00:02.988154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.014715"], ["updated_at", "2016-12-12 19:00:03.014715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.018127"], ["updated_at", "2016-12-12 19:00:03.018127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.020316"], ["updated_at", "2016-12-12 19:00:03.020316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.023753"], ["updated_at", "2016-12-12 19:00:03.023753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.026440"], ["updated_at", "2016-12-12 19:00:03.026440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.028023"], ["updated_at", "2016-12-12 19:00:03.028023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.031233"], ["updated_at", "2016-12-12 19:00:03.031233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.033979"], ["updated_at", "2016-12-12 19:00:03.033979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.035767"], ["updated_at", "2016-12-12 19:00:03.035767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.039985"], ["updated_at", "2016-12-12 19:00:03.039985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.042966"], ["updated_at", "2016-12-12 19:00:03.042966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.044546"], ["updated_at", "2016-12-12 19:00:03.044546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.048919"], ["updated_at", "2016-12-12 19:00:03.048919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.051905"], ["updated_at", "2016-12-12 19:00:03.051905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.054013"], ["updated_at", "2016-12-12 19:00:03.054013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.057542"], ["updated_at", "2016-12-12 19:00:03.057542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.060299"], ["updated_at", "2016-12-12 19:00:03.060299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.061999"], ["updated_at", "2016-12-12 19:00:03.061999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.065650"], ["updated_at", "2016-12-12 19:00:03.065650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.068920"], ["updated_at", "2016-12-12 19:00:03.068920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.070805"], ["updated_at", "2016-12-12 19:00:03.070805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.074921"], ["updated_at", "2016-12-12 19:00:03.074921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.078080"], ["updated_at", "2016-12-12 19:00:03.078080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.079742"], ["updated_at", "2016-12-12 19:00:03.079742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.083265"], ["updated_at", "2016-12-12 19:00:03.083265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.086335"], ["updated_at", "2016-12-12 19:00:03.086335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.087970"], ["updated_at", "2016-12-12 19:00:03.087970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.091960"], ["updated_at", "2016-12-12 19:00:03.091960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.095205"], ["updated_at", "2016-12-12 19:00:03.095205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.097167"], ["updated_at", "2016-12-12 19:00:03.097167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.105519"], ["updated_at", "2016-12-12 19:00:03.105519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.108403"], ["updated_at", "2016-12-12 19:00:03.108403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.110005"], ["updated_at", "2016-12-12 19:00:03.110005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 19:00:03.112448"], ["updated_at", "2016-12-12 19:00:03.112448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.114640"], ["updated_at", "2016-12-12 19:00:03.114640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.117271"], ["updated_at", "2016-12-12 19:00:03.117271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.118963"], ["updated_at", "2016-12-12 19:00:03.118963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:00:03.121612"], ["updated_at", "2016-12-12 19:00:03.121612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.124272"], ["updated_at", "2016-12-12 19:00:03.124272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:00:03.125828"], ["updated_at", "2016-12-12 19:00:03.125828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.128541"], ["updated_at", "2016-12-12 19:00:03.128541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-12 19:00:03.129763"], ["updated_at", "2016-12-12 19:00:03.129763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-12 19:00:03.130667"], ["updated_at", "2016-12-12 19:00:03.130667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5334], ["g5_updatable_hub_amenity_id", 2964]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5334], ["g5_updatable_hub_amenity_id", 2965]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5334]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5334) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-11|amenity-12|"], ["updated_at", "2016-12-12 19:00:03.135708"], ["id", 5334]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5334]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5334]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.139285"], ["updated_at", "2016-12-12 19:00:03.139285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-12 19:00:03.140573"], ["updated_at", "2016-12-12 19:00:03.140573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-12 19:00:03.141564"], ["updated_at", "2016-12-12 19:00:03.141564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5335], ["g5_updatable_hub_amenity_id", 2966]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5335], ["g5_updatable_hub_amenity_id", 2967]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5335]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5335) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-13|amenity-14|"], ["updated_at", "2016-12-12 19:00:03.146165"], ["id", 5335]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5335]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5335]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5335]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5335]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5335]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.151602"], ["updated_at", "2016-12-12 19:00:03.151602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.153587"], ["updated_at", "2016-12-12 19:00:03.153587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.157959"], ["updated_at", "2016-12-12 19:00:03.157959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.159759"], ["updated_at", "2016-12-12 19:00:03.159759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.163651"], ["updated_at", "2016-12-12 19:00:03.163651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.165378"], ["updated_at", "2016-12-12 19:00:03.165378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.169370"], ["updated_at", "2016-12-12 19:00:03.169370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.172430"], ["updated_at", "2016-12-12 19:00:03.172430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.177024"], ["updated_at", "2016-12-12 19:00:03.177024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.180864"], ["updated_at", "2016-12-12 19:00:03.180864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:00:03.190363"], ["updated_at", "2016-12-12 19:00:03.190363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.192454"], ["updated_at", "2016-12-12 19:00:03.192454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.198462"], ["updated_at", "2016-12-12 19:00:03.198462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.202336"], ["updated_at", "2016-12-12 19:00:03.202336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.206855"], ["updated_at", "2016-12-12 19:00:03.206855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.211161"], ["updated_at", "2016-12-12 19:00:03.211161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.216534"], ["updated_at", "2016-12-12 19:00:03.216534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:00:03.224771"], ["updated_at", "2016-12-12 19:00:03.224771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.226653"], ["updated_at", "2016-12-12 19:00:03.226653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.228386"], ["updated_at", "2016-12-12 19:00:03.228386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.230118"], ["updated_at", "2016-12-12 19:00:03.230118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:00:03.238458"], ["updated_at", "2016-12-12 19:00:03.238458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.240652"], ["updated_at", "2016-12-12 19:00:03.240652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.242553"], ["updated_at", "2016-12-12 19:00:03.242553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.244254"], ["updated_at", "2016-12-12 19:00:03.244254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.262343"], ["updated_at", "2016-12-12 19:00:03.262343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 19:00:03.264024"], ["updated_at", "2016-12-12 19:00:03.264024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-12 19:00:03.265283"], ["updated_at", "2016-12-12 19:00:03.265283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-12 19:00:03.266295"], ["updated_at", "2016-12-12 19:00:03.266295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-12 19:00:03.267295"], ["updated_at", "2016-12-12 19:00:03.267295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5357], ["g5_updatable_hub_amenity_id", 2968]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5357], ["g5_updatable_hub_amenity_id", 2969]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.7ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:00:03.275866"], ["updated_at", "2016-12-12 19:00:03.275866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 19:00:03.277459"], ["updated_at", "2016-12-12 19:00:03.277459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-12 19:00:03.278628"], ["updated_at", "2016-12-12 19:00:03.278628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-12 19:00:03.279525"], ["updated_at", "2016-12-12 19:00:03.279525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-12 19:00:03.280457"], ["updated_at", "2016-12-12 19:00:03.280457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5358], ["g5_updatable_hub_amenity_id", 2971]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5358], ["g5_updatable_hub_amenity_id", 2972]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.286637"], ["updated_at", "2016-12-12 19:00:03.286637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.33ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:00:03.294271"], ["updated_at", "2016-12-12 19:00:03.294271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.3ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.431574"], ["updated_at", "2016-12-12 19:01:21.431574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 19:01:21.437034"], ["updated_at", "2016-12-12 19:01:21.437034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-12 19:01:21.438670"], ["updated_at", "2016-12-12 19:01:21.438670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-12 19:01:21.439768"], ["updated_at", "2016-12-12 19:01:21.439768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-12 19:01:21.440648"], ["updated_at", "2016-12-12 19:01:21.440648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5361], ["g5_updatable_hub_amenity_id", 2974]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5361], ["g5_updatable_hub_amenity_id", 2975]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (1.0ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.5ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.461053"], ["updated_at", "2016-12-12 19:01:21.461053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 19:01:21.463000"], ["updated_at", "2016-12-12 19:01:21.463000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-12 19:01:21.464283"], ["updated_at", "2016-12-12 19:01:21.464283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-12 19:01:21.465207"], ["updated_at", "2016-12-12 19:01:21.465207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-12 19:01:21.466085"], ["updated_at", "2016-12-12 19:01:21.466085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5362], ["g5_updatable_hub_amenity_id", 2977]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5362], ["g5_updatable_hub_amenity_id", 2978]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.474043"], ["updated_at", "2016-12-12 19:01:21.474043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.39ms) Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.486069"], ["updated_at", "2016-12-12 19:01:21.486069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.29ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 19:01:21.528553"], ["updated_at", "2016-12-12 19:01:21.528553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:01:21.536116"], ["updated_at", "2016-12-12 19:01:21.536116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.538275"], ["updated_at", "2016-12-12 19:01:21.538275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:01:21.542033"], ["updated_at", "2016-12-12 19:01:21.542033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.543794"], ["updated_at", "2016-12-12 19:01:21.543794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.549846"], ["updated_at", "2016-12-12 19:01:21.549846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.552001"], ["updated_at", "2016-12-12 19:01:21.552001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.555943"], ["updated_at", "2016-12-12 19:01:21.555943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.557813"], ["updated_at", "2016-12-12 19:01:21.557813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.561250"], ["updated_at", "2016-12-12 19:01:21.561250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.563361"], ["updated_at", "2016-12-12 19:01:21.563361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.567604"], ["updated_at", "2016-12-12 19:01:21.567604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.570086"], ["updated_at", "2016-12-12 19:01:21.570086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.574679"], ["updated_at", "2016-12-12 19:01:21.574679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.576530"], ["updated_at", "2016-12-12 19:01:21.576530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.580632"], ["updated_at", "2016-12-12 19:01:21.580632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.583994"], ["updated_at", "2016-12-12 19:01:21.583994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.585616"], ["updated_at", "2016-12-12 19:01:21.585616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.589166"], ["updated_at", "2016-12-12 19:01:21.589166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.592057"], ["updated_at", "2016-12-12 19:01:21.592057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.593699"], ["updated_at", "2016-12-12 19:01:21.593699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.597626"], ["updated_at", "2016-12-12 19:01:21.597626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.600754"], ["updated_at", "2016-12-12 19:01:21.600754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.602379"], ["updated_at", "2016-12-12 19:01:21.602379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.606328"], ["updated_at", "2016-12-12 19:01:21.606328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.609338"], ["updated_at", "2016-12-12 19:01:21.609338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.610998"], ["updated_at", "2016-12-12 19:01:21.610998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.614660"], ["updated_at", "2016-12-12 19:01:21.614660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.617851"], ["updated_at", "2016-12-12 19:01:21.617851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.619485"], ["updated_at", "2016-12-12 19:01:21.619485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.623741"], ["updated_at", "2016-12-12 19:01:21.623741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.626464"], ["updated_at", "2016-12-12 19:01:21.626464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.628535"], ["updated_at", "2016-12-12 19:01:21.628535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-12 19:01:21.631303"], ["updated_at", "2016-12-12 19:01:21.631303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.633812"], ["updated_at", "2016-12-12 19:01:21.633812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.636691"], ["updated_at", "2016-12-12 19:01:21.636691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.638314"], ["updated_at", "2016-12-12 19:01:21.638314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.641352"], ["updated_at", "2016-12-12 19:01:21.641352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.644422"], ["updated_at", "2016-12-12 19:01:21.644422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.646398"], ["updated_at", "2016-12-12 19:01:21.646398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.649551"], ["updated_at", "2016-12-12 19:01:21.649551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.652474"], ["updated_at", "2016-12-12 19:01:21.652474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.654102"], ["updated_at", "2016-12-12 19:01:21.654102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.657842"], ["updated_at", "2016-12-12 19:01:21.657842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.668047"], ["updated_at", "2016-12-12 19:01:21.668047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.670035"], ["updated_at", "2016-12-12 19:01:21.670035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.674470"], ["updated_at", "2016-12-12 19:01:21.674470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.677277"], ["updated_at", "2016-12-12 19:01:21.677277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.678966"], ["updated_at", "2016-12-12 19:01:21.678966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.682430"], ["updated_at", "2016-12-12 19:01:21.682430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.685654"], ["updated_at", "2016-12-12 19:01:21.685654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.687266"], ["updated_at", "2016-12-12 19:01:21.687266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-12 19:01:21.690573"], ["updated_at", "2016-12-12 19:01:21.690573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:21.693394"], ["updated_at", "2016-12-12 19:01:21.693394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-12 19:01:21.695374"], ["updated_at", "2016-12-12 19:01:21.695374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.699239"], ["updated_at", "2016-12-12 19:01:21.699239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.701765"], ["updated_at", "2016-12-12 19:01:21.701765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.704111"], ["updated_at", "2016-12-12 19:01:21.704111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.710940"], ["updated_at", "2016-12-12 19:01:21.710940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-12 19:01:21.712330"], ["updated_at", "2016-12-12 19:01:21.712330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-12 19:01:21.713524"], ["updated_at", "2016-12-12 19:01:21.713524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5408], ["g5_updatable_hub_amenity_id", 2980]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5408], ["g5_updatable_hub_amenity_id", 2981]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5408]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5408) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-7|amenity-8|"], ["updated_at", "2016-12-12 19:01:21.719483"], ["id", 5408]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5408]] G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5408]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5408]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5408]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5408]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.725455"], ["updated_at", "2016-12-12 19:01:21.725455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-12 19:01:21.726743"], ["updated_at", "2016-12-12 19:01:21.726743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-12 19:01:21.727640"], ["updated_at", "2016-12-12 19:01:21.727640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5409], ["g5_updatable_hub_amenity_id", 2982]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5409], ["g5_updatable_hub_amenity_id", 2983]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5409]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5409) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-10|amenity-9|"], ["updated_at", "2016-12-12 19:01:21.732763"], ["id", 5409]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5409]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5409]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.739677"], ["updated_at", "2016-12-12 19:01:21.739677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5410]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:21.751884"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:21.754888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5411]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:21.759573"], ["updated_at", "2016-12-12 19:01:21.759573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:21.761577"], ["id", 2984]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5411], ["g5_updatable_hub_amenity_id", 2984]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:21.764219"], ["updated_at", "2016-12-12 19:01:21.764219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:21.765176"], ["id", 2985]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5411], ["g5_updatable_hub_amenity_id", 2985]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5411]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5411) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:21.769251"], ["id", 5411]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:21.777750"], ["updated_at", "2016-12-12 19:01:21.777750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-12 19:01:21.783342"], ["updated_at", "2016-12-12 19:01:21.783342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:21.786934"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:21.789060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5414]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:21.792999"], ["updated_at", "2016-12-12 19:01:21.792999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:21.794016"], ["id", 2986]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5414], ["g5_updatable_hub_amenity_id", 2986]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:21.796620"], ["updated_at", "2016-12-12 19:01:21.796620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:21.797649"], ["id", 2987]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5414], ["g5_updatable_hub_amenity_id", 2987]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5414]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5414) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:21.801924"], ["id", 5414]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5412]] SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5412]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 18:01:21.808694"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 19:01:21.811470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5415) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:21.818988"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5415]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5415]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:21.826009"], ["updated_at", "2016-12-12 19:01:21.826009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:21.827020"], ["id", 2988]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5415], ["g5_updatable_hub_amenity_id", 2988]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:21.829572"], ["updated_at", "2016-12-12 19:01:21.829572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:21.830559"], ["id", 2989]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5415], ["g5_updatable_hub_amenity_id", 2989]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5415]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5415) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:21.834319"], ["id", 5415]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5415]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-12 18:01:21.838420"], ["client_urn", "client_uid"], ["created_at", "2016-12-12 19:01:21.840999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5416) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:21.848362"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5416]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5416]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:21.855626"], ["updated_at", "2016-12-12 19:01:21.855626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:21.856925"], ["id", 2990]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5416], ["g5_updatable_hub_amenity_id", 2990]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:21.859511"], ["updated_at", "2016-12-12 19:01:21.859511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:21.860411"], ["id", 2991]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5416], ["g5_updatable_hub_amenity_id", 2991]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5416]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5416) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:21.864407"], ["id", 5416]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:01:21.867691"], ["updated_at", "2016-12-12 19:01:21.867691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:21.869527"], ["updated_at", "2016-12-12 19:01:21.869527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2116]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5417]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:21.873329"], ["updated_at", "2016-12-12 19:01:21.873329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:21.874848"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:21.877047"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5419]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:21.882581"], ["updated_at", "2016-12-12 19:01:21.882581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:21.883744"], ["id", 2992]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5419], ["g5_updatable_hub_amenity_id", 2992]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:21.886289"], ["updated_at", "2016-12-12 19:01:21.886289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:21.887219"], ["id", 2993]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5419], ["g5_updatable_hub_amenity_id", 2993]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5419]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5419) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:21.890855"], ["id", 5419]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5418]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5418]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:21.904031"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:21.906942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5420]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:21.912035"], ["updated_at", "2016-12-12 19:01:21.912035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:21.913075"], ["id", 2994]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5420], ["g5_updatable_hub_amenity_id", 2994]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:21.915612"], ["updated_at", "2016-12-12 19:01:21.915612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:21.916581"], ["id", 2995]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5420], ["g5_updatable_hub_amenity_id", 2995]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5420]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5420) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:21.920609"], ["id", 5420]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:21.924876"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:21.927743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5421]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:21.932227"], ["updated_at", "2016-12-12 19:01:21.932227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:21.933231"], ["id", 2996]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5421], ["g5_updatable_hub_amenity_id", 2996]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:21.935920"], ["updated_at", "2016-12-12 19:01:21.935920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:21.936989"], ["id", 2997]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5421], ["g5_updatable_hub_amenity_id", 2997]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5421]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5421) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:21.941402"], ["id", 5421]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:21.946249"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:21.948916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5422]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:21.953210"], ["updated_at", "2016-12-12 19:01:21.953210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:21.954201"], ["id", 2998]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5422], ["g5_updatable_hub_amenity_id", 2998]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:21.956931"], ["updated_at", "2016-12-12 19:01:21.956931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:21.957919"], ["id", 2999]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5422], ["g5_updatable_hub_amenity_id", 2999]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5422]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5422) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:21.962019"], ["id", 5422]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5422]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5422]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:21.968566"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:21.970767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5423]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:21.974847"], ["updated_at", "2016-12-12 19:01:21.974847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:21.975757"], ["id", 3000]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5423], ["g5_updatable_hub_amenity_id", 3000]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:21.978109"], ["updated_at", "2016-12-12 19:01:21.978109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:21.979205"], ["id", 3001]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5423], ["g5_updatable_hub_amenity_id", 3001]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5423]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5423) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:21.983139"], ["id", 5423]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:21.989691"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:21.992035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5424]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:21.996680"], ["updated_at", "2016-12-12 19:01:21.996680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:21.997924"], ["id", 3002]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5424], ["g5_updatable_hub_amenity_id", 3002]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.000580"], ["updated_at", "2016-12-12 19:01:22.000580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.001629"], ["id", 3003]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5424], ["g5_updatable_hub_amenity_id", 3003]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5424]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5424) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.006255"], ["id", 5424]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.013207"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.016321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5425]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.021735"], ["updated_at", "2016-12-12 19:01:22.021735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.022798"], ["id", 3004]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5425], ["g5_updatable_hub_amenity_id", 3004]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.025368"], ["updated_at", "2016-12-12 19:01:22.025368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.026457"], ["id", 3005]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5425], ["g5_updatable_hub_amenity_id", 3005]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5425]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5425) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.031285"], ["id", 5425]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.037423"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.040124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5426]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.045496"], ["updated_at", "2016-12-12 19:01:22.045496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.046950"], ["id", 3006]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5426], ["g5_updatable_hub_amenity_id", 3006]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.049624"], ["updated_at", "2016-12-12 19:01:22.049624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.050657"], ["id", 3007]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5426], ["g5_updatable_hub_amenity_id", 3007]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5426]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5426) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.055206"], ["id", 5426]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:01:22.059373"], ["updated_at", "2016-12-12 19:01:22.059373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:22.061314"], ["updated_at", "2016-12-12 19:01:22.061314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2117]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5427]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.065033"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.068454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5428]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.073699"], ["updated_at", "2016-12-12 19:01:22.073699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.074792"], ["id", 3008]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5428], ["g5_updatable_hub_amenity_id", 3008]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.077321"], ["updated_at", "2016-12-12 19:01:22.077321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.078435"], ["id", 3009]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5428], ["g5_updatable_hub_amenity_id", 3009]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5428]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5428) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.083072"], ["id", 5428]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.088607"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.091122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5429]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.096499"], ["updated_at", "2016-12-12 19:01:22.096499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.097781"], ["id", 3010]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5429], ["g5_updatable_hub_amenity_id", 3010]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.100723"], ["updated_at", "2016-12-12 19:01:22.100723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.101866"], ["id", 3011]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5429], ["g5_updatable_hub_amenity_id", 3011]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5429]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5429) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.106459"], ["id", 5429]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.112448"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.115233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5430]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.119929"], ["updated_at", "2016-12-12 19:01:22.119929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.120976"], ["id", 3012]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5430], ["g5_updatable_hub_amenity_id", 3012]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.123577"], ["updated_at", "2016-12-12 19:01:22.123577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.124632"], ["id", 3013]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5430], ["g5_updatable_hub_amenity_id", 3013]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5430]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5430) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.128744"], ["id", 5430]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.145984"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.148317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5431]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.152497"], ["updated_at", "2016-12-12 19:01:22.152497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.153443"], ["id", 3014]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5431], ["g5_updatable_hub_amenity_id", 3014]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.155714"], ["updated_at", "2016-12-12 19:01:22.155714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.156902"], ["id", 3015]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5431], ["g5_updatable_hub_amenity_id", 3015]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5431]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5431) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.160649"], ["id", 5431]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.165588"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.167666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5432]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.171615"], ["updated_at", "2016-12-12 19:01:22.171615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.172587"], ["id", 3016]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5432], ["g5_updatable_hub_amenity_id", 3016]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.174855"], ["updated_at", "2016-12-12 19:01:22.174855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.175732"], ["id", 3017]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5432], ["g5_updatable_hub_amenity_id", 3017]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5432]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5432) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.179244"], ["id", 5432]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.184241"], ["updated_at", "2016-12-12 19:01:22.184241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-12 19:01:22.185695"], ["updated_at", "2016-12-12 19:01:22.185695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5433], ["g5_updatable_hub_amenity_id", 3018]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5433) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.188153"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5433]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5433]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.194383"], ["updated_at", "2016-12-12 19:01:22.194383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.195487"], ["id", 3019]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5433], ["g5_updatable_hub_amenity_id", 3019]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.197885"], ["updated_at", "2016-12-12 19:01:22.197885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.198858"], ["id", 3020]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5433], ["g5_updatable_hub_amenity_id", 3020]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5433]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5433) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.202541"], ["id", 5433]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.208674"], ["updated_at", "2016-12-12 19:01:22.208674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-12 19:01:22.211059"], ["updated_at", "2016-12-12 19:01:22.211059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5434], ["g5_updatable_hub_amenity_id", 3021]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5434) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.214705"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5434]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5434]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.221190"], ["updated_at", "2016-12-12 19:01:22.221190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.222126"], ["id", 3022]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5434], ["g5_updatable_hub_amenity_id", 3022]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.224655"], ["updated_at", "2016-12-12 19:01:22.224655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.225788"], ["id", 3023]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5434], ["g5_updatable_hub_amenity_id", 3023]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5434]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5434) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.229894"], ["id", 5434]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5434]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.235549"], ["updated_at", "2016-12-12 19:01:22.235549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-12 19:01:22.236938"], ["updated_at", "2016-12-12 19:01:22.236938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5435], ["g5_updatable_hub_amenity_id", 3024]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5435) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.239434"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5435]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5435]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.246460"], ["updated_at", "2016-12-12 19:01:22.246460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.247651"], ["id", 3025]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5435], ["g5_updatable_hub_amenity_id", 3025]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.249913"], ["updated_at", "2016-12-12 19:01:22.249913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.250849"], ["id", 3026]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5435], ["g5_updatable_hub_amenity_id", 3026]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5435]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5435) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.254724"], ["id", 5435]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.259202"], ["updated_at", "2016-12-12 19:01:22.259202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-12 19:01:22.260630"], ["updated_at", "2016-12-12 19:01:22.260630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5436], ["g5_updatable_hub_amenity_id", 3027]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5436) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.263296"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5436]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5436]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.269905"], ["updated_at", "2016-12-12 19:01:22.269905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.271096"], ["id", 3028]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5436], ["g5_updatable_hub_amenity_id", 3028]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.273303"], ["updated_at", "2016-12-12 19:01:22.273303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.274227"], ["id", 3029]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5436], ["g5_updatable_hub_amenity_id", 3029]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5436]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5436) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.277682"], ["id", 5436]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.286136"], ["updated_at", "2016-12-12 19:01:22.286136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-12 19:01:22.287606"], ["updated_at", "2016-12-12 19:01:22.287606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5437], ["g5_updatable_hub_amenity_id", 3030]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5437) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.290053"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5437]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5437]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.297130"], ["updated_at", "2016-12-12 19:01:22.297130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.298261"], ["id", 3031]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5437], ["g5_updatable_hub_amenity_id", 3031]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.300503"], ["updated_at", "2016-12-12 19:01:22.300503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.301528"], ["id", 3032]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5437], ["g5_updatable_hub_amenity_id", 3032]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5437]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5437) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.305683"], ["id", 5437]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:01:22.309494"], ["updated_at", "2016-12-12 19:01:22.309494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:22.311262"], ["updated_at", "2016-12-12 19:01:22.311262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2118]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5438]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.314861"], ["updated_at", "2016-12-12 19:01:22.314861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-12 19:01:22.316365"], ["updated_at", "2016-12-12 19:01:22.316365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5439], ["g5_updatable_hub_amenity_id", 3033]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5439) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.318935"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5439]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5439]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.325396"], ["updated_at", "2016-12-12 19:01:22.325396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.326320"], ["id", 3034]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5439], ["g5_updatable_hub_amenity_id", 3034]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.328748"], ["updated_at", "2016-12-12 19:01:22.328748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.329673"], ["id", 3035]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5439], ["g5_updatable_hub_amenity_id", 3035]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5439]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5439) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.333499"], ["id", 5439]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.339192"], ["updated_at", "2016-12-12 19:01:22.339192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-12 19:01:22.340932"], ["updated_at", "2016-12-12 19:01:22.340932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5440], ["g5_updatable_hub_amenity_id", 3036]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5440) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.343555"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5440]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5440]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.355778"], ["updated_at", "2016-12-12 19:01:22.355778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.357020"], ["id", 3037]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5440], ["g5_updatable_hub_amenity_id", 3037]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.359202"], ["updated_at", "2016-12-12 19:01:22.359202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.360102"], ["id", 3038]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5440], ["g5_updatable_hub_amenity_id", 3038]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5440]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5440) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.363948"], ["id", 5440]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.369218"], ["updated_at", "2016-12-12 19:01:22.369218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-12 19:01:22.370699"], ["updated_at", "2016-12-12 19:01:22.370699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5441], ["g5_updatable_hub_amenity_id", 3039]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5441) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.373237"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5441]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5441]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.379675"], ["updated_at", "2016-12-12 19:01:22.379675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.380618"], ["id", 3040]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5441], ["g5_updatable_hub_amenity_id", 3040]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.382982"], ["updated_at", "2016-12-12 19:01:22.382982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.383934"], ["id", 3041]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5441], ["g5_updatable_hub_amenity_id", 3041]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5441]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5441) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.387686"], ["id", 5441]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.392607"], ["updated_at", "2016-12-12 19:01:22.392607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-12 19:01:22.394008"], ["updated_at", "2016-12-12 19:01:22.394008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5442], ["g5_updatable_hub_amenity_id", 3042]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5442) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.396575"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5442]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5442]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.403519"], ["updated_at", "2016-12-12 19:01:22.403519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.404446"], ["id", 3043]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5442], ["g5_updatable_hub_amenity_id", 3043]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.406968"], ["updated_at", "2016-12-12 19:01:22.406968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.407806"], ["id", 3044]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5442], ["g5_updatable_hub_amenity_id", 3044]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5442]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5442) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.411201"], ["id", 5442]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.416342"], ["updated_at", "2016-12-12 19:01:22.416342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-12 19:01:22.417909"], ["updated_at", "2016-12-12 19:01:22.417909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5443], ["g5_updatable_hub_amenity_id", 3045]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5443) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.420334"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5443]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5443]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.426967"], ["updated_at", "2016-12-12 19:01:22.426967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.427871"], ["id", 3046]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5443], ["g5_updatable_hub_amenity_id", 3046]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.430187"], ["updated_at", "2016-12-12 19:01:22.430187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.431241"], ["id", 3047]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5443], ["g5_updatable_hub_amenity_id", 3047]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5443]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5443) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.435006"], ["id", 5443]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:01:22.438020"], ["updated_at", "2016-12-12 19:01:22.438020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:22.439610"], ["updated_at", "2016-12-12 19:01:22.439610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2119]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5444]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:22.443025"], ["updated_at", "2016-12-12 19:01:22.443025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5445) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.445583"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5445]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5445]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.453040"], ["updated_at", "2016-12-12 19:01:22.453040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.454016"], ["id", 3048]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5445], ["g5_updatable_hub_amenity_id", 3048]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.456331"], ["updated_at", "2016-12-12 19:01:22.456331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.457439"], ["id", 3049]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5445], ["g5_updatable_hub_amenity_id", 3049]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5445]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5445) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.461381"], ["id", 5445]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:22.465530"], ["updated_at", "2016-12-12 19:01:22.465530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5446) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.467207"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5446]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5446]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.473813"], ["updated_at", "2016-12-12 19:01:22.473813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.474845"], ["id", 3050]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5446], ["g5_updatable_hub_amenity_id", 3050]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.476953"], ["updated_at", "2016-12-12 19:01:22.476953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.477822"], ["id", 3051]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5446], ["g5_updatable_hub_amenity_id", 3051]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5446]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5446) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.481532"], ["id", 5446]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:22.485376"], ["updated_at", "2016-12-12 19:01:22.485376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5447) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.487548"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5447]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5447]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5447]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5447) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:01:22.497260"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.499584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5448]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5448]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5448) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:01:22.506202"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.508699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5449]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.513126"], ["updated_at", "2016-12-12 19:01:22.513126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.514179"], ["id", 3052]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5449], ["g5_updatable_hub_amenity_id", 3052]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.516344"], ["updated_at", "2016-12-12 19:01:22.516344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.517263"], ["id", 3053]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5449], ["g5_updatable_hub_amenity_id", 3053]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5449]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5449) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.520956"], ["id", 5449]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:01:22.523373"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.525501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5450]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5450], ["g5_updatable_hub_amenity_id", 3052]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5450], ["g5_updatable_hub_amenity_id", 3053]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5450]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5450) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.533943"], ["id", 5450]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:01:22.536603"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.542360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5451]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5451]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5451) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.550560"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.552916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5452]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.556735"], ["updated_at", "2016-12-12 19:01:22.556735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.557621"], ["id", 3054]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5452], ["g5_updatable_hub_amenity_id", 3054]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.559762"], ["updated_at", "2016-12-12 19:01:22.559762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.560650"], ["id", 3055]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5452], ["g5_updatable_hub_amenity_id", 3055]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5452]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5452) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.564462"], ["id", 5452]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.575456"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.578170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5453]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.582359"], ["updated_at", "2016-12-12 19:01:22.582359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.583293"], ["id", 3056]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5453], ["g5_updatable_hub_amenity_id", 3056]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.585521"], ["updated_at", "2016-12-12 19:01:22.585521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.586371"], ["id", 3057]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5453], ["g5_updatable_hub_amenity_id", 3057]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5453]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5453) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.589951"], ["id", 5453]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:01:22.598046"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:01:22.600330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.602754"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.604748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5454]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5454]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5454) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:01:22.611561"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.613710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5455]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5455]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5455) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:01:22.620149"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.622091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5456]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.625735"], ["updated_at", "2016-12-12 19:01:22.625735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.626658"], ["id", 3058]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5456], ["g5_updatable_hub_amenity_id", 3058]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.628931"], ["updated_at", "2016-12-12 19:01:22.628931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.629889"], ["id", 3059]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5456], ["g5_updatable_hub_amenity_id", 3059]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5456]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5456) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.633493"], ["id", 5456]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:01:22.636105"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.638094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5457]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5457], ["g5_updatable_hub_amenity_id", 3058]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5457], ["g5_updatable_hub_amenity_id", 3059]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5457]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5457) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.646380"], ["id", 5457]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:01:22.648844"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.650879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5458]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5458]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5458) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5456]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:01:22.663425"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:01:22.665097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.667360"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.669604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5459]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5459]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5459) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:01:22.676068"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.678053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5460]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5460]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5460) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:01:22.684643"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.686829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5461]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.690692"], ["updated_at", "2016-12-12 19:01:22.690692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.691704"], ["id", 3060]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5461], ["g5_updatable_hub_amenity_id", 3060]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.694225"], ["updated_at", "2016-12-12 19:01:22.694225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.695413"], ["id", 3061]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5461], ["g5_updatable_hub_amenity_id", 3061]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5461]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5461) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.699811"], ["id", 5461]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:01:22.707124"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.709290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5462]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5462], ["g5_updatable_hub_amenity_id", 3060]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5462], ["g5_updatable_hub_amenity_id", 3061]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5462]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5462) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.717565"], ["id", 5462]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:01:22.720118"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.722084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5463]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5463]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5463) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:01:22.738148"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:01:22.739960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.742157"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.744099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5464]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5464]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5464) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:01:22.751094"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.753420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5465]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5465]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5465) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:01:22.760435"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.762666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5466]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.766323"], ["updated_at", "2016-12-12 19:01:22.766323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.767243"], ["id", 3062]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5466], ["g5_updatable_hub_amenity_id", 3062]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.769706"], ["updated_at", "2016-12-12 19:01:22.769706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.770671"], ["id", 3063]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5466], ["g5_updatable_hub_amenity_id", 3063]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5466]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5466) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.774393"], ["id", 5466]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:01:22.776735"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.779253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5467]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5467], ["g5_updatable_hub_amenity_id", 3062]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5467], ["g5_updatable_hub_amenity_id", 3063]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5467]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5467) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.786990"], ["id", 5467]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:01:22.789450"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.791415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5468]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5468]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5468) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:01:22.802022"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:01:22.803760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.805923"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.807929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5469]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5469]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5469) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:01:22.815151"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.817231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5470]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5470]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5470) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:01:22.823842"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.825869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5471]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.829689"], ["updated_at", "2016-12-12 19:01:22.829689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.830723"], ["id", 3064]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5471], ["g5_updatable_hub_amenity_id", 3064]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.832912"], ["updated_at", "2016-12-12 19:01:22.832912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.833817"], ["id", 3065]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5471], ["g5_updatable_hub_amenity_id", 3065]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5471]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5471) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.837688"], ["id", 5471]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:01:22.840147"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.842507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5472]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5472], ["g5_updatable_hub_amenity_id", 3064]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5472], ["g5_updatable_hub_amenity_id", 3065]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5472]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5472) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.851349"], ["id", 5472]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:01:22.853998"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.856418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5473]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5473]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5473) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2123) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2123) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 19:01:22.873458"], ["id", 2123]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5469) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-12 19:01:22.879807"], ["id", 5469]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5469]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5469]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5469) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5473]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5473]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5472]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3424]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3425]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5472]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5471]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3422]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3423]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5471]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5470]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5470]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:01:22.901906"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:01:22.903685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:22.905897"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.907932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5474]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5474]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5474) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:01:22.914541"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.916508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5475]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5475]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5475) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:01:22.922798"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.924692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5476]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:22.928710"], ["updated_at", "2016-12-12 19:01:22.928710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:22.929664"], ["id", 3066]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5476], ["g5_updatable_hub_amenity_id", 3066]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:22.931885"], ["updated_at", "2016-12-12 19:01:22.931885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:22.932822"], ["id", 3067]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5476], ["g5_updatable_hub_amenity_id", 3067]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5476]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5476) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.936442"], ["id", 5476]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:01:22.938778"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.940988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5477]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5477], ["g5_updatable_hub_amenity_id", 3066]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5477], ["g5_updatable_hub_amenity_id", 3067]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5477]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5477) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:22.949251"], ["id", 5477]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:01:22.951659"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:22.953907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5478]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5478]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5478) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2124) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2124) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 19:01:22.964688"], ["id", 2124]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5478]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5478]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5477]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3428]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3429]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5477]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5476]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3426]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3427]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5476]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5475]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5475]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5474]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5474]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:01:22.995257"], ["updated_at", "2016-12-12 19:01:22.995257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2125]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-12 19:01:23.000042"], ["updated_at", "2016-12-12 19:01:23.000042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.5ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:01:23.018379"], ["updated_at", "2016-12-12 19:01:23.018379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:23.020246"], ["updated_at", "2016-12-12 19:01:23.020246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:23.053806"], ["updated_at", "2016-12-12 19:01:23.053806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2128) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2128) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:01:23.055205"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2128]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:23.060077"], ["updated_at", "2016-12-12 19:01:23.060077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2129) LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2129) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:01:23.061260"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2129]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:23.065696"], ["updated_at", "2016-12-12 19:01:23.065696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2130) LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2130) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:01:23.066928"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2130]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-12 19:01:23.072134"], ["updated_at", "2016-12-12 19:01:23.072134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2131) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2131) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:01:23.073358"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2131]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:01:23.078216"], ["updated_at", "2016-12-12 19:01:23.078216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2132) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2132) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-12 19:01:23.079896"], ["id", 2132]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2132]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:01:23.084167"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:01:23.085190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:01:23.087735"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:01:23.088757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:01:23.091868"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:01:23.092967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:01:23.095658"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:01:23.101454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:01:23.104620"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:01:23.105877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:01:23.109255"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:01:23.110298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-12 19:01:23.113004"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-12 19:01:23.114002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-12 19:01:23.117806"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-12 19:01:23.119595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-12 19:01:23.121767"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:23.123942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5480]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5480]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5480) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-12 19:01:23.130457"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:23.132470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5481]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5481]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5481) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-12 19:01:23.139156"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:23.141301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5482]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-12 19:01:23.144937"], ["updated_at", "2016-12-12 19:01:23.144937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-12 19:01:23.146095"], ["id", 3068]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5482], ["g5_updatable_hub_amenity_id", 3068]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-12 19:01:23.148562"], ["updated_at", "2016-12-12 19:01:23.148562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-12 19:01:23.149608"], ["id", 3069]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5482], ["g5_updatable_hub_amenity_id", 3069]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5482]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5482) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:23.153259"], ["id", 5482]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-12 19:01:23.155679"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:23.158096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5483]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5483], ["g5_updatable_hub_amenity_id", 3068]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5483], ["g5_updatable_hub_amenity_id", 3069]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5483]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5483) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-12 19:01:23.166273"], ["id", 5483]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-12 19:01:23.168490"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-12 19:01:23.170566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5484]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5484]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5484) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"client_uid"=>"http://my-client.com/clients/urn"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:01:23.200421"], ["updated_at", "2016-12-12 19:01:23.200421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:23.202447"], ["updated_at", "2016-12-12 19:01:23.202447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:23.204255"], ["updated_at", "2016-12-12 19:01:23.204255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:23.206650"], ["updated_at", "2016-12-12 19:01:23.206650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-12 19:01:23.215539"], ["updated_at", "2016-12-12 19:01:23.215539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:23.217417"], ["updated_at", "2016-12-12 19:01:23.217417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:23.219203"], ["updated_at", "2016-12-12 19:01:23.219203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-12 19:01:23.220910"], ["updated_at", "2016-12-12 19:01:23.220910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.1ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (23.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (19.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:35.884854"], ["updated_at", "2016-12-20 16:16:35.884854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (2.8ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (1.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:35.900580"], ["updated_at", "2016-12-20 16:16:35.900580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-20 16:16:35.920308"], ["updated_at", "2016-12-20 16:16:35.920308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:16:35.943242"], ["updated_at", "2016-12-20 16:16:35.943242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2145]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:35.969174"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:35.972190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5492]] G5Updatable::HubAmenity Load (0.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:35.986617"], ["updated_at", "2016-12-20 16:16:35.986617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:35.989161"], ["id", 3070]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5492], ["g5_updatable_hub_amenity_id", 3070]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:35.997060"], ["updated_at", "2016-12-20 16:16:35.997060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:35.998094"], ["id", 3071]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5492], ["g5_updatable_hub_amenity_id", 3071]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5492]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5492) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.004634"], ["id", 5492]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:16:36.014375"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:16:36.016548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.019368"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.021583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5493]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5493]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5493) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:16:36.029102"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.031534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5494]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5494]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5494) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:16:36.039195"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.042035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5495]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.053724"], ["updated_at", "2016-12-20 16:16:36.053724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.055058"], ["id", 3072]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5495], ["g5_updatable_hub_amenity_id", 3072]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.057590"], ["updated_at", "2016-12-20 16:16:36.057590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.058798"], ["id", 3073]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5495], ["g5_updatable_hub_amenity_id", 3073]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5495]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5495) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.062985"], ["id", 5495]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:16:36.065972"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.068492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5496]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5496], ["g5_updatable_hub_amenity_id", 3072]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5496], ["g5_updatable_hub_amenity_id", 3073]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5496]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5496) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.079480"], ["id", 5496]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:16:36.082340"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.084835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5497]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5497]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5497) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5495]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:16:36.101228"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:16:36.103304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.105917"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.108352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5498]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5498]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5498) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:16:36.116006"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.118266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5499]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5499]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5499) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:16:36.125716"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.128467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5500]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.133330"], ["updated_at", "2016-12-20 16:16:36.133330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.134562"], ["id", 3074]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5500], ["g5_updatable_hub_amenity_id", 3074]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.137129"], ["updated_at", "2016-12-20 16:16:36.137129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.138054"], ["id", 3075]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5500], ["g5_updatable_hub_amenity_id", 3075]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5500]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5500) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.142505"], ["id", 5500]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:16:36.145457"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.148678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5501]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5501], ["g5_updatable_hub_amenity_id", 3074]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5501], ["g5_updatable_hub_amenity_id", 3075]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5501]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5501) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.161479"], ["id", 5501]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:16:36.166090"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.169506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5502]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5502]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5502) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:16:36.190796"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:16:36.193396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.197464"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.200960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5503]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5503]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.5ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5503) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:16:36.212393"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.215612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5504]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5504]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5504) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:16:36.226533"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.229929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5505]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.237197"], ["updated_at", "2016-12-20 16:16:36.237197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.238461"], ["id", 3076]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5505], ["g5_updatable_hub_amenity_id", 3076]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.241111"], ["updated_at", "2016-12-20 16:16:36.241111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.242743"], ["id", 3077]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5505], ["g5_updatable_hub_amenity_id", 3077]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5505]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5505) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.247746"], ["id", 5505]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:16:36.251569"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.254598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5506]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5506], ["g5_updatable_hub_amenity_id", 3076]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5506], ["g5_updatable_hub_amenity_id", 3077]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5506]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5506) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.265483"], ["id", 5506]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:16:36.281865"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.284200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5507]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5507]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5507) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:16:36.295300"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:16:36.297104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.299492"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.301707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5508]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5508]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5508) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:16:36.308091"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.310290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5509]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5509]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5509) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:16:36.316471"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.318543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5510]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.322258"], ["updated_at", "2016-12-20 16:16:36.322258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.323196"], ["id", 3078]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5510], ["g5_updatable_hub_amenity_id", 3078]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.325699"], ["updated_at", "2016-12-20 16:16:36.325699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.326611"], ["id", 3079]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5510], ["g5_updatable_hub_amenity_id", 3079]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5510]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5510) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.330167"], ["id", 5510]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:16:36.332647"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.335087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5511]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5511], ["g5_updatable_hub_amenity_id", 3078]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5511], ["g5_updatable_hub_amenity_id", 3079]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5511]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5511) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.343370"], ["id", 5511]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:16:36.345801"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.347949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5512]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5512]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5512) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2149) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2149) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-20 16:16:36.366518"], ["id", 2149]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5508) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-20 16:16:36.372572"], ["id", 5508]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5508]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5508]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5508) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5512]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5512]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5511]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3450]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3451]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5511]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5510]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3448]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3449]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5510]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5509]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5509]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:16:36.392833"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:16:36.394698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.396925"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.399023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5513]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5513]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5513) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:16:36.405793"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.407855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5514]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5514]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5514) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:16:36.414576"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.416621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5515]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.420561"], ["updated_at", "2016-12-20 16:16:36.420561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.421482"], ["id", 3080]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5515], ["g5_updatable_hub_amenity_id", 3080]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.424051"], ["updated_at", "2016-12-20 16:16:36.424051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.425375"], ["id", 3081]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5515], ["g5_updatable_hub_amenity_id", 3081]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5515]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5515) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.429370"], ["id", 5515]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:16:36.432104"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.434724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5516]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5516], ["g5_updatable_hub_amenity_id", 3080]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5516], ["g5_updatable_hub_amenity_id", 3081]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5516]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5516) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.447913"], ["id", 5516]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:16:36.450838"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.452960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5517]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5517]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5517) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2150) LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2150) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-20 16:16:36.472526"], ["id", 2150]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5517]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5517]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5516]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3454]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3455]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5516]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5515]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3452]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3453]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5515]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5514]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5514]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5513]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5513]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:16:36.503020"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:16:36.504258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:16:36.507849"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:16:36.508988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.5ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:16:36.512462"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:16:36.515479"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:16:36.522589"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:16:36.524423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:16:36.528493"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:16:36.529873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:16:36.534339"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:16:36.536109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:16:36.540246"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:16:36.542118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:36.546973"], ["updated_at", "2016-12-20 16:16:36.546973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2158) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2158) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:16:36.548623"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2158]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:36.554634"], ["updated_at", "2016-12-20 16:16:36.554634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2159) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2159) LIMIT 1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:16:36.556198"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2159]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:36.562870"], ["updated_at", "2016-12-20 16:16:36.562870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2160) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2160) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:16:36.564632"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2160]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:36.571293"], ["updated_at", "2016-12-20 16:16:36.571293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2161) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2161) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:16:36.573258"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2161]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 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", "2016-12-20 16:16:36.579938"], ["updated_at", "2016-12-20 16:16:36.579938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2162) LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2162) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-20 16:16:36.582405"], ["id", 2162]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2162]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:16:36.589458"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:16:36.591388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.594471"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.596993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5518]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5518]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5518) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.5ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:16:36.605548"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.608300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5519]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5519]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5519) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:16:36.616474"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.619144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5520]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.624092"], ["updated_at", "2016-12-20 16:16:36.624092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.625852"], ["id", 3082]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5520], ["g5_updatable_hub_amenity_id", 3082]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.629124"], ["updated_at", "2016-12-20 16:16:36.629124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.630649"], ["id", 3083]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5520], ["g5_updatable_hub_amenity_id", 3083]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5520]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5520) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.635576"], ["id", 5520]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:16:36.638796"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.641357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5521]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5521], ["g5_updatable_hub_amenity_id", 3082]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5521], ["g5_updatable_hub_amenity_id", 3083]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5521]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5521) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.652014"], ["id", 5521]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:16:36.655595"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.658134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5522]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5522]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5522) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:16:36.673582"], ["updated_at", "2016-12-20 16:16:36.673582"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:36.677617"], ["updated_at", "2016-12-20 16:16:36.677617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:36.680809"], ["updated_at", "2016-12-20 16:16:36.680809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:36.683065"], ["updated_at", "2016-12-20 16:16:36.683065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.09ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:16:36.698995"], ["updated_at", "2016-12-20 16:16:36.698995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:36.701270"], ["updated_at", "2016-12-20 16:16:36.701270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:36.703627"], ["updated_at", "2016-12-20 16:16:36.703627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:36.705720"], ["updated_at", "2016-12-20 16:16:36.705720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.713693"], ["updated_at", "2016-12-20 16:16:36.713693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.715695"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.718229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5530]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.722696"], ["updated_at", "2016-12-20 16:16:36.722696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.723849"], ["id", 3084]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5530], ["g5_updatable_hub_amenity_id", 3084]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.727094"], ["updated_at", "2016-12-20 16:16:36.727094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.728234"], ["id", 3085]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5530], ["g5_updatable_hub_amenity_id", 3085]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5530]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5530) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.733819"], ["id", 5530]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5529]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5529]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.745823"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.748346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5531]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.753140"], ["updated_at", "2016-12-20 16:16:36.753140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.754420"], ["id", 3086]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5531], ["g5_updatable_hub_amenity_id", 3086]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.757317"], ["updated_at", "2016-12-20 16:16:36.757317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.758938"], ["id", 3087]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5531], ["g5_updatable_hub_amenity_id", 3087]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5531]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5531) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.763323"], ["id", 5531]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.770026"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.772540"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5532]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.780540"], ["updated_at", "2016-12-20 16:16:36.780540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.781869"], ["id", 3088]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5532], ["g5_updatable_hub_amenity_id", 3088]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.784700"], ["updated_at", "2016-12-20 16:16:36.784700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.786275"], ["id", 3089]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5532], ["g5_updatable_hub_amenity_id", 3089]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5532]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5532) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.790854"], ["id", 5532]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.796377"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.798704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5533]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.803658"], ["updated_at", "2016-12-20 16:16:36.803658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.804873"], ["id", 3090]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5533], ["g5_updatable_hub_amenity_id", 3090]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.807726"], ["updated_at", "2016-12-20 16:16:36.807726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.809044"], ["id", 3091]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5533], ["g5_updatable_hub_amenity_id", 3091]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5533]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5533) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.813599"], ["id", 5533]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.817871"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.820388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5534]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.825171"], ["updated_at", "2016-12-20 16:16:36.825171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.826541"], ["id", 3092]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5534], ["g5_updatable_hub_amenity_id", 3092]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.829469"], ["updated_at", "2016-12-20 16:16:36.829469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1[0m  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.830769"], ["id", 3093]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5534], ["g5_updatable_hub_amenity_id", 3093]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5534]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5534) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.835298"], ["id", 5534]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5534]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5534]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.842565"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.844916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5535]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.849063"], ["updated_at", "2016-12-20 16:16:36.849063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.850399"], ["id", 3094]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5535], ["g5_updatable_hub_amenity_id", 3094]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.853653"], ["updated_at", "2016-12-20 16:16:36.853653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.854771"], ["id", 3095]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5535], ["g5_updatable_hub_amenity_id", 3095]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5535]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5535) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.859041"], ["id", 5535]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.863966"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.866227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5536]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.870509"], ["updated_at", "2016-12-20 16:16:36.870509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.871703"], ["id", 3096]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5536], ["g5_updatable_hub_amenity_id", 3096]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.874333"], ["updated_at", "2016-12-20 16:16:36.874333"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.875864"], ["id", 3097]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5536], ["g5_updatable_hub_amenity_id", 3097]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5536]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5536) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.881749"], ["id", 5536]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.887403"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.889966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5537]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.894187"], ["updated_at", "2016-12-20 16:16:36.894187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.895307"], ["id", 3098]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5537], ["g5_updatable_hub_amenity_id", 3098]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.898210"], ["updated_at", "2016-12-20 16:16:36.898210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.899234"], ["id", 3099]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5537], ["g5_updatable_hub_amenity_id", 3099]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5537]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5537) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.903742"], ["id", 5537]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.909326"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.911745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5538]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.916258"], ["updated_at", "2016-12-20 16:16:36.916258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.917462"], ["id", 3100]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5538], ["g5_updatable_hub_amenity_id", 3100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.920335"], ["updated_at", "2016-12-20 16:16:36.920335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.921492"], ["id", 3101]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5538], ["g5_updatable_hub_amenity_id", 3101]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5538]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5538) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.926354"], ["id", 5538]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.932194"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.934879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5539]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.939989"], ["updated_at", "2016-12-20 16:16:36.939989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.941386"], ["id", 3102]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5539], ["g5_updatable_hub_amenity_id", 3102]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.944301"], ["updated_at", "2016-12-20 16:16:36.944301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.945393"], ["id", 3103]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5539], ["g5_updatable_hub_amenity_id", 3103]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5539]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5539) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.949888"], ["id", 5539]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:16:36.953628"], ["updated_at", "2016-12-20 16:16:36.953628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:36.955626"], ["updated_at", "2016-12-20 16:16:36.955626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2166]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5540]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.959647"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.962088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5541]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.970883"], ["updated_at", "2016-12-20 16:16:36.970883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.972042"], ["id", 3104]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5541], ["g5_updatable_hub_amenity_id", 3104]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.974648"], ["updated_at", "2016-12-20 16:16:36.974648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.976142"], ["id", 3105]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5541], ["g5_updatable_hub_amenity_id", 3105]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5541]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5541) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:36.980798"], ["id", 5541]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:36.986119"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:36.988713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5542]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:36.993468"], ["updated_at", "2016-12-20 16:16:36.993468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:36.994660"], ["id", 3106]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5542], ["g5_updatable_hub_amenity_id", 3106]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:36.997248"], ["updated_at", "2016-12-20 16:16:36.997248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:36.998338"], ["id", 3107]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5542], ["g5_updatable_hub_amenity_id", 3107]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5542]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5542) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.003266"], ["id", 5542]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.008544"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.011163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5543]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.015674"], ["updated_at", "2016-12-20 16:16:37.015674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.016827"], ["id", 3108]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5543], ["g5_updatable_hub_amenity_id", 3108]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.019744"], ["updated_at", "2016-12-20 16:16:37.019744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.020962"], ["id", 3109]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5543], ["g5_updatable_hub_amenity_id", 3109]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5543]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5543) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.025750"], ["id", 5543]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.033590"], ["updated_at", "2016-12-20 16:16:37.033590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-20 16:16:37.039703"], ["updated_at", "2016-12-20 16:16:37.039703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.043534"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.045830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5546]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.050203"], ["updated_at", "2016-12-20 16:16:37.050203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.051623"], ["id", 3110]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5546], ["g5_updatable_hub_amenity_id", 3110]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.054455"], ["updated_at", "2016-12-20 16:16:37.054455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.055548"], ["id", 3111]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5546], ["g5_updatable_hub_amenity_id", 3111]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5546]]  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5546) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.060124"], ["id", 5546]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5544]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5544]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.067778"], ["updated_at", "2016-12-20 16:16:37.067778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.069721"], ["updated_at", "2016-12-20 16:16:37.069721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5547], ["g5_updatable_hub_amenity_id", 3112]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5547) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.072798"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5547]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5547]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.082072"], ["id", 3112]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5547], ["g5_updatable_hub_amenity_id", 3112]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.085689"], ["updated_at", "2016-12-20 16:16:37.085689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.086917"], ["id", 3113]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5547], ["g5_updatable_hub_amenity_id", 3113]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5547]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.7ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5547) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.092137"], ["id", 5547]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.097846"], ["updated_at", "2016-12-20 16:16:37.097846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.099683"], ["updated_at", "2016-12-20 16:16:37.099683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5548], ["g5_updatable_hub_amenity_id", 3114]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5548) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.103016"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5548]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5548]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.110721"], ["updated_at", "2016-12-20 16:16:37.110721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.111872"], ["id", 3115]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5548], ["g5_updatable_hub_amenity_id", 3115]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.114448"], ["updated_at", "2016-12-20 16:16:37.114448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.115582"], ["id", 3116]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5548], ["g5_updatable_hub_amenity_id", 3116]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5548]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5548) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.119890"], ["id", 5548]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.124545"], ["updated_at", "2016-12-20 16:16:37.124545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.126496"], ["updated_at", "2016-12-20 16:16:37.126496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5549], ["g5_updatable_hub_amenity_id", 3117]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5549) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.129458"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5549]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5549]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.137765"], ["updated_at", "2016-12-20 16:16:37.137765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.139009"], ["id", 3118]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5549], ["g5_updatable_hub_amenity_id", 3118]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.142076"], ["updated_at", "2016-12-20 16:16:37.142076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.143313"], ["id", 3119]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5549], ["g5_updatable_hub_amenity_id", 3119]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5549]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5549) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.147645"], ["id", 5549]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5549]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.154146"], ["updated_at", "2016-12-20 16:16:37.154146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.156306"], ["updated_at", "2016-12-20 16:16:37.156306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5550], ["g5_updatable_hub_amenity_id", 3120]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5550) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.159733"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5550]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5550]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.166872"], ["updated_at", "2016-12-20 16:16:37.166872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.167982"], ["id", 3121]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5550], ["g5_updatable_hub_amenity_id", 3121]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.170796"], ["updated_at", "2016-12-20 16:16:37.170796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.171910"], ["id", 3122]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5550], ["g5_updatable_hub_amenity_id", 3122]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5550]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5550) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.176518"], ["id", 5550]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.182648"], ["updated_at", "2016-12-20 16:16:37.182648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.184389"], ["updated_at", "2016-12-20 16:16:37.184389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5551], ["g5_updatable_hub_amenity_id", 3123]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5551) LIMIT 1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.187701"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5551]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5551]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.199891"], ["updated_at", "2016-12-20 16:16:37.199891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.201252"], ["id", 3124]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5551], ["g5_updatable_hub_amenity_id", 3124]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.204326"], ["updated_at", "2016-12-20 16:16:37.204326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.205412"], ["id", 3125]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5551], ["g5_updatable_hub_amenity_id", 3125]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5551]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5551) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.209901"], ["id", 5551]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:16:37.214725"], ["updated_at", "2016-12-20 16:16:37.214725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.216886"], ["updated_at", "2016-12-20 16:16:37.216886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2167]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5552]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.221152"], ["updated_at", "2016-12-20 16:16:37.221152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.222902"], ["updated_at", "2016-12-20 16:16:37.222902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5553], ["g5_updatable_hub_amenity_id", 3126]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5553) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.226301"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5553]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5553]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.234258"], ["updated_at", "2016-12-20 16:16:37.234258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.235728"], ["id", 3127]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5553], ["g5_updatable_hub_amenity_id", 3127]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.238788"], ["updated_at", "2016-12-20 16:16:37.238788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.239905"], ["id", 3128]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5553], ["g5_updatable_hub_amenity_id", 3128]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5553]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5553) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.244726"], ["id", 5553]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.250443"], ["updated_at", "2016-12-20 16:16:37.250443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.252489"], ["updated_at", "2016-12-20 16:16:37.252489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5554], ["g5_updatable_hub_amenity_id", 3129]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5554) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.256537"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5554]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5554]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.264461"], ["updated_at", "2016-12-20 16:16:37.264461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.265579"], ["id", 3130]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5554], ["g5_updatable_hub_amenity_id", 3130]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.268232"], ["id", 3129]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5554], ["g5_updatable_hub_amenity_id", 3129]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5554]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5554) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.272316"], ["id", 5554]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.278692"], ["updated_at", "2016-12-20 16:16:37.278692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.281165"], ["updated_at", "2016-12-20 16:16:37.281165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5555], ["g5_updatable_hub_amenity_id", 3131]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5555) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.284828"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5555]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5555]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.294406"], ["updated_at", "2016-12-20 16:16:37.294406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.295756"], ["id", 3132]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5555], ["g5_updatable_hub_amenity_id", 3132]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.298956"], ["updated_at", "2016-12-20 16:16:37.298956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.300233"], ["id", 3133]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5555], ["g5_updatable_hub_amenity_id", 3133]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5555]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5555) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.305980"], ["id", 5555]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.313136"], ["updated_at", "2016-12-20 16:16:37.313136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.315328"], ["updated_at", "2016-12-20 16:16:37.315328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5556], ["g5_updatable_hub_amenity_id", 3134]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5556) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.319316"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5556]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5556]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.327433"], ["updated_at", "2016-12-20 16:16:37.327433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.328690"], ["id", 3135]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5556], ["g5_updatable_hub_amenity_id", 3135]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.331659"], ["updated_at", "2016-12-20 16:16:37.331659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.333110"], ["id", 3136]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5556], ["g5_updatable_hub_amenity_id", 3136]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5556]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5556) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.337954"], ["id", 5556]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.343984"], ["updated_at", "2016-12-20 16:16:37.343984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.345729"], ["updated_at", "2016-12-20 16:16:37.345729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5557], ["g5_updatable_hub_amenity_id", 3137]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5557) LIMIT 1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.348543"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5557]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5557]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.355847"], ["updated_at", "2016-12-20 16:16:37.355847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.356960"], ["id", 3138]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5557], ["g5_updatable_hub_amenity_id", 3138]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.360000"], ["updated_at", "2016-12-20 16:16:37.360000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.361106"], ["id", 3139]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5557], ["g5_updatable_hub_amenity_id", 3139]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5557]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5557) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.365328"], ["id", 5557]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:16:37.368810"], ["updated_at", "2016-12-20 16:16:37.368810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.370808"], ["updated_at", "2016-12-20 16:16:37.370808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2168]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5558]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (8.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-20 15:16:37.373465"], ["client_urn", "client_uid"], ["created_at", "2016-12-20 16:16:37.376574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5559) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.392753"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5559]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5559]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.400839"], ["updated_at", "2016-12-20 16:16:37.400839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.402222"], ["id", 3140]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5559], ["g5_updatable_hub_amenity_id", 3140]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.405330"], ["updated_at", "2016-12-20 16:16:37.405330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.406452"], ["id", 3141]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5559], ["g5_updatable_hub_amenity_id", 3141]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5559]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5559) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.411120"], ["id", 5559]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5559]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-20 15:16:37.415749"], ["client_urn", "client_uid"], ["created_at", "2016-12-20 16:16:37.418893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5560) LIMIT 1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.427220"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5560]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5560]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.439823"], ["updated_at", "2016-12-20 16:16:37.439823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.440992"], ["id", 3142]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5560], ["g5_updatable_hub_amenity_id", 3142]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.444175"], ["updated_at", "2016-12-20 16:16:37.444175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.445270"], ["id", 3143]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5560], ["g5_updatable_hub_amenity_id", 3143]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5560]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5560) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.449428"], ["id", 5560]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:16:37.453299"], ["updated_at", "2016-12-20 16:16:37.453299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (1.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.455470"], ["updated_at", "2016-12-20 16:16:37.455470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2169]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5561]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.461289"], ["updated_at", "2016-12-20 16:16:37.461289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5562) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.463244"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5562]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5562]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.471089"], ["updated_at", "2016-12-20 16:16:37.471089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.472826"], ["id", 3144]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5562], ["g5_updatable_hub_amenity_id", 3144]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.476097"], ["updated_at", "2016-12-20 16:16:37.476097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.477241"], ["id", 3145]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5562], ["g5_updatable_hub_amenity_id", 3145]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5562]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5562) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.481948"], ["id", 5562]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.486762"], ["updated_at", "2016-12-20 16:16:37.486762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5563) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.490945"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5563]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5563]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5563]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5563) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:16:37.501539"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.504065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5564]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5564]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5564) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:16:37.512108"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.514458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5565]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.519194"], ["updated_at", "2016-12-20 16:16:37.519194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.520589"], ["id", 3146]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5565], ["g5_updatable_hub_amenity_id", 3146]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.523506"], ["updated_at", "2016-12-20 16:16:37.523506"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.524974"], ["id", 3147]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5565], ["g5_updatable_hub_amenity_id", 3147]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5565]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5565) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.529320"], ["id", 5565]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:16:37.532573"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.534952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5566]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5566], ["g5_updatable_hub_amenity_id", 3146]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5566], ["g5_updatable_hub_amenity_id", 3147]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5566]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5566) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.544876"], ["id", 5566]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:16:37.547451"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.549583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5567]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5567]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5567) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.559088"], ["updated_at", "2016-12-20 16:16:37.559088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5568) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.561127"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5568]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5568]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.568283"], ["updated_at", "2016-12-20 16:16:37.568283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.569532"], ["id", 3148]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5568], ["g5_updatable_hub_amenity_id", 3148]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.572330"], ["updated_at", "2016-12-20 16:16:37.572330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.573415"], ["id", 3149]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5568], ["g5_updatable_hub_amenity_id", 3149]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5568]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5568) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.578013"], ["id", 5568]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.582185"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.584551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5569]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.589434"], ["updated_at", "2016-12-20 16:16:37.589434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.590617"], ["id", 3150]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5569], ["g5_updatable_hub_amenity_id", 3150]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.593735"], ["updated_at", "2016-12-20 16:16:37.593735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.594821"], ["id", 3151]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5569], ["g5_updatable_hub_amenity_id", 3151]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5569]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5569) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.599057"], ["id", 5569]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:16:37.614004"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:16:37.616488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5570]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:16:37.620687"], ["updated_at", "2016-12-20 16:16:37.620687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:16:37.621713"], ["id", 3152]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5570], ["g5_updatable_hub_amenity_id", 3152]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:16:37.624046"], ["updated_at", "2016-12-20 16:16:37.624046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:16:37.625315"], ["id", 3153]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5570], ["g5_updatable_hub_amenity_id", 3153]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5570]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5570) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:16:37.629224"], ["id", 5570]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.655464"], ["updated_at", "2016-12-20 16:16:37.655464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.32ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.664061"], ["updated_at", "2016-12-20 16:16:37.664061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.29ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.688960"], ["updated_at", "2016-12-20 16:16:37.688960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.690521"], ["updated_at", "2016-12-20 16:16:37.690521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.692604"], ["updated_at", "2016-12-20 16:16:37.692604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5573], ["g5_updatable_hub_amenity_id", 3154]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5573], ["g5_updatable_hub_amenity_id", 3155]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5573]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5573) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-11|amenity-12|"], ["updated_at", "2016-12-20 16:16:37.697399"], ["id", 5573]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5573]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5573]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.700766"], ["updated_at", "2016-12-20 16:16:37.700766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.702008"], ["updated_at", "2016-12-20 16:16:37.702008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.703091"], ["updated_at", "2016-12-20 16:16:37.703091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5574], ["g5_updatable_hub_amenity_id", 3156]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5574], ["g5_updatable_hub_amenity_id", 3157]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5574]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5574) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-13|amenity-14|"], ["updated_at", "2016-12-20 16:16:37.708986"], ["id", 5574]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5574]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5574]] G5Updatable::HubAmenitiesLocation Load (0.2ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5574]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5574]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5574]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-20 16:16:37.730433"], ["updated_at", "2016-12-20 16:16:37.730433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.6ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.763963"], ["updated_at", "2016-12-20 16:16:37.763963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.766036"], ["updated_at", "2016-12-20 16:16:37.766036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.770201"], ["updated_at", "2016-12-20 16:16:37.770201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.772204"], ["updated_at", "2016-12-20 16:16:37.772204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.776019"], ["updated_at", "2016-12-20 16:16:37.776019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.777871"], ["updated_at", "2016-12-20 16:16:37.777871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.780869"], ["updated_at", "2016-12-20 16:16:37.780869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.782641"], ["updated_at", "2016-12-20 16:16:37.782641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.786369"], ["updated_at", "2016-12-20 16:16:37.786369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.788348"], ["updated_at", "2016-12-20 16:16:37.788348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.794320"], ["updated_at", "2016-12-20 16:16:37.794320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.797368"], ["updated_at", "2016-12-20 16:16:37.797368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.799022"], ["updated_at", "2016-12-20 16:16:37.799022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.802447"], ["updated_at", "2016-12-20 16:16:37.802447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.805405"], ["updated_at", "2016-12-20 16:16:37.805405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.806997"], ["updated_at", "2016-12-20 16:16:37.806997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.810598"], ["updated_at", "2016-12-20 16:16:37.810598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.813282"], ["updated_at", "2016-12-20 16:16:37.813282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.814839"], ["updated_at", "2016-12-20 16:16:37.814839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (2.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.817674"], ["updated_at", "2016-12-20 16:16:37.817674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.822809"], ["updated_at", "2016-12-20 16:16:37.822809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.824405"], ["updated_at", "2016-12-20 16:16:37.824405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.827552"], ["updated_at", "2016-12-20 16:16:37.827552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.830475"], ["updated_at", "2016-12-20 16:16:37.830475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.832230"], ["updated_at", "2016-12-20 16:16:37.832230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-20 16:16:37.834819"], ["updated_at", "2016-12-20 16:16:37.834819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.837523"], ["updated_at", "2016-12-20 16:16:37.837523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.840311"], ["updated_at", "2016-12-20 16:16:37.840311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.842007"], ["updated_at", "2016-12-20 16:16:37.842007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.846139"], ["updated_at", "2016-12-20 16:16:37.846139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.848777"], ["updated_at", "2016-12-20 16:16:37.848777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.850291"], ["updated_at", "2016-12-20 16:16:37.850291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.853813"], ["updated_at", "2016-12-20 16:16:37.853813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.856571"], ["updated_at", "2016-12-20 16:16:37.856571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.858255"], ["updated_at", "2016-12-20 16:16:37.858255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.861512"], ["updated_at", "2016-12-20 16:16:37.861512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.864147"], ["updated_at", "2016-12-20 16:16:37.864147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.865677"], ["updated_at", "2016-12-20 16:16:37.865677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.868855"], ["updated_at", "2016-12-20 16:16:37.868855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.871738"], ["updated_at", "2016-12-20 16:16:37.871738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.873295"], ["updated_at", "2016-12-20 16:16:37.873295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.876663"], ["updated_at", "2016-12-20 16:16:37.876663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.879394"], ["updated_at", "2016-12-20 16:16:37.879394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.881036"], ["updated_at", "2016-12-20 16:16:37.881036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.884222"], ["updated_at", "2016-12-20 16:16:37.884222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.887294"], ["updated_at", "2016-12-20 16:16:37.887294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.889266"], ["updated_at", "2016-12-20 16:16:37.889266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:16:37.893576"], ["updated_at", "2016-12-20 16:16:37.893576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.896408"], ["updated_at", "2016-12-20 16:16:37.896408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:16:37.898226"], ["updated_at", "2016-12-20 16:16:37.898226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.901654"], ["updated_at", "2016-12-20 16:16:37.901654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.904447"], ["updated_at", "2016-12-20 16:16:37.904447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.907153"], ["updated_at", "2016-12-20 16:16:37.907153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:16:37.918612"], ["updated_at", "2016-12-20 16:16:37.918612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.920633"], ["updated_at", "2016-12-20 16:16:37.920633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-20 16:16:37.924258"], ["updated_at", "2016-12-20 16:16:37.924258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.926228"], ["updated_at", "2016-12-20 16:16:37.926228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:16:37.930683"], ["updated_at", "2016-12-20 16:16:37.930683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5618]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.962799"], ["updated_at", "2016-12-20 16:16:37.962799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-20 16:16:37.964470"], ["updated_at", "2016-12-20 16:16:37.964470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.965640"], ["updated_at", "2016-12-20 16:16:37.965640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.966583"], ["updated_at", "2016-12-20 16:16:37.966583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.967439"], ["updated_at", "2016-12-20 16:16:37.967439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5619], ["g5_updatable_hub_amenity_id", 3158]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5619], ["g5_updatable_hub_amenity_id", 3159]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.7ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:16:37.976526"], ["updated_at", "2016-12-20 16:16:37.976526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-20 16:16:37.978211"], ["updated_at", "2016-12-20 16:16:37.978211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.979528"], ["updated_at", "2016-12-20 16:16:37.979528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.980624"], ["updated_at", "2016-12-20 16:16:37.980624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-20 16:16:37.981741"], ["updated_at", "2016-12-20 16:16:37.981741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5620], ["g5_updatable_hub_amenity_id", 3161]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5620], ["g5_updatable_hub_amenity_id", 3162]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:52.994202"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.005955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5621]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.027897"], ["updated_at", "2016-12-20 16:18:53.027897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.030290"], ["id", 3164]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5621], ["g5_updatable_hub_amenity_id", 3164]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.037807"], ["updated_at", "2016-12-20 16:18:53.037807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.038963"], ["id", 3165]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5621], ["g5_updatable_hub_amenity_id", 3165]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5621]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5621) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.045992"], ["id", 5621]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.053755"], ["updated_at", "2016-12-20 16:18:53.053755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.055718"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.058094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5623]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.062026"], ["updated_at", "2016-12-20 16:18:53.062026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.063033"], ["id", 3166]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5623], ["g5_updatable_hub_amenity_id", 3166]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.065660"], ["updated_at", "2016-12-20 16:18:53.065660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.066650"], ["id", 3167]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5623], ["g5_updatable_hub_amenity_id", 3167]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5623]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5623) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.070525"], ["id", 5623]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5622]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5622]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-20 15:18:53.076622"], ["client_urn", "client_uid"], ["created_at", "2016-12-20 16:18:53.079389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5624) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.087145"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5624]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5624]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.094402"], ["updated_at", "2016-12-20 16:18:53.094402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.095475"], ["id", 3168]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5624], ["g5_updatable_hub_amenity_id", 3168]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.098123"], ["updated_at", "2016-12-20 16:18:53.098123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.099112"], ["id", 3169]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5624], ["g5_updatable_hub_amenity_id", 3169]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5624]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5624) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.103254"], ["id", 5624]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5624]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2016-12-20 15:18:53.107789"], ["client_urn", "client_uid"], ["created_at", "2016-12-20 16:18:53.110493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5625) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.117444"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5625]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5625]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.124861"], ["updated_at", "2016-12-20 16:18:53.124861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.125903"], ["id", 3170]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5625], ["g5_updatable_hub_amenity_id", 3170]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.128166"], ["updated_at", "2016-12-20 16:18:53.128166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.129107"], ["id", 3171]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5625], ["g5_updatable_hub_amenity_id", 3171]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.3ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5625]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5625) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.133433"], ["id", 5625]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-20 16:18:53.140573"], ["updated_at", "2016-12-20 16:18:53.140573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:53.142611"], ["updated_at", "2016-12-20 16:18:53.142611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2187]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5626]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.148280"], ["updated_at", "2016-12-20 16:18:53.148280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2016-12-20 16:18:53.154184"], ["updated_at", "2016-12-20 16:18:53.154184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.157877"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.159869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5629]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.170756"], ["updated_at", "2016-12-20 16:18:53.170756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.171743"], ["id", 3172]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5629], ["g5_updatable_hub_amenity_id", 3172]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.174254"], ["updated_at", "2016-12-20 16:18:53.174254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.175151"], ["id", 3173]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5629], ["g5_updatable_hub_amenity_id", 3173]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5629]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5629) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.178980"], ["id", 5629]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5627]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5627]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:53.186571"], ["updated_at", "2016-12-20 16:18:53.186571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5630) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.188395"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5630]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5630]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.195724"], ["updated_at", "2016-12-20 16:18:53.195724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.196702"], ["id", 3174]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5630], ["g5_updatable_hub_amenity_id", 3174]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.199229"], ["updated_at", "2016-12-20 16:18:53.199229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.200179"], ["id", 3175]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5630], ["g5_updatable_hub_amenity_id", 3175]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5630]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5630) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.204125"], ["id", 5630]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:53.217141"], ["updated_at", "2016-12-20 16:18:53.217141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5631) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.220411"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5631]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5631]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5631]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5631) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:18:53.231660"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.234485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5632]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5632]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5632) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:18:53.241473"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.244069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5633]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.248296"], ["updated_at", "2016-12-20 16:18:53.248296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.249388"], ["id", 3176]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5633], ["g5_updatable_hub_amenity_id", 3176]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.251535"], ["updated_at", "2016-12-20 16:18:53.251535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.252440"], ["id", 3177]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5633], ["g5_updatable_hub_amenity_id", 3177]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5633]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5633) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.256332"], ["id", 5633]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:18:53.259067"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.261188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5634]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5634], ["g5_updatable_hub_amenity_id", 3176]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5634], ["g5_updatable_hub_amenity_id", 3177]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5634]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5634) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.269296"], ["id", 5634]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:18:53.271658"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.273903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5635]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5635]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5635) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:53.282097"], ["updated_at", "2016-12-20 16:18:53.282097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5636) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.283973"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5636]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5636]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.290445"], ["updated_at", "2016-12-20 16:18:53.290445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.291447"], ["id", 3178]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5636], ["g5_updatable_hub_amenity_id", 3178]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.293582"], ["updated_at", "2016-12-20 16:18:53.293582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.294464"], ["id", 3179]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5636], ["g5_updatable_hub_amenity_id", 3179]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5636]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5636) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.298132"], ["id", 5636]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.302063"], ["updated_at", "2016-12-20 16:18:53.302063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2016-12-20 16:18:53.303606"], ["updated_at", "2016-12-20 16:18:53.303606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5637], ["g5_updatable_hub_amenity_id", 3180]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5637) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.306477"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5637]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5637]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.313059"], ["id", 3180]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5637], ["g5_updatable_hub_amenity_id", 3180]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.315773"], ["updated_at", "2016-12-20 16:18:53.315773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.316685"], ["id", 3181]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5637], ["g5_updatable_hub_amenity_id", 3181]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5637]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5637) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.320389"], ["id", 5637]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5637]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.326026"], ["updated_at", "2016-12-20 16:18:53.326026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2016-12-20 16:18:53.327463"], ["updated_at", "2016-12-20 16:18:53.327463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5638], ["g5_updatable_hub_amenity_id", 3182]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5638) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.330000"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5638]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5638]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.337475"], ["updated_at", "2016-12-20 16:18:53.337475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.338483"], ["id", 3183]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5638], ["g5_updatable_hub_amenity_id", 3183]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.341145"], ["updated_at", "2016-12-20 16:18:53.341145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.342132"], ["id", 3184]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5638], ["g5_updatable_hub_amenity_id", 3184]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5638]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5638) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.345929"], ["id", 5638]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.351185"], ["updated_at", "2016-12-20 16:18:53.351185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2016-12-20 16:18:53.352651"], ["updated_at", "2016-12-20 16:18:53.352651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5639], ["g5_updatable_hub_amenity_id", 3185]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5639) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.355183"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5639]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5639]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.362173"], ["updated_at", "2016-12-20 16:18:53.362173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.363161"], ["id", 3186]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5639], ["g5_updatable_hub_amenity_id", 3186]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.365631"], ["updated_at", "2016-12-20 16:18:53.365631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.366549"], ["id", 3187]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5639], ["g5_updatable_hub_amenity_id", 3187]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5639]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5639) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.375768"], ["id", 5639]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.380256"], ["updated_at", "2016-12-20 16:18:53.380256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2016-12-20 16:18:53.382244"], ["updated_at", "2016-12-20 16:18:53.382244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5640], ["g5_updatable_hub_amenity_id", 3188]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5640) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.385187"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5640]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5640]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.392328"], ["updated_at", "2016-12-20 16:18:53.392328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.393315"], ["id", 3189]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5640], ["g5_updatable_hub_amenity_id", 3189]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.395856"], ["updated_at", "2016-12-20 16:18:53.395856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.396793"], ["id", 3190]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5640], ["g5_updatable_hub_amenity_id", 3190]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5640]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5640) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.400756"], ["id", 5640]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.406293"], ["updated_at", "2016-12-20 16:18:53.406293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2016-12-20 16:18:53.407894"], ["updated_at", "2016-12-20 16:18:53.407894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5641], ["g5_updatable_hub_amenity_id", 3191]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5641) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.410381"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5641]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5641]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.417365"], ["updated_at", "2016-12-20 16:18:53.417365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.418394"], ["id", 3192]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5641], ["g5_updatable_hub_amenity_id", 3192]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.420636"], ["updated_at", "2016-12-20 16:18:53.420636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.421555"], ["id", 3193]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5641], ["g5_updatable_hub_amenity_id", 3193]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5641]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5641) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.425520"], ["id", 5641]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.431356"], ["updated_at", "2016-12-20 16:18:53.431356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2016-12-20 16:18:53.433166"], ["updated_at", "2016-12-20 16:18:53.433166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5642], ["g5_updatable_hub_amenity_id", 3194]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5642) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.435737"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5642]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5642]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.442893"], ["updated_at", "2016-12-20 16:18:53.442893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.443896"], ["id", 3195]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5642], ["g5_updatable_hub_amenity_id", 3195]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.446104"], ["updated_at", "2016-12-20 16:18:53.446104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.447002"], ["id", 3196]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5642], ["g5_updatable_hub_amenity_id", 3196]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5642]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5642) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.451211"], ["id", 5642]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.472489"], ["updated_at", "2016-12-20 16:18:53.472489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2016-12-20 16:18:53.474313"], ["updated_at", "2016-12-20 16:18:53.474313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5643], ["g5_updatable_hub_amenity_id", 3197]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5643) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.477029"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5643]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5643]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.486021"], ["updated_at", "2016-12-20 16:18:53.486021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.487391"], ["id", 3198]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5643], ["g5_updatable_hub_amenity_id", 3198]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.490319"], ["id", 3197]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5643], ["g5_updatable_hub_amenity_id", 3197]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5643]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5643) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.494916"], ["id", 5643]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:18:53.500120"], ["updated_at", "2016-12-20 16:18:53.500120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:53.502314"], ["updated_at", "2016-12-20 16:18:53.502314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2188]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5644]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.506615"], ["updated_at", "2016-12-20 16:18:53.506615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2016-12-20 16:18:53.508514"], ["updated_at", "2016-12-20 16:18:53.508514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5645], ["g5_updatable_hub_amenity_id", 3199]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5645) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.511483"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5645]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5645]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.520544"], ["updated_at", "2016-12-20 16:18:53.520544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.521722"], ["id", 3200]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5645], ["g5_updatable_hub_amenity_id", 3200]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.524621"], ["updated_at", "2016-12-20 16:18:53.524621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.525778"], ["id", 3201]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5645], ["g5_updatable_hub_amenity_id", 3201]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5645]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5645) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.530247"], ["id", 5645]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.537101"], ["updated_at", "2016-12-20 16:18:53.537101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2016-12-20 16:18:53.538838"], ["updated_at", "2016-12-20 16:18:53.538838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5646], ["g5_updatable_hub_amenity_id", 3202]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5646) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.542052"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5646]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5646]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.550459"], ["updated_at", "2016-12-20 16:18:53.550459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.551513"], ["id", 3203]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5646], ["g5_updatable_hub_amenity_id", 3203]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.553780"], ["updated_at", "2016-12-20 16:18:53.553780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.554766"], ["id", 3204]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5646], ["g5_updatable_hub_amenity_id", 3204]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5646]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5646) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.559307"], ["id", 5646]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.565697"], ["updated_at", "2016-12-20 16:18:53.565697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2016-12-20 16:18:53.567397"], ["updated_at", "2016-12-20 16:18:53.567397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5647], ["g5_updatable_hub_amenity_id", 3205]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5647) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.570102"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5647]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5647]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.578174"], ["updated_at", "2016-12-20 16:18:53.578174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.579240"], ["id", 3206]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5647], ["g5_updatable_hub_amenity_id", 3206]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.582851"], ["updated_at", "2016-12-20 16:18:53.582851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.584552"], ["id", 3207]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5647], ["g5_updatable_hub_amenity_id", 3207]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5647]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5647) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.588925"], ["id", 5647]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:18:53.593496"], ["updated_at", "2016-12-20 16:18:53.593496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:53.595492"], ["updated_at", "2016-12-20 16:18:53.595492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2189]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5648]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.599320"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.602203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5649]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.607812"], ["updated_at", "2016-12-20 16:18:53.607812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.608981"], ["id", 3208]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5649], ["g5_updatable_hub_amenity_id", 3208]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.611417"], ["updated_at", "2016-12-20 16:18:53.611417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.612368"], ["id", 3209]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5649], ["g5_updatable_hub_amenity_id", 3209]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5649]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5649) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.617016"], ["id", 5649]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.623880"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.639520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5650]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.644073"], ["updated_at", "2016-12-20 16:18:53.644073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.645303"], ["id", 3210]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5650], ["g5_updatable_hub_amenity_id", 3210]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.647996"], ["updated_at", "2016-12-20 16:18:53.647996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.648916"], ["id", 3211]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5650], ["g5_updatable_hub_amenity_id", 3211]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5650]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5650) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.652629"], ["id", 5650]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5650]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5650]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.658842"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.660995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5651]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.664967"], ["updated_at", "2016-12-20 16:18:53.664967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.665887"], ["id", 3212]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5651], ["g5_updatable_hub_amenity_id", 3212]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.668022"], ["updated_at", "2016-12-20 16:18:53.668022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.668911"], ["id", 3213]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5651], ["g5_updatable_hub_amenity_id", 3213]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5651]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5651) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.672419"], ["id", 5651]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.676893"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.678988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5652]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.683399"], ["updated_at", "2016-12-20 16:18:53.683399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.684410"], ["id", 3214]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5652], ["g5_updatable_hub_amenity_id", 3214]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.686601"], ["updated_at", "2016-12-20 16:18:53.686601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.687521"], ["id", 3215]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5652], ["g5_updatable_hub_amenity_id", 3215]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5652]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5652) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.691322"], ["id", 5652]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.695257"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.697459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5653]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.701466"], ["updated_at", "2016-12-20 16:18:53.701466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.702594"], ["id", 3216]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5653], ["g5_updatable_hub_amenity_id", 3216]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.704868"], ["updated_at", "2016-12-20 16:18:53.704868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.705774"], ["id", 3217]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5653], ["g5_updatable_hub_amenity_id", 3217]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5653]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5653) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.709601"], ["id", 5653]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.714279"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.716360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5654]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.720103"], ["updated_at", "2016-12-20 16:18:53.720103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.721016"], ["id", 3218]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5654], ["g5_updatable_hub_amenity_id", 3218]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.723371"], ["updated_at", "2016-12-20 16:18:53.723371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.724376"], ["id", 3219]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5654], ["g5_updatable_hub_amenity_id", 3219]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5654]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5654) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.728013"], ["id", 5654]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.733117"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.735227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5655]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.739133"], ["updated_at", "2016-12-20 16:18:53.739133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.740479"], ["id", 3220]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5655], ["g5_updatable_hub_amenity_id", 3220]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.743918"], ["updated_at", "2016-12-20 16:18:53.743918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.744937"], ["id", 3221]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5655], ["g5_updatable_hub_amenity_id", 3221]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5655]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5655) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.749026"], ["id", 5655]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.753484"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.755496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5656]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.759333"], ["updated_at", "2016-12-20 16:18:53.759333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.760350"], ["id", 3222]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5656], ["g5_updatable_hub_amenity_id", 3222]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.762590"], ["updated_at", "2016-12-20 16:18:53.762590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.763481"], ["id", 3223]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5656], ["g5_updatable_hub_amenity_id", 3223]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5656]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5656) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.767595"], ["id", 5656]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.772162"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.774525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5657]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.778467"], ["updated_at", "2016-12-20 16:18:53.778467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.779413"], ["id", 3224]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5657], ["g5_updatable_hub_amenity_id", 3224]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.781944"], ["updated_at", "2016-12-20 16:18:53.781944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.783000"], ["id", 3225]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5657], ["g5_updatable_hub_amenity_id", 3225]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5657]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5657) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.786722"], ["id", 5657]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.791834"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.794075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5658]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.798039"], ["updated_at", "2016-12-20 16:18:53.798039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.799187"], ["id", 3226]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5658], ["g5_updatable_hub_amenity_id", 3226]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.801412"], ["updated_at", "2016-12-20 16:18:53.801412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.802379"], ["id", 3227]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5658], ["g5_updatable_hub_amenity_id", 3227]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5658]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5658) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.806306"], ["id", 5658]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.811005"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.813110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5659]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.817326"], ["updated_at", "2016-12-20 16:18:53.817326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.818280"], ["id", 3228]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5659], ["g5_updatable_hub_amenity_id", 3228]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.820549"], ["updated_at", "2016-12-20 16:18:53.820549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.821547"], ["id", 3229]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5659], ["g5_updatable_hub_amenity_id", 3229]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5659]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5659) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.825787"], ["id", 5659]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:18:53.829050"], ["updated_at", "2016-12-20 16:18:53.829050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:53.831049"], ["updated_at", "2016-12-20 16:18:53.831049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2190]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5660]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.834718"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.836943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5661]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.844597"], ["updated_at", "2016-12-20 16:18:53.844597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.845514"], ["id", 3230]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5661], ["g5_updatable_hub_amenity_id", 3230]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.847646"], ["updated_at", "2016-12-20 16:18:53.847646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.848843"], ["id", 3231]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5661], ["g5_updatable_hub_amenity_id", 3231]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5661]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5661) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.852533"], ["id", 5661]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.858156"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.860399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5662]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.864133"], ["updated_at", "2016-12-20 16:18:53.864133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.865310"], ["id", 3232]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5662], ["g5_updatable_hub_amenity_id", 3232]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.867470"], ["updated_at", "2016-12-20 16:18:53.867470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.868412"], ["id", 3233]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5662], ["g5_updatable_hub_amenity_id", 3233]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5662]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5662) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.872031"], ["id", 5662]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:18:53.907238"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:18:53.909421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.911790"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.913744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5663]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5663]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5663) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:18:53.920543"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.922672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5664]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5664]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5664) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:18:53.929005"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.931068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5665]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:53.935507"], ["updated_at", "2016-12-20 16:18:53.935507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:53.936475"], ["id", 3234]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5665], ["g5_updatable_hub_amenity_id", 3234]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:53.938723"], ["updated_at", "2016-12-20 16:18:53.938723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:53.939720"], ["id", 3235]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5665], ["g5_updatable_hub_amenity_id", 3235]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5665]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5665) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.943668"], ["id", 5665]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:18:53.946155"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.948340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5666]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5666], ["g5_updatable_hub_amenity_id", 3234]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5666], ["g5_updatable_hub_amenity_id", 3235]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5666]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5666) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:53.956048"], ["id", 5666]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:18:53.958325"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.960342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5667]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5667]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5667) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:18:53.971729"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:18:53.973522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:53.975943"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.977977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5668]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5668]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5668) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:18:53.984945"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.986915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5669]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5669]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5669) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:18:53.994763"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:53.997389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5670]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:54.001479"], ["updated_at", "2016-12-20 16:18:54.001479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:54.002431"], ["id", 3236]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5670], ["g5_updatable_hub_amenity_id", 3236]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:54.004924"], ["updated_at", "2016-12-20 16:18:54.004924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:54.006044"], ["id", 3237]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5670], ["g5_updatable_hub_amenity_id", 3237]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5670]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5670) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:54.010345"], ["id", 5670]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:18:54.012836"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.015217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5671]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5671], ["g5_updatable_hub_amenity_id", 3236]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5671], ["g5_updatable_hub_amenity_id", 3237]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5671]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5671) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:54.024222"], ["id", 5671]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:18:54.026919"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.033429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5672]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5672]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5672) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:18:54.049310"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:18:54.051073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:54.053279"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.055434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5673]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5673]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5673) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:18:54.065172"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.067375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5674]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5674]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5674) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:18:54.074081"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.076101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5675]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:54.079657"], ["updated_at", "2016-12-20 16:18:54.079657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:54.080565"], ["id", 3238]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5675], ["g5_updatable_hub_amenity_id", 3238]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:54.083238"], ["updated_at", "2016-12-20 16:18:54.083238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:54.084139"], ["id", 3239]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5675], ["g5_updatable_hub_amenity_id", 3239]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5675]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5675) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:54.087653"], ["id", 5675]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:18:54.089946"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.092174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5676]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5676], ["g5_updatable_hub_amenity_id", 3238]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5676], ["g5_updatable_hub_amenity_id", 3239]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5676]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5676) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:54.100327"], ["id", 5676]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:18:54.102722"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.104809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5677]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5677]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5677) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5675]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:18:54.116753"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:18:54.118525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:54.120668"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.122560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5678]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5678]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5678) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:18:54.128740"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.130653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5679]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5679]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5679) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:18:54.137811"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.139931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5680]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:54.143815"], ["updated_at", "2016-12-20 16:18:54.143815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:54.144767"], ["id", 3240]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5680], ["g5_updatable_hub_amenity_id", 3240]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:54.146932"], ["updated_at", "2016-12-20 16:18:54.146932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:54.148174"], ["id", 3241]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5680], ["g5_updatable_hub_amenity_id", 3241]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5680]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5680) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:54.152135"], ["id", 5680]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:18:54.154602"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.156975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5681]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5681], ["g5_updatable_hub_amenity_id", 3240]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5681], ["g5_updatable_hub_amenity_id", 3241]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5681]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5681) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:54.165066"], ["id", 5681]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:18:54.167467"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.169843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5682]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5682]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5682) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2194) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2194) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-20 16:18:54.188349"], ["id", 2194]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5682]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5682]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5681]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3630]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3631]] SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5681]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5680]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3628]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3629]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5680]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5679]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5679]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5678]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5678]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:18:54.210566"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:18:54.212345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:54.214796"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.216819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5683]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5683]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5683) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:18:54.223538"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.225858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5684]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5684]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5684) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:18:54.232939"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.235101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5685]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:54.238721"], ["updated_at", "2016-12-20 16:18:54.238721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:54.239809"], ["id", 3242]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5685], ["g5_updatable_hub_amenity_id", 3242]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:54.242381"], ["updated_at", "2016-12-20 16:18:54.242381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:54.243309"], ["id", 3243]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5685], ["g5_updatable_hub_amenity_id", 3243]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5685]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5685) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:54.247126"], ["id", 5685]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:18:54.250408"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.252443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5686]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5686], ["g5_updatable_hub_amenity_id", 3242]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5686], ["g5_updatable_hub_amenity_id", 3243]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5686]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5686) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:54.261141"], ["id", 5686]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:18:54.263552"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.265779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5687]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5687]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5687) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2195) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2195) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-20 16:18:54.284216"], ["id", 2195]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5683) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2016-12-20 16:18:54.289968"], ["id", 5683]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5683]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5683]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5683) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5687]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5687]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5686]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3634]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3635]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5686]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5685]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3632]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3633]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5685]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5684]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5684]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:54.310447"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.312521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5688]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:54.316397"], ["updated_at", "2016-12-20 16:18:54.316397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:54.317378"], ["id", 3244]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5688], ["g5_updatable_hub_amenity_id", 3244]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:54.319506"], ["updated_at", "2016-12-20 16:18:54.319506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:54.320444"], ["id", 3245]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5688], ["g5_updatable_hub_amenity_id", 3245]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5688]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5688) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:54.324207"], ["id", 5688]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:18:54.336725"], ["updated_at", "2016-12-20 16:18:54.336725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.339182"], ["updated_at", "2016-12-20 16:18:54.339182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.341277"], ["updated_at", "2016-12-20 16:18:54.341277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.343110"], ["updated_at", "2016-12-20 16:18:54.343110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:18:54.351471"], ["updated_at", "2016-12-20 16:18:54.351471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.353430"], ["updated_at", "2016-12-20 16:18:54.353430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.355184"], ["updated_at", "2016-12-20 16:18:54.355184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.357111"], ["updated_at", "2016-12-20 16:18:54.357111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.05ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.376236"], ["updated_at", "2016-12-20 16:18:54.376236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-20 16:18:54.377905"], ["updated_at", "2016-12-20 16:18:54.377905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.379109"], ["updated_at", "2016-12-20 16:18:54.379109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.380066"], ["updated_at", "2016-12-20 16:18:54.380066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.381105"], ["updated_at", "2016-12-20 16:18:54.381105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5695], ["g5_updatable_hub_amenity_id", 3246]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5695], ["g5_updatable_hub_amenity_id", 3247]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.390281"], ["updated_at", "2016-12-20 16:18:54.390281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-20 16:18:54.392015"], ["updated_at", "2016-12-20 16:18:54.392015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.393184"], ["updated_at", "2016-12-20 16:18:54.393184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.394103"], ["updated_at", "2016-12-20 16:18:54.394103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.394928"], ["updated_at", "2016-12-20 16:18:54.394928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5696], ["g5_updatable_hub_amenity_id", 3249]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5696], ["g5_updatable_hub_amenity_id", 3250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.5ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn IN ('g5-c-1soj8z7v-g5-mf'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.401841"], ["updated_at", "2016-12-20 16:18:54.401841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-20 16:18:54.403407"], ["updated_at", "2016-12-20 16:18:54.403407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.404739"], ["updated_at", "2016-12-20 16:18:54.404739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.406022"], ["updated_at", "2016-12-20 16:18:54.406022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.407176"], ["updated_at", "2016-12-20 16:18:54.407176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5697], ["g5_updatable_hub_amenity_id", 3252]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5697], ["g5_updatable_hub_amenity_id", 3253]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.5ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.422103"], ["updated_at", "2016-12-20 16:18:54.422103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2201) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2201) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:18:54.423663"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2201]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.433820"], ["updated_at", "2016-12-20 16:18:54.433820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2202) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2202) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:18:54.435151"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2202]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.439935"], ["updated_at", "2016-12-20 16:18:54.439935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2203) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2203) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:18:54.441282"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2203]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.446150"], ["updated_at", "2016-12-20 16:18:54.446150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2204) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2204) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:18:54.447307"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2204]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:18:54.452364"], ["updated_at", "2016-12-20 16:18:54.452364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2205) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2205) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2016-12-20 16:18:54.453990"], ["id", 2205]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2205]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2016-12-20 16:18:54.459128"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2016-12-20 16:18:54.460761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2016-12-20 16:18:54.462868"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.465197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5698]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5698]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5698) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2016-12-20 16:18:54.471587"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.473666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5699]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5699]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5699) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2016-12-20 16:18:54.479759"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.482287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5700]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2016-12-20 16:18:54.486026"], ["updated_at", "2016-12-20 16:18:54.486026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2016-12-20 16:18:54.487028"], ["id", 3255]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5700], ["g5_updatable_hub_amenity_id", 3255]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2016-12-20 16:18:54.489203"], ["updated_at", "2016-12-20 16:18:54.489203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2016-12-20 16:18:54.490207"], ["id", 3256]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5700], ["g5_updatable_hub_amenity_id", 3256]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5700]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5700) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:54.494112"], ["id", 5700]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2016-12-20 16:18:54.496468"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.498690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5701]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5701], ["g5_updatable_hub_amenity_id", 3255]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5701], ["g5_updatable_hub_amenity_id", 3256]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5701]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5701) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2016-12-20 16:18:54.508033"], ["id", 5701]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2016-12-20 16:18:54.510685"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2016-12-20 16:18:54.512866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5702]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5702]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5702) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:18:54.525574"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:18:54.526698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:18:54.529804"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:18:54.530761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:18:54.533467"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:18:54.534521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:18:54.536964"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:18:54.537957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:18:54.540536"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:18:54.541869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:18:54.545028"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:18:54.546197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2016-12-20 16:18:54.549545"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2016-12-20 16:18:54.551264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-20 16:18:54.569052"], ["updated_at", "2016-12-20 16:18:54.569052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:18:54.578754"], ["updated_at", "2016-12-20 16:18:54.578754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2215]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2016-12-20 16:18:54.582601"], ["updated_at", "2016-12-20 16:18:54.582601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.585363"], ["updated_at", "2016-12-20 16:18:54.585363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.601927"], ["updated_at", "2016-12-20 16:18:54.601927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.35ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.614223"], ["updated_at", "2016-12-20 16:18:54.614223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.3ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.662582"], ["updated_at", "2016-12-20 16:18:54.662582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.666103"], ["updated_at", "2016-12-20 16:18:54.666103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.668936"], ["updated_at", "2016-12-20 16:18:54.668936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.671761"], ["updated_at", "2016-12-20 16:18:54.671761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.673114"], ["updated_at", "2016-12-20 16:18:54.673114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-21"], ["external_id", 21], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.674254"], ["updated_at", "2016-12-20 16:18:54.674254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5709], ["g5_updatable_hub_amenity_id", 3257]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5709], ["g5_updatable_hub_amenity_id", 3258]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5709]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5709) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-20|amenity-21|"], ["updated_at", "2016-12-20 16:18:54.679639"], ["id", 5709]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5709]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5709]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5709]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5709]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5709]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.685968"], ["updated_at", "2016-12-20 16:18:54.685968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-22"], ["external_id", 22], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.687454"], ["updated_at", "2016-12-20 16:18:54.687454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-23"], ["external_id", 23], ["icon", "icon"], ["created_at", "2016-12-20 16:18:54.688513"], ["updated_at", "2016-12-20 16:18:54.688513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5710], ["g5_updatable_hub_amenity_id", 3259]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5710], ["g5_updatable_hub_amenity_id", 3260]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5710]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5710) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-22|amenity-23|"], ["updated_at", "2016-12-20 16:18:54.693941"], ["id", 5710]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5710]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5710]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2016-12-20 16:18:54.715116"], ["updated_at", "2016-12-20 16:18:54.715116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:18:54.745781"], ["updated_at", "2016-12-20 16:18:54.745781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.747569"], ["updated_at", "2016-12-20 16:18:54.747569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2016-12-20 16:18:54.751291"], ["updated_at", "2016-12-20 16:18:54.751291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.753092"], ["updated_at", "2016-12-20 16:18:54.753092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.755678"], ["updated_at", "2016-12-20 16:18:54.755678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.758825"], ["updated_at", "2016-12-20 16:18:54.758825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.761143"], ["updated_at", "2016-12-20 16:18:54.761143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2016-12-20 16:18:54.764038"], ["updated_at", "2016-12-20 16:18:54.764038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.766956"], ["updated_at", "2016-12-20 16:18:54.766956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.770151"], ["updated_at", "2016-12-20 16:18:54.770151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.771758"], ["updated_at", "2016-12-20 16:18:54.771758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.774520"], ["updated_at", "2016-12-20 16:18:54.774520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.777733"], ["updated_at", "2016-12-20 16:18:54.777733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.779368"], ["updated_at", "2016-12-20 16:18:54.779368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.782760"], ["updated_at", "2016-12-20 16:18:54.782760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.785635"], ["updated_at", "2016-12-20 16:18:54.785635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.787218"], ["updated_at", "2016-12-20 16:18:54.787218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.791646"], ["updated_at", "2016-12-20 16:18:54.791646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.794677"], ["updated_at", "2016-12-20 16:18:54.794677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.796215"], ["updated_at", "2016-12-20 16:18:54.796215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.799702"], ["updated_at", "2016-12-20 16:18:54.799702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.802532"], ["updated_at", "2016-12-20 16:18:54.802532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.804112"], ["updated_at", "2016-12-20 16:18:54.804112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.807488"], ["updated_at", "2016-12-20 16:18:54.807488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.810226"], ["updated_at", "2016-12-20 16:18:54.810226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.811832"], ["updated_at", "2016-12-20 16:18:54.811832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.815302"], ["updated_at", "2016-12-20 16:18:54.815302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.818034"], ["updated_at", "2016-12-20 16:18:54.818034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.819526"], ["updated_at", "2016-12-20 16:18:54.819526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.822651"], ["updated_at", "2016-12-20 16:18:54.822651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.825576"], ["updated_at", "2016-12-20 16:18:54.825576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.827177"], ["updated_at", "2016-12-20 16:18:54.827177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.830606"], ["updated_at", "2016-12-20 16:18:54.830606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.834175"], ["updated_at", "2016-12-20 16:18:54.834175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.835782"], ["updated_at", "2016-12-20 16:18:54.835782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.839160"], ["updated_at", "2016-12-20 16:18:54.839160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.842276"], ["updated_at", "2016-12-20 16:18:54.842276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.843938"], ["updated_at", "2016-12-20 16:18:54.843938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.847313"], ["updated_at", "2016-12-20 16:18:54.847313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.850273"], ["updated_at", "2016-12-20 16:18:54.850273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.851883"], ["updated_at", "2016-12-20 16:18:54.851883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2016-12-20 16:18:54.855072"], ["updated_at", "2016-12-20 16:18:54.855072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2016-12-20 16:18:54.858080"], ["updated_at", "2016-12-20 16:18:54.858080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2016-12-20 16:18:54.859769"], ["updated_at", "2016-12-20 16:18:54.859769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.873109"], ["updated_at", "2016-12-20 16:18:54.873109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5741]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.877794"], ["updated_at", "2016-12-20 16:18:54.877794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.879654"], ["updated_at", "2016-12-20 16:18:54.879654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.885456"], ["updated_at", "2016-12-20 16:18:54.885456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.888171"], ["updated_at", "2016-12-20 16:18:54.888171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.893083"], ["updated_at", "2016-12-20 16:18:54.893083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.894955"], ["updated_at", "2016-12-20 16:18:54.894955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.898408"], ["updated_at", "2016-12-20 16:18:54.898408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.900332"], ["updated_at", "2016-12-20 16:18:54.900332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.903503"], ["updated_at", "2016-12-20 16:18:54.903503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2016-12-20 16:18:54.905253"], ["updated_at", "2016-12-20 16:18:54.905253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (38.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (26.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (1.9ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (23.7ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:21.793105"], ["updated_at", "2017-01-17 15:19:21.793105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (26.8ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (2.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-01-17 15:19:21.872717"], ["updated_at", "2017-01-17 15:19:21.872717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2017-01-17 15:19:21.877372"], ["updated_at", "2017-01-17 15:19:21.877372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2017-01-17 15:19:21.880682"], ["updated_at", "2017-01-17 15:19:21.880682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2017-01-17 15:19:21.881744"], ["updated_at", "2017-01-17 15:19:21.881744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (28.7ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5752], ["g5_updatable_hub_amenity_id", 3261]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5752], ["g5_updatable_hub_amenity_id", 3262]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (7.7ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.3ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:21.940427"], ["updated_at", "2017-01-17 15:19:21.940427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-01-17 15:19:21.942411"], ["updated_at", "2017-01-17 15:19:21.942411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2017-01-17 15:19:21.943842"], ["updated_at", "2017-01-17 15:19:21.943842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2017-01-17 15:19:21.945023"], ["updated_at", "2017-01-17 15:19:21.945023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2017-01-17 15:19:21.946153"], ["updated_at", "2017-01-17 15:19:21.946153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5753], ["g5_updatable_hub_amenity_id", 3264]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5753], ["g5_updatable_hub_amenity_id", 3265]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.5ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:21.954238"], ["updated_at", "2017-01-17 15:19:21.954238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-01-17 15:19:21.956371"], ["updated_at", "2017-01-17 15:19:21.956371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2017-01-17 15:19:21.957824"], ["updated_at", "2017-01-17 15:19:21.957824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2017-01-17 15:19:21.958991"], ["updated_at", "2017-01-17 15:19:21.958991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2017-01-17 15:19:21.960109"], ["updated_at", "2017-01-17 15:19:21.960109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5754], ["g5_updatable_hub_amenity_id", 3267]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5754], ["g5_updatable_hub_amenity_id", 3268]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.5ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn IN ('g5-c-1soj8z7v-g5-mf'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:21.977260"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:21.980974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5755]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:21.986299"], ["updated_at", "2017-01-17 15:19:21.986299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:21.989423"], ["id", 3270]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5755], ["g5_updatable_hub_amenity_id", 3270]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:21.993533"], ["updated_at", "2017-01-17 15:19:21.993533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:21.994724"], ["id", 3271]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5755], ["g5_updatable_hub_amenity_id", 3271]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5755]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5755) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.000547"], ["id", 5755]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.008445"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.010916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5756]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.015322"], ["updated_at", "2017-01-17 15:19:22.015322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.016424"], ["id", 3272]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5756], ["g5_updatable_hub_amenity_id", 3272]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.018943"], ["updated_at", "2017-01-17 15:19:22.018943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.020008"], ["id", 3273]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5756], ["g5_updatable_hub_amenity_id", 3273]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5756]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5756) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.024981"], ["id", 5756]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.031536"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.033861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5757]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.037958"], ["updated_at", "2017-01-17 15:19:22.037958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.039018"], ["id", 3274]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5757], ["g5_updatable_hub_amenity_id", 3274]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.041414"], ["updated_at", "2017-01-17 15:19:22.041414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.050210"], ["id", 3275]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5757], ["g5_updatable_hub_amenity_id", 3275]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5757]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5757) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.055114"], ["id", 5757]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.060131"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.063091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5758]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.067963"], ["updated_at", "2017-01-17 15:19:22.067963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.069113"], ["id", 3276]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5758], ["g5_updatable_hub_amenity_id", 3276]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.071945"], ["updated_at", "2017-01-17 15:19:22.071945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.073144"], ["id", 3277]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5758], ["g5_updatable_hub_amenity_id", 3277]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5758]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5758) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.078166"], ["id", 5758]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.083910"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.086420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5759]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.091343"], ["updated_at", "2017-01-17 15:19:22.091343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.092426"], ["id", 3278]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5759], ["g5_updatable_hub_amenity_id", 3278]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.095024"], ["updated_at", "2017-01-17 15:19:22.095024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.096032"], ["id", 3279]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5759], ["g5_updatable_hub_amenity_id", 3279]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5759]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5759) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.101966"], ["id", 5759]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5759]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5759]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.113116"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.115765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5760]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.121257"], ["updated_at", "2017-01-17 15:19:22.121257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.122542"], ["id", 3280]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5760], ["g5_updatable_hub_amenity_id", 3280]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.125510"], ["updated_at", "2017-01-17 15:19:22.125510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.126701"], ["id", 3281]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5760], ["g5_updatable_hub_amenity_id", 3281]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5760]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5760) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.131350"], ["id", 5760]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.138049"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.140769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5761]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.145396"], ["updated_at", "2017-01-17 15:19:22.145396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.146439"], ["id", 3282]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5761], ["g5_updatable_hub_amenity_id", 3282]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.149026"], ["updated_at", "2017-01-17 15:19:22.149026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.150155"], ["id", 3283]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5761], ["g5_updatable_hub_amenity_id", 3283]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5761]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5761) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.154448"], ["id", 5761]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.159916"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.162592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5762]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.167304"], ["updated_at", "2017-01-17 15:19:22.167304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.168385"], ["id", 3284]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5762], ["g5_updatable_hub_amenity_id", 3284]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.171243"], ["updated_at", "2017-01-17 15:19:22.171243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.172678"], ["id", 3285]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5762], ["g5_updatable_hub_amenity_id", 3285]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5762]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5762) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.177998"], ["id", 5762]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.184801"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.187846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5763]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.193728"], ["updated_at", "2017-01-17 15:19:22.193728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.195015"], ["id", 3286]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5763], ["g5_updatable_hub_amenity_id", 3286]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.197489"], ["updated_at", "2017-01-17 15:19:22.197489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.198463"], ["id", 3287]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5763], ["g5_updatable_hub_amenity_id", 3287]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5763]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5763) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.202956"], ["id", 5763]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.209136"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.211616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5764]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.216567"], ["updated_at", "2017-01-17 15:19:22.216567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.217619"], ["id", 3288]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5764], ["g5_updatable_hub_amenity_id", 3288]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.220358"], ["updated_at", "2017-01-17 15:19:22.220358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.221422"], ["id", 3289]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5764], ["g5_updatable_hub_amenity_id", 3289]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5764]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5764) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.226827"], ["id", 5764]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.233038"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.236362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5765]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.241943"], ["updated_at", "2017-01-17 15:19:22.241943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.243059"], ["id", 3290]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5765], ["g5_updatable_hub_amenity_id", 3290]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.245576"], ["updated_at", "2017-01-17 15:19:22.245576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.246591"], ["id", 3291]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5765], ["g5_updatable_hub_amenity_id", 3291]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5765]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5765) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.251400"], ["id", 5765]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.257530"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.260204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5766]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.265700"], ["updated_at", "2017-01-17 15:19:22.265700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.266778"], ["id", 3292]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5766], ["g5_updatable_hub_amenity_id", 3292]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.269400"], ["updated_at", "2017-01-17 15:19:22.269400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.270436"], ["id", 3293]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5766], ["g5_updatable_hub_amenity_id", 3293]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5766]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5766) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.275862"], ["id", 5766]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.281911"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.284459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5767]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.289434"], ["updated_at", "2017-01-17 15:19:22.289434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.290585"], ["id", 3294]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5767], ["g5_updatable_hub_amenity_id", 3294]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.307318"], ["updated_at", "2017-01-17 15:19:22.307318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.308464"], ["id", 3295]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5767], ["g5_updatable_hub_amenity_id", 3295]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5767]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5767) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.312449"], ["id", 5767]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.316902"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.318904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5768]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.323274"], ["updated_at", "2017-01-17 15:19:22.323274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.324568"], ["id", 3296]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5768], ["g5_updatable_hub_amenity_id", 3296]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.326958"], ["updated_at", "2017-01-17 15:19:22.326958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.328126"], ["id", 3297]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5768], ["g5_updatable_hub_amenity_id", 3297]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5768]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5768) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.332074"], ["id", 5768]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-01-17 15:19:22.335030"], ["updated_at", "2017-01-17 15:19:22.335030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:22.336654"], ["updated_at", "2017-01-17 15:19:22.336654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2235]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5769]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.340577"], ["updated_at", "2017-01-17 15:19:22.340577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2017-01-17 15:19:22.342023"], ["updated_at", "2017-01-17 15:19:22.342023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5770], ["g5_updatable_hub_amenity_id", 3298]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5770) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.344517"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5770]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5770]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.351195"], ["updated_at", "2017-01-17 15:19:22.351195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.352105"], ["id", 3299]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5770], ["g5_updatable_hub_amenity_id", 3299]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.354727"], ["updated_at", "2017-01-17 15:19:22.354727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.355858"], ["id", 3300]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5770], ["g5_updatable_hub_amenity_id", 3300]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5770]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5770) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.359844"], ["id", 5770]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.364054"], ["updated_at", "2017-01-17 15:19:22.364054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2017-01-17 15:19:22.365496"], ["updated_at", "2017-01-17 15:19:22.365496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5771], ["g5_updatable_hub_amenity_id", 3301]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5771) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.367933"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5771]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5771]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.374991"], ["updated_at", "2017-01-17 15:19:22.374991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.375990"], ["id", 3302]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5771], ["g5_updatable_hub_amenity_id", 3302]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.378445"], ["updated_at", "2017-01-17 15:19:22.378445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.379621"], ["id", 3303]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5771], ["g5_updatable_hub_amenity_id", 3303]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5771]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5771) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.383691"], ["id", 5771]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5771]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.389670"], ["updated_at", "2017-01-17 15:19:22.389670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2017-01-17 15:19:22.391207"], ["updated_at", "2017-01-17 15:19:22.391207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5772], ["g5_updatable_hub_amenity_id", 3304]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5772) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.393761"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5772]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5772]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.400070"], ["updated_at", "2017-01-17 15:19:22.400070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.401015"], ["id", 3305]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5772], ["g5_updatable_hub_amenity_id", 3305]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.403216"], ["updated_at", "2017-01-17 15:19:22.403216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.404150"], ["id", 3306]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5772], ["g5_updatable_hub_amenity_id", 3306]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5772]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5772) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.408076"], ["id", 5772]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.412972"], ["updated_at", "2017-01-17 15:19:22.412972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2017-01-17 15:19:22.414408"], ["updated_at", "2017-01-17 15:19:22.414408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5773], ["g5_updatable_hub_amenity_id", 3307]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5773) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.416734"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5773]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5773]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.423639"], ["updated_at", "2017-01-17 15:19:22.423639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.424855"], ["id", 3308]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5773], ["g5_updatable_hub_amenity_id", 3308]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.427396"], ["updated_at", "2017-01-17 15:19:22.427396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.428551"], ["id", 3309]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5773], ["g5_updatable_hub_amenity_id", 3309]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5773]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5773) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.432569"], ["id", 5773]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.437795"], ["updated_at", "2017-01-17 15:19:22.437795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2017-01-17 15:19:22.439294"], ["updated_at", "2017-01-17 15:19:22.439294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5774], ["g5_updatable_hub_amenity_id", 3310]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5774) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.441778"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5774]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5774]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.448471"], ["updated_at", "2017-01-17 15:19:22.448471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.449387"], ["id", 3311]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5774], ["g5_updatable_hub_amenity_id", 3311]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.451797"], ["updated_at", "2017-01-17 15:19:22.451797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.452873"], ["id", 3312]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5774], ["g5_updatable_hub_amenity_id", 3312]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5774]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5774) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.456920"], ["id", 5774]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.461357"], ["updated_at", "2017-01-17 15:19:22.461357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2017-01-17 15:19:22.462814"], ["updated_at", "2017-01-17 15:19:22.462814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5775], ["g5_updatable_hub_amenity_id", 3313]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5775) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.465285"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5775]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5775]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.472244"], ["updated_at", "2017-01-17 15:19:22.472244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.473352"], ["id", 3314]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5775], ["g5_updatable_hub_amenity_id", 3314]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.475861"], ["updated_at", "2017-01-17 15:19:22.475861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.477016"], ["id", 3315]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5775], ["g5_updatable_hub_amenity_id", 3315]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5775]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5775) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.481358"], ["id", 5775]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.486628"], ["updated_at", "2017-01-17 15:19:22.486628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2017-01-17 15:19:22.488454"], ["updated_at", "2017-01-17 15:19:22.488454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5776], ["g5_updatable_hub_amenity_id", 3316]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5776) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.491150"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5776]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5776]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.497710"], ["updated_at", "2017-01-17 15:19:22.497710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.498693"], ["id", 3317]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5776], ["g5_updatable_hub_amenity_id", 3317]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.501118"], ["updated_at", "2017-01-17 15:19:22.501118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.502251"], ["id", 3318]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5776], ["g5_updatable_hub_amenity_id", 3318]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5776]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5776) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.506538"], ["id", 5776]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.516891"], ["updated_at", "2017-01-17 15:19:22.516891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2017-01-17 15:19:22.518453"], ["updated_at", "2017-01-17 15:19:22.518453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5777], ["g5_updatable_hub_amenity_id", 3319]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5777) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.520991"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5777]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5777]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.528826"], ["updated_at", "2017-01-17 15:19:22.528826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.529911"], ["id", 3320]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5777], ["g5_updatable_hub_amenity_id", 3320]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.532643"], ["updated_at", "2017-01-17 15:19:22.532643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.533644"], ["id", 3321]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5777], ["g5_updatable_hub_amenity_id", 3321]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5777]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5777) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.537398"], ["id", 5777]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-01-17 15:19:22.540919"], ["updated_at", "2017-01-17 15:19:22.540919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:22.542575"], ["updated_at", "2017-01-17 15:19:22.542575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2236]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5778]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.545818"], ["updated_at", "2017-01-17 15:19:22.545818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2017-01-17 15:19:22.547201"], ["updated_at", "2017-01-17 15:19:22.547201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5779], ["g5_updatable_hub_amenity_id", 3322]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5779) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.549839"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5779]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5779]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.556992"], ["updated_at", "2017-01-17 15:19:22.556992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.557964"], ["id", 3323]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5779], ["g5_updatable_hub_amenity_id", 3323]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.560104"], ["updated_at", "2017-01-17 15:19:22.560104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.561046"], ["id", 3324]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5779], ["g5_updatable_hub_amenity_id", 3324]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5779]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5779) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.564697"], ["id", 5779]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-01-17 15:19:22.567803"], ["updated_at", "2017-01-17 15:19:22.567803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:22.569457"], ["updated_at", "2017-01-17 15:19:22.569457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2237]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5780]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.573008"], ["updated_at", "2017-01-17 15:19:22.573008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2017-01-17 15:19:22.574708"], ["updated_at", "2017-01-17 15:19:22.574708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5781], ["g5_updatable_hub_amenity_id", 3325]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5781) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.577276"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5781]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5781]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.584127"], ["updated_at", "2017-01-17 15:19:22.584127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.585063"], ["id", 3326]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5781], ["g5_updatable_hub_amenity_id", 3326]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.587166"], ["updated_at", "2017-01-17 15:19:22.587166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.588100"], ["id", 3327]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5781], ["g5_updatable_hub_amenity_id", 3327]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5781]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5781) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.592182"], ["id", 5781]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.599327"], ["updated_at", "2017-01-17 15:19:22.599327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2017-01-17 15:19:22.604761"], ["updated_at", "2017-01-17 15:19:22.604761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.608170"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.610239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5784]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.614094"], ["updated_at", "2017-01-17 15:19:22.614094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.615044"], ["id", 3328]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5784], ["g5_updatable_hub_amenity_id", 3328]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.617271"], ["updated_at", "2017-01-17 15:19:22.617271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.618243"], ["id", 3329]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5784], ["g5_updatable_hub_amenity_id", 3329]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5784]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5784) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.621726"], ["id", 5784]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5782]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5782]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2017-01-17 14:19:22.628796"], ["client_urn", "client_uid"], ["created_at", "2017-01-17 15:19:22.631674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5785) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.638658"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5785]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5785]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.645442"], ["updated_at", "2017-01-17 15:19:22.645442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.646412"], ["id", 3330]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5785], ["g5_updatable_hub_amenity_id", 3330]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.648612"], ["updated_at", "2017-01-17 15:19:22.648612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.649556"], ["id", 3331]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5785], ["g5_updatable_hub_amenity_id", 3331]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5785]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5785) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.653609"], ["id", 5785]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5785]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2017-01-17 14:19:22.658412"], ["client_urn", "client_uid"], ["created_at", "2017-01-17 15:19:22.661594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5786) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.668831"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5786]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5786]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.676227"], ["updated_at", "2017-01-17 15:19:22.676227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.677351"], ["id", 3332]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5786], ["g5_updatable_hub_amenity_id", 3332]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.680025"], ["updated_at", "2017-01-17 15:19:22.680025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.681025"], ["id", 3333]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5786], ["g5_updatable_hub_amenity_id", 3333]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5786]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5786) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.684652"], ["id", 5786]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-01-17 15:19:22.687760"], ["updated_at", "2017-01-17 15:19:22.687760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:22.689612"], ["updated_at", "2017-01-17 15:19:22.689612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2238]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5787]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.693161"], ["updated_at", "2017-01-17 15:19:22.693161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.694699"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.696866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5789]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.704640"], ["updated_at", "2017-01-17 15:19:22.704640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.705976"], ["id", 3334]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5789], ["g5_updatable_hub_amenity_id", 3334]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.708261"], ["updated_at", "2017-01-17 15:19:22.708261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.709168"], ["id", 3335]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5789], ["g5_updatable_hub_amenity_id", 3335]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5789]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5789) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.712835"], ["id", 5789]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5788]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5788]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:22.719246"], ["updated_at", "2017-01-17 15:19:22.719246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5790) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.721114"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5790]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5790]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.728839"], ["updated_at", "2017-01-17 15:19:22.728839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.729976"], ["id", 3336]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5790], ["g5_updatable_hub_amenity_id", 3336]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.732314"], ["updated_at", "2017-01-17 15:19:22.732314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.733234"], ["id", 3337]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5790], ["g5_updatable_hub_amenity_id", 3337]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5790]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5790) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.736952"], ["id", 5790]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:22.741764"], ["updated_at", "2017-01-17 15:19:22.741764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5791) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.744035"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5791]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5791]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5791]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5791) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-01-17 15:19:22.753677"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.756116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5792]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5792]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5792) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-01-17 15:19:22.762462"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.764531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5793]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.768261"], ["updated_at", "2017-01-17 15:19:22.768261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.769207"], ["id", 3338]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5793], ["g5_updatable_hub_amenity_id", 3338]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.771709"], ["updated_at", "2017-01-17 15:19:22.771709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.772755"], ["id", 3339]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5793], ["g5_updatable_hub_amenity_id", 3339]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5793]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5793) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.776735"], ["id", 5793]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-01-17 15:19:22.779509"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.781746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5794]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5794], ["g5_updatable_hub_amenity_id", 3338]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5794], ["g5_updatable_hub_amenity_id", 3339]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5794]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5794) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.789912"], ["id", 5794]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-01-17 15:19:22.792460"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.794709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5795]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5795]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5795) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:22.802510"], ["updated_at", "2017-01-17 15:19:22.802510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5796) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.804400"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5796]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5796]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.810786"], ["updated_at", "2017-01-17 15:19:22.810786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.811720"], ["id", 3340]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5796], ["g5_updatable_hub_amenity_id", 3340]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.813841"], ["updated_at", "2017-01-17 15:19:22.813841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.814747"], ["id", 3341]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5796], ["g5_updatable_hub_amenity_id", 3341]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5796]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5796) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.818220"], ["id", 5796]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:22.823651"], ["updated_at", "2017-01-17 15:19:22.823651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.41ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:22.836319"], ["updated_at", "2017-01-17 15:19:22.836319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.26ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.861761"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.864034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5799]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.868416"], ["updated_at", "2017-01-17 15:19:22.868416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.869486"], ["id", 3342]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5799], ["g5_updatable_hub_amenity_id", 3342]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.872206"], ["updated_at", "2017-01-17 15:19:22.872206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.873427"], ["id", 3343]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5799], ["g5_updatable_hub_amenity_id", 3343]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5799]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5799) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.880856"], ["id", 5799]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-01-17 15:19:22.893782"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-01-17 15:19:22.896276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.899663"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.902727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5800]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5800]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5800) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-01-17 15:19:22.914796"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.917138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5801]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5801]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5801) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-01-17 15:19:22.924774"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.927182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5802]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:22.932090"], ["updated_at", "2017-01-17 15:19:22.932090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:22.933163"], ["id", 3344]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5802], ["g5_updatable_hub_amenity_id", 3344]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:22.935488"], ["updated_at", "2017-01-17 15:19:22.935488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:22.936479"], ["id", 3345]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5802], ["g5_updatable_hub_amenity_id", 3345]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5802]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5802) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.940522"], ["id", 5802]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-01-17 15:19:22.943291"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.945757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5803]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5803], ["g5_updatable_hub_amenity_id", 3344]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5803], ["g5_updatable_hub_amenity_id", 3345]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5803]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5803) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:22.954961"], ["id", 5803]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-01-17 15:19:22.957866"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.960106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5804]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5804]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5804) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5802]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-01-17 15:19:22.977902"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-01-17 15:19:22.979921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:22.982383"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.984896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5805]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5805]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5805) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-01-17 15:19:22.992739"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:22.995072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5806]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5806]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5806) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-01-17 15:19:23.002245"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.004582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5807]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:23.008809"], ["updated_at", "2017-01-17 15:19:23.008809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:23.009936"], ["id", 3346]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5807], ["g5_updatable_hub_amenity_id", 3346]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:23.012667"], ["updated_at", "2017-01-17 15:19:23.012667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:23.013687"], ["id", 3347]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5807], ["g5_updatable_hub_amenity_id", 3347]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5807]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5807) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:23.017959"], ["id", 5807]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-01-17 15:19:23.020669"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.023598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5808]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5808], ["g5_updatable_hub_amenity_id", 3346]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5808], ["g5_updatable_hub_amenity_id", 3347]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5808]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5808) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:23.033265"], ["id", 5808]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-01-17 15:19:23.036168"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.038759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5809]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5809]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5809) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-01-17 15:19:23.055879"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-01-17 15:19:23.057820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:23.060117"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.062353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5810]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5810]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5810) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-01-17 15:19:23.068958"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.071124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5811]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5811]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5811) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-01-17 15:19:23.078777"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.081055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5812]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:23.089208"], ["updated_at", "2017-01-17 15:19:23.089208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:23.090272"], ["id", 3348]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5812], ["g5_updatable_hub_amenity_id", 3348]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:23.092491"], ["updated_at", "2017-01-17 15:19:23.092491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:23.093381"], ["id", 3349]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5812], ["g5_updatable_hub_amenity_id", 3349]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5812]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5812) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:23.097048"], ["id", 5812]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-01-17 15:19:23.099410"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.101492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5813]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5813], ["g5_updatable_hub_amenity_id", 3348]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5813], ["g5_updatable_hub_amenity_id", 3349]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5813]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5813) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:23.109890"], ["id", 5813]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-01-17 15:19:23.112307"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.114222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5814]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5814]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5814) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-01-17 15:19:23.129401"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-01-17 15:19:23.131409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:23.133667"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.135669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5815]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5815]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5815) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (1.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-01-17 15:19:23.142626"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.144607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5816]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5816]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5816) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-01-17 15:19:23.152993"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.155331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5817]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:23.159300"], ["updated_at", "2017-01-17 15:19:23.159300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:23.160246"], ["id", 3350]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5817], ["g5_updatable_hub_amenity_id", 3350]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:23.162483"], ["updated_at", "2017-01-17 15:19:23.162483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:23.163393"], ["id", 3351]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5817], ["g5_updatable_hub_amenity_id", 3351]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5817]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5817) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:23.166978"], ["id", 5817]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-01-17 15:19:23.169328"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.171327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5818]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5818], ["g5_updatable_hub_amenity_id", 3350]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5818], ["g5_updatable_hub_amenity_id", 3351]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5818]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5818) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:23.180881"], ["id", 5818]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-01-17 15:19:23.183273"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.185219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5819]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5819]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5819) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2242) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2242) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2017-01-17 15:19:23.195736"], ["id", 2242]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5815) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2017-01-17 15:19:23.201709"], ["id", 5815]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5815]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5815]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5815) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5819]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5819]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5818]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3748]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3749]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5818]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5817]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3746]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3747]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5817]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5816]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5816]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-01-17 15:19:23.222245"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-01-17 15:19:23.224707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:23.227379"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.229664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5820]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5820]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5820) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-01-17 15:19:23.236492"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.238977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5821]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5821]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5821) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-01-17 15:19:23.250909"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.253048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5822]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:23.257143"], ["updated_at", "2017-01-17 15:19:23.257143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:23.258141"], ["id", 3352]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5822], ["g5_updatable_hub_amenity_id", 3352]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:23.260313"], ["updated_at", "2017-01-17 15:19:23.260313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:23.261516"], ["id", 3353]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5822], ["g5_updatable_hub_amenity_id", 3353]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5822]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5822) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:23.265248"], ["id", 5822]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-01-17 15:19:23.267698"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.269663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5823]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5823], ["g5_updatable_hub_amenity_id", 3352]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5823], ["g5_updatable_hub_amenity_id", 3353]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5823]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5823) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:23.278281"], ["id", 5823]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-01-17 15:19:23.280764"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.282819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5824]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5824]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5824) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2243) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2243) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2017-01-17 15:19:23.293273"], ["id", 2243]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5824]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5824]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5823]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3752]] SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3753]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5823]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5822]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3750]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3751]] SQL (0.0ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5822]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5821]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5821]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5820]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5820]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-01-17 15:19:23.320549"], ["updated_at", "2017-01-17 15:19:23.320549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2244]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-01-17 15:19:23.324656"], ["updated_at", "2017-01-17 15:19:23.324656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.326999"], ["updated_at", "2017-01-17 15:19:23.326999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2017-01-17 15:19:23.337701"], ["updated_at", "2017-01-17 15:19:23.337701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-01-17 15:19:23.355380"], ["updated_at", "2017-01-17 15:19:23.355380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.357500"], ["updated_at", "2017-01-17 15:19:23.357500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.359268"], ["updated_at", "2017-01-17 15:19:23.359268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.360986"], ["updated_at", "2017-01-17 15:19:23.360986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (5.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.06ms) Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 5.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-01-17 15:19:23.377413"], ["updated_at", "2017-01-17 15:19:23.377413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.379498"], ["updated_at", "2017-01-17 15:19:23.379498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.381379"], ["updated_at", "2017-01-17 15:19:23.381379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.383039"], ["updated_at", "2017-01-17 15:19:23.383039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2017-01-17 15:19:23.405230"], ["updated_at", "2017-01-17 15:19:23.405230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.421178"], ["updated_at", "2017-01-17 15:19:23.421178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.424623"], ["updated_at", "2017-01-17 15:19:23.424623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.427619"], ["updated_at", "2017-01-17 15:19:23.427619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-01-17 15:19:23.432061"], ["updated_at", "2017-01-17 15:19:23.432061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.433832"], ["updated_at", "2017-01-17 15:19:23.433832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-01-17 15:19:23.437247"], ["updated_at", "2017-01-17 15:19:23.437247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.439123"], ["updated_at", "2017-01-17 15:19:23.439123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.443277"], ["updated_at", "2017-01-17 15:19:23.443277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.445134"], ["updated_at", "2017-01-17 15:19:23.445134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (67.8ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.517394"], ["updated_at", "2017-01-17 15:19:23.517394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.519358"], ["updated_at", "2017-01-17 15:19:23.519358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (1.0ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.524445"], ["updated_at", "2017-01-17 15:19:23.524445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.526746"], ["updated_at", "2017-01-17 15:19:23.526746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.531287"], ["updated_at", "2017-01-17 15:19:23.531287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.533162"], ["updated_at", "2017-01-17 15:19:23.533162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.535992"], ["updated_at", "2017-01-17 15:19:23.535992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.537871"], ["updated_at", "2017-01-17 15:19:23.537871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.553225"], ["updated_at", "2017-01-17 15:19:23.553225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5848]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.558497"], ["updated_at", "2017-01-17 15:19:23.558497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.561466"], ["updated_at", "2017-01-17 15:19:23.561466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.563108"], ["updated_at", "2017-01-17 15:19:23.563108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.566759"], ["updated_at", "2017-01-17 15:19:23.566759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.570065"], ["updated_at", "2017-01-17 15:19:23.570065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.571886"], ["updated_at", "2017-01-17 15:19:23.571886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.581896"], ["updated_at", "2017-01-17 15:19:23.581896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.585579"], ["updated_at", "2017-01-17 15:19:23.585579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.587197"], ["updated_at", "2017-01-17 15:19:23.587197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.591564"], ["updated_at", "2017-01-17 15:19:23.591564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.594586"], ["updated_at", "2017-01-17 15:19:23.594586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.596204"], ["updated_at", "2017-01-17 15:19:23.596204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.599597"], ["updated_at", "2017-01-17 15:19:23.599597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.602245"], ["updated_at", "2017-01-17 15:19:23.602245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.603782"], ["updated_at", "2017-01-17 15:19:23.603782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.606966"], ["updated_at", "2017-01-17 15:19:23.606966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.609750"], ["updated_at", "2017-01-17 15:19:23.609750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.611358"], ["updated_at", "2017-01-17 15:19:23.611358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.613965"], ["updated_at", "2017-01-17 15:19:23.613965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.616559"], ["updated_at", "2017-01-17 15:19:23.616559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.618156"], ["updated_at", "2017-01-17 15:19:23.618156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.621041"], ["updated_at", "2017-01-17 15:19:23.621041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.624694"], ["updated_at", "2017-01-17 15:19:23.624694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.626687"], ["updated_at", "2017-01-17 15:19:23.626687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-01-17 15:19:23.629238"], ["updated_at", "2017-01-17 15:19:23.629238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.632128"], ["updated_at", "2017-01-17 15:19:23.632128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.635015"], ["updated_at", "2017-01-17 15:19:23.635015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.636588"], ["updated_at", "2017-01-17 15:19:23.636588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.640142"], ["updated_at", "2017-01-17 15:19:23.640142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.643181"], ["updated_at", "2017-01-17 15:19:23.643181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.644844"], ["updated_at", "2017-01-17 15:19:23.644844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.648336"], ["updated_at", "2017-01-17 15:19:23.648336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.651019"], ["updated_at", "2017-01-17 15:19:23.651019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.652695"], ["updated_at", "2017-01-17 15:19:23.652695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.656567"], ["updated_at", "2017-01-17 15:19:23.656567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.659431"], ["updated_at", "2017-01-17 15:19:23.659431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.661053"], ["updated_at", "2017-01-17 15:19:23.661053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-01-17 15:19:23.664493"], ["updated_at", "2017-01-17 15:19:23.664493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.667187"], ["updated_at", "2017-01-17 15:19:23.667187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-01-17 15:19:23.668736"], ["updated_at", "2017-01-17 15:19:23.668736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.674639"], ["updated_at", "2017-01-17 15:19:23.674639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2017-01-17 15:19:23.676203"], ["updated_at", "2017-01-17 15:19:23.676203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-21"], ["external_id", 21], ["icon", "icon"], ["created_at", "2017-01-17 15:19:23.677590"], ["updated_at", "2017-01-17 15:19:23.677590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5876], ["g5_updatable_hub_amenity_id", 3354]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5876], ["g5_updatable_hub_amenity_id", 3355]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5876]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5876) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-20|amenity-21|"], ["updated_at", "2017-01-17 15:19:23.682644"], ["id", 5876]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5876]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5876]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5876]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5876]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5876]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-01-17 15:19:23.687378"], ["updated_at", "2017-01-17 15:19:23.687378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-22"], ["external_id", 22], ["icon", "icon"], ["created_at", "2017-01-17 15:19:23.688682"], ["updated_at", "2017-01-17 15:19:23.688682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-23"], ["external_id", 23], ["icon", "icon"], ["created_at", "2017-01-17 15:19:23.689780"], ["updated_at", "2017-01-17 15:19:23.689780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5877], ["g5_updatable_hub_amenity_id", 3356]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5877], ["g5_updatable_hub_amenity_id", 3357]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5877]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5877) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-22|amenity-23|"], ["updated_at", "2017-01-17 15:19:23.694358"], ["id", 5877]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5877]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5877]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-01-17 15:19:23.697495"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-01-17 15:19:23.698548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-01-17 15:19:23.700783"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-01-17 15:19:23.701833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-01-17 15:19:23.704440"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-01-17 15:19:23.705556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-01-17 15:19:23.708157"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-01-17 15:19:23.709183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-01-17 15:19:23.712470"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-01-17 15:19:23.713550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-01-17 15:19:23.716259"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-01-17 15:19:23.717281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-01-17 15:19:23.719857"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-01-17 15:19:23.720959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2017-01-17 15:19:23.725300"], ["updated_at", "2017-01-17 15:19:23.725300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2271) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2271) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2017-01-17 15:19:23.727227"], ["id", 2271]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2271]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.732440"], ["updated_at", "2017-01-17 15:19:23.732440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2272) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2272) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-01-17 15:19:23.733649"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2272]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.738195"], ["updated_at", "2017-01-17 15:19:23.738195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2273) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2273) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-01-17 15:19:23.739493"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2273]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.744102"], ["updated_at", "2017-01-17 15:19:23.744102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2274) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2274) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-01-17 15:19:23.745303"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2274]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-01-17 15:19:23.750076"], ["updated_at", "2017-01-17 15:19:23.750076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2275) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2275) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-01-17 15:19:23.751332"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2275]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-01-17 15:19:23.756748"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-01-17 15:19:23.758476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-01-17 15:19:23.760823"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.762948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5878]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5878]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5878) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-01-17 15:19:23.769570"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.771755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5879]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5879]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5879) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-01-17 15:19:23.779992"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.782348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5880]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-01-17 15:19:23.786456"], ["updated_at", "2017-01-17 15:19:23.786456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-01-17 15:19:23.787603"], ["id", 3358]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5880], ["g5_updatable_hub_amenity_id", 3358]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-01-17 15:19:23.790275"], ["updated_at", "2017-01-17 15:19:23.790275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-01-17 15:19:23.791279"], ["id", 3359]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5880], ["g5_updatable_hub_amenity_id", 3359]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5880]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5880) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:23.795385"], ["id", 5880]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-01-17 15:19:23.798165"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.800532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5881]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5881], ["g5_updatable_hub_amenity_id", 3358]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5881], ["g5_updatable_hub_amenity_id", 3359]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5881]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5881) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-01-17 15:19:23.809319"], ["id", 5881]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-01-17 15:19:23.816884"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-01-17 15:19:23.819125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5882]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5882]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5882) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (26.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (42.7ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (15.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.228890"], ["updated_at", "2017-04-07 19:31:26.228890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.51ms) Completed 200 OK in 44ms (Views: 23.0ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.299926"], ["updated_at", "2017-04-07 19:31:26.299926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} 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"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.3ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.03ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (25.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.6ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (1.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.405012"], ["updated_at", "2017-04-07 19:31:26.405012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-04-07 19:31:26.413741"], ["updated_at", "2017-04-07 19:31:26.413741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (23.7ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.415306"], ["updated_at", "2017-04-07 19:31:26.415306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.440494"], ["updated_at", "2017-04-07 19:31:26.440494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.441543"], ["updated_at", "2017-04-07 19:31:26.441543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (25.7ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5885], ["g5_updatable_hub_amenity_id", 3360]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5885], ["g5_updatable_hub_amenity_id", 3361]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (8.6ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn IN ('g5-c-1soj8z7v-g5-mf'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.499243"], ["updated_at", "2017-04-07 19:31:26.499243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-04-07 19:31:26.501072"], ["updated_at", "2017-04-07 19:31:26.501072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.502374"], ["updated_at", "2017-04-07 19:31:26.502374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.503426"], ["updated_at", "2017-04-07 19:31:26.503426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.504431"], ["updated_at", "2017-04-07 19:31:26.504431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5886], ["g5_updatable_hub_amenity_id", 3363]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5886], ["g5_updatable_hub_amenity_id", 3364]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.512676"], ["updated_at", "2017-04-07 19:31:26.512676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-04-07 19:31:26.514652"], ["updated_at", "2017-04-07 19:31:26.514652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.516042"], ["updated_at", "2017-04-07 19:31:26.516042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.516968"], ["updated_at", "2017-04-07 19:31:26.516968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.517835"], ["updated_at", "2017-04-07 19:31:26.517835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5887], ["g5_updatable_hub_amenity_id", 3366]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5887], ["g5_updatable_hub_amenity_id", 3367]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-07 19:31:26.524337"], ["updated_at", "2017-04-07 19:31:26.524337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.526368"], ["updated_at", "2017-04-07 19:31:26.526368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (14.7ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2017-04-07 19:31:26.555104"], ["updated_at", "2017-04-07 19:31:26.555104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2017-04-07 19:31:26.571488"], ["updated_at", "2017-04-07 19:31:26.571488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2282]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.616608"], ["updated_at", "2017-04-07 19:31:26.616608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.617969"], ["updated_at", "2017-04-07 19:31:26.617969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.618892"], ["updated_at", "2017-04-07 19:31:26.618892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5889], ["g5_updatable_hub_amenity_id", 3369]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5889], ["g5_updatable_hub_amenity_id", 3370]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5889]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5889) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-10|amenity-11|"], ["updated_at", "2017-04-07 19:31:26.625150"], ["id", 5889]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5889]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5889]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5889]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5889]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5889]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.631588"], ["updated_at", "2017-04-07 19:31:26.631588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.632931"], ["updated_at", "2017-04-07 19:31:26.632931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2017-04-07 19:31:26.633882"], ["updated_at", "2017-04-07 19:31:26.633882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5890], ["g5_updatable_hub_amenity_id", 3371]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5890], ["g5_updatable_hub_amenity_id", 3372]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5890]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 5890) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-12|amenity-13|"], ["updated_at", "2017-04-07 19:31:26.639131"], ["id", 5890]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5890]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5890]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-07 19:31:26.645418"], ["updated_at", "2017-04-07 19:31:26.645418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.647276"], ["updated_at", "2017-04-07 19:31:26.647276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-07 19:31:26.651719"], ["updated_at", "2017-04-07 19:31:26.651719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.653971"], ["updated_at", "2017-04-07 19:31:26.653971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.659111"], ["updated_at", "2017-04-07 19:31:26.659111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.661474"], ["updated_at", "2017-04-07 19:31:26.661474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (1.0ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.666601"], ["updated_at", "2017-04-07 19:31:26.666601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.668445"], ["updated_at", "2017-04-07 19:31:26.668445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.673072"], ["updated_at", "2017-04-07 19:31:26.673072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.674980"], ["updated_at", "2017-04-07 19:31:26.674980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.678849"], ["updated_at", "2017-04-07 19:31:26.678849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.681006"], ["updated_at", "2017-04-07 19:31:26.681006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (1.9ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.686227"], ["updated_at", "2017-04-07 19:31:26.686227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.688037"], ["updated_at", "2017-04-07 19:31:26.688037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.699967"], ["updated_at", "2017-04-07 19:31:26.699967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.711722"], ["updated_at", "2017-04-07 19:31:26.711722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (8.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.714272"], ["updated_at", "2017-04-07 19:31:26.714272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.729753"], ["updated_at", "2017-04-07 19:31:26.729753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.733277"], ["updated_at", "2017-04-07 19:31:26.733277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.735429"], ["updated_at", "2017-04-07 19:31:26.735429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.739490"], ["updated_at", "2017-04-07 19:31:26.739490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.742753"], ["updated_at", "2017-04-07 19:31:26.742753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.744814"], ["updated_at", "2017-04-07 19:31:26.744814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.749062"], ["updated_at", "2017-04-07 19:31:26.749062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.753103"], ["updated_at", "2017-04-07 19:31:26.753103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.755024"], ["updated_at", "2017-04-07 19:31:26.755024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.758782"], ["updated_at", "2017-04-07 19:31:26.758782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.762564"], ["updated_at", "2017-04-07 19:31:26.762564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.764573"], ["updated_at", "2017-04-07 19:31:26.764573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.768351"], ["updated_at", "2017-04-07 19:31:26.768351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.771951"], ["updated_at", "2017-04-07 19:31:26.771951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.773864"], ["updated_at", "2017-04-07 19:31:26.773864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.778114"], ["updated_at", "2017-04-07 19:31:26.778114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.781635"], ["updated_at", "2017-04-07 19:31:26.781635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.783421"], ["updated_at", "2017-04-07 19:31:26.783421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.787811"], ["updated_at", "2017-04-07 19:31:26.787811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.791210"], ["updated_at", "2017-04-07 19:31:26.791210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.793379"], ["updated_at", "2017-04-07 19:31:26.793379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.797097"], ["updated_at", "2017-04-07 19:31:26.797097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.800323"], ["updated_at", "2017-04-07 19:31:26.800323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.802070"], ["updated_at", "2017-04-07 19:31:26.802070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-04-07 19:31:26.804783"], ["updated_at", "2017-04-07 19:31:26.804783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.807501"], ["updated_at", "2017-04-07 19:31:26.807501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.810902"], ["updated_at", "2017-04-07 19:31:26.810902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.813319"], ["updated_at", "2017-04-07 19:31:26.813319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.816603"], ["updated_at", "2017-04-07 19:31:26.816603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.819639"], ["updated_at", "2017-04-07 19:31:26.819639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.821339"], ["updated_at", "2017-04-07 19:31:26.821339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.825500"], ["updated_at", "2017-04-07 19:31:26.825500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.829017"], ["updated_at", "2017-04-07 19:31:26.829017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.830946"], ["updated_at", "2017-04-07 19:31:26.830946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-07 19:31:26.835314"], ["updated_at", "2017-04-07 19:31:26.835314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 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", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.843723"], ["updated_at", "2017-04-07 19:31:26.843723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-07 19:31:26.845803"], ["updated_at", "2017-04-07 19:31:26.845803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.856906"], ["updated_at", "2017-04-07 19:31:26.856906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5930]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.860261"], ["updated_at", "2017-04-07 19:31:26.860261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.863540"], ["updated_at", "2017-04-07 19:31:26.863540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:26.866460"], ["updated_at", "2017-04-07 19:31:26.866460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2017-04-07 19:31:26.871496"], ["updated_at", "2017-04-07 19:31:26.871496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-07 19:31:26.920282"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-07 19:31:26.921666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-07 19:31:26.925866"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-07 19:31:26.927456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-07 19:31:26.931592"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-07 19:31:26.932970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-07 19:31:26.936577"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-07 19:31:26.937939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-07 19:31:26.941008"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-07 19:31:26.942171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-07 19:31:26.945962"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-07 19:31:26.947449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-07 19:31:26.951396"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-07 19:31:26.953023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2017-04-07 19:31:26.957562"], ["updated_at", "2017-04-07 19:31:26.957562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2305) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2305) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2017-04-07 19:31:26.959578"], ["id", 2305]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2305]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.965790"], ["updated_at", "2017-04-07 19:31:26.965790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2306) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2306) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-07 19:31:26.967183"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2306]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.973035"], ["updated_at", "2017-04-07 19:31:26.973035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2307) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2307) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-07 19:31:26.974548"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2307]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.979610"], ["updated_at", "2017-04-07 19:31:26.979610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2308) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2308) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-07 19:31:26.980922"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2308]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-07 19:31:26.986441"], ["updated_at", "2017-04-07 19:31:26.986441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2309) LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2309) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-07 19:31:26.987746"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2309]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-07 19:31:26.997205"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-07 19:31:27.000087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.003633"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.007644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5935]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5935]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5935) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-07 19:31:27.018512"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.021321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5936]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5936]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5936) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-07 19:31:27.031708"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.034966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5937]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.040682"], ["updated_at", "2017-04-07 19:31:27.040682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.043925"], ["id", 3373]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5937], ["g5_updatable_hub_amenity_id", 3373]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.047146"], ["updated_at", "2017-04-07 19:31:27.047146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.048319"], ["id", 3374]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5937], ["g5_updatable_hub_amenity_id", 3374]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5937]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5937) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.053474"], ["id", 5937]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-07 19:31:27.070890"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.073700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5938]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5938], ["g5_updatable_hub_amenity_id", 3373]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5938], ["g5_updatable_hub_amenity_id", 3374]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5938]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5938) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.083701"], ["id", 5938]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-07 19:31:27.086350"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.088570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5939]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5939]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5939) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-07 19:31:27.122818"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-07 19:31:27.125025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.128005"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.130387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5940]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5940]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5940) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-07 19:31:27.138250"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.140495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5941]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5941]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5941) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-07 19:31:27.147553"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.150049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5942]] G5Updatable::HubAmenity Load (0.6ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.156317"], ["updated_at", "2017-04-07 19:31:27.156317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.157608"], ["id", 3375]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5942], ["g5_updatable_hub_amenity_id", 3375]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.160661"], ["updated_at", "2017-04-07 19:31:27.160661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.162000"], ["id", 3376]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5942], ["g5_updatable_hub_amenity_id", 3376]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5942]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5942) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.167072"], ["id", 5942]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-07 19:31:27.169773"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.172194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5943]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5943], ["g5_updatable_hub_amenity_id", 3375]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5943], ["g5_updatable_hub_amenity_id", 3376]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5943]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5943) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.181763"], ["id", 5943]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-07 19:31:27.184547"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.186688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5944]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5944]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5944) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-07 19:31:27.198950"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-07 19:31:27.201005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.203529"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.205765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5945]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5945]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5945) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-07 19:31:27.213272"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.216129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5946]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5946]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5946) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-07 19:31:27.223497"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.226549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5947]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.231417"], ["updated_at", "2017-04-07 19:31:27.231417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.232607"], ["id", 3377]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5947], ["g5_updatable_hub_amenity_id", 3377]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.235574"], ["updated_at", "2017-04-07 19:31:27.235574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.236646"], ["id", 3378]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5947], ["g5_updatable_hub_amenity_id", 3378]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5947]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5947) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.240832"], ["id", 5947]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-07 19:31:27.243656"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.246610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5948]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5948], ["g5_updatable_hub_amenity_id", 3377]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5948], ["g5_updatable_hub_amenity_id", 3378]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5948]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5948) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.257188"], ["id", 5948]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-07 19:31:27.260073"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.268438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5949]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5949]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5949) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-07 19:31:27.284904"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-07 19:31:27.286781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.289204"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.291648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5950]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5950]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5950) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-07 19:31:27.299379"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.304747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5951]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5951]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5951) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-07 19:31:27.312763"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.315126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5952]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.319185"], ["updated_at", "2017-04-07 19:31:27.319185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.320172"], ["id", 3379]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5952], ["g5_updatable_hub_amenity_id", 3379]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.322495"], ["updated_at", "2017-04-07 19:31:27.322495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.323714"], ["id", 3380]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5952], ["g5_updatable_hub_amenity_id", 3380]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5952]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5952) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.328269"], ["id", 5952]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-07 19:31:27.330970"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.333158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5953]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5953], ["g5_updatable_hub_amenity_id", 3379]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5953], ["g5_updatable_hub_amenity_id", 3380]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5953]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5953) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.342456"], ["id", 5953]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-07 19:31:27.345540"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.347728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5954]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5954]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5954) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5952]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-07 19:31:27.361267"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-07 19:31:27.363225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.365690"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.367848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5955]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5955]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5955) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-07 19:31:27.374798"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.376898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5956]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5956]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5956) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-07 19:31:27.383738"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.385878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5957]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.389889"], ["updated_at", "2017-04-07 19:31:27.389889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.391188"], ["id", 3381]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5957], ["g5_updatable_hub_amenity_id", 3381]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.394019"], ["updated_at", "2017-04-07 19:31:27.394019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.395439"], ["id", 3382]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5957], ["g5_updatable_hub_amenity_id", 3382]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5957]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5957) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.399552"], ["id", 5957]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-07 19:31:27.402338"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.404444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5958]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5958], ["g5_updatable_hub_amenity_id", 3381]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5958], ["g5_updatable_hub_amenity_id", 3382]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5958]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5958) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.413544"], ["id", 5958]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-07 19:31:27.416361"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.418553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5959]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5959]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5959) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2314) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2314) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2017-04-07 19:31:27.430337"], ["id", 2314]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5959]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5959]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5958]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3790]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3791]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5958]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5957]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3788]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3789]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5957]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5956]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5956]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5955]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5955]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-07 19:31:27.454977"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-07 19:31:27.457033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.459373"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.462041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5960]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5960]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5960) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-07 19:31:27.469969"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.472555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5961]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5961]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 5961) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (15.6ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-07 19:31:27.479569"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.482135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5962]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.502384"], ["updated_at", "2017-04-07 19:31:27.502384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.503715"], ["id", 3383]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5962], ["g5_updatable_hub_amenity_id", 3383]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.506409"], ["updated_at", "2017-04-07 19:31:27.506409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.507486"], ["id", 3384]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5962], ["g5_updatable_hub_amenity_id", 3384]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5962]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 5962) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.511767"], ["id", 5962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-07 19:31:27.514925"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.517123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5963]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5963], ["g5_updatable_hub_amenity_id", 3383]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5963], ["g5_updatable_hub_amenity_id", 3384]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5963]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 5963) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.525839"], ["id", 5963]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-07 19:31:27.528710"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.531088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5964]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5964]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 5964) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (1.7ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2315) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2315) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2017-04-07 19:31:27.544883"], ["id", 2315]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5960) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2017-04-07 19:31:27.551947"], ["id", 5960]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5960]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5960]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5960) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5964]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5964]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5963]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3794]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3795]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5963]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5962]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3792]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3793]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5962]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5961]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5961]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.574869"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.577064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5965]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.581211"], ["updated_at", "2017-04-07 19:31:27.581211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.582204"], ["id", 3385]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5965], ["g5_updatable_hub_amenity_id", 3385]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.584417"], ["updated_at", "2017-04-07 19:31:27.584417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.585395"], ["id", 3386]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5965], ["g5_updatable_hub_amenity_id", 3386]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5965]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5965) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.588941"], ["id", 5965]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.595664"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.597973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5966]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.602398"], ["updated_at", "2017-04-07 19:31:27.602398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.603400"], ["id", 3387]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5966], ["g5_updatable_hub_amenity_id", 3387]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.605596"], ["updated_at", "2017-04-07 19:31:27.605596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.606637"], ["id", 3388]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5966], ["g5_updatable_hub_amenity_id", 3388]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5966]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5966) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.610444"], ["id", 5966]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.618035"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.620233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5967]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.624501"], ["updated_at", "2017-04-07 19:31:27.624501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.625840"], ["id", 3389]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5967], ["g5_updatable_hub_amenity_id", 3389]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.628650"], ["updated_at", "2017-04-07 19:31:27.628650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.629797"], ["id", 3390]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5967], ["g5_updatable_hub_amenity_id", 3390]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5967]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5967) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.633622"], ["id", 5967]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.641496"], ["updated_at", "2017-04-07 19:31:27.641496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2017-04-07 19:31:27.652853"], ["updated_at", "2017-04-07 19:31:27.652853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.656937"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.659084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5970]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.663560"], ["updated_at", "2017-04-07 19:31:27.663560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.664562"], ["id", 3391]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5970], ["g5_updatable_hub_amenity_id", 3391]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.666829"], ["updated_at", "2017-04-07 19:31:27.666829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.667699"], ["id", 3392]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5970], ["g5_updatable_hub_amenity_id", 3392]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5970]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (1.0ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5970) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.672746"], ["id", 5970]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5968]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5968]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.680688"], ["updated_at", "2017-04-07 19:31:27.680688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.682484"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.684580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5972]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.688350"], ["updated_at", "2017-04-07 19:31:27.688350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.689288"], ["id", 3393]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5972], ["g5_updatable_hub_amenity_id", 3393]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.691923"], ["updated_at", "2017-04-07 19:31:27.691923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.692929"], ["id", 3394]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5972], ["g5_updatable_hub_amenity_id", 3394]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5972]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5972) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.697489"], ["id", 5972]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5971]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 5971]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.704369"], ["updated_at", "2017-04-07 19:31:27.704369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2017-04-07 19:31:27.705962"], ["updated_at", "2017-04-07 19:31:27.705962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5973], ["g5_updatable_hub_amenity_id", 3395]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5973) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.708514"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5973]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5973]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.716402"], ["updated_at", "2017-04-07 19:31:27.716402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.717421"], ["id", 3396]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5973], ["g5_updatable_hub_amenity_id", 3396]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.719612"], ["updated_at", "2017-04-07 19:31:27.719612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.720549"], ["id", 3397]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5973], ["g5_updatable_hub_amenity_id", 3397]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5973]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5973) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.724635"], ["id", 5973]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5973]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.730979"], ["updated_at", "2017-04-07 19:31:27.730979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2017-04-07 19:31:27.732742"], ["updated_at", "2017-04-07 19:31:27.732742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5974], ["g5_updatable_hub_amenity_id", 3398]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5974) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.736040"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5974]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5974]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.742735"], ["updated_at", "2017-04-07 19:31:27.742735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.743748"], ["id", 3399]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5974], ["g5_updatable_hub_amenity_id", 3399]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.746594"], ["updated_at", "2017-04-07 19:31:27.746594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.747640"], ["id", 3400]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5974], ["g5_updatable_hub_amenity_id", 3400]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5974]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5974) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.752323"], ["id", 5974]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.756785"], ["updated_at", "2017-04-07 19:31:27.756785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2017-04-07 19:31:27.758387"], ["updated_at", "2017-04-07 19:31:27.758387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5975], ["g5_updatable_hub_amenity_id", 3401]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5975) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.761569"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5975]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5975]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.768321"], ["updated_at", "2017-04-07 19:31:27.768321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.769366"], ["id", 3402]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5975], ["g5_updatable_hub_amenity_id", 3402]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.772253"], ["updated_at", "2017-04-07 19:31:27.772253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.773528"], ["id", 3403]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5975], ["g5_updatable_hub_amenity_id", 3403]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5975]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5975) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.777401"], ["id", 5975]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.782973"], ["updated_at", "2017-04-07 19:31:27.782973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2017-04-07 19:31:27.784558"], ["updated_at", "2017-04-07 19:31:27.784558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5976], ["g5_updatable_hub_amenity_id", 3404]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5976) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.786972"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5976]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5976]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.794228"], ["updated_at", "2017-04-07 19:31:27.794228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.795560"], ["id", 3405]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5976], ["g5_updatable_hub_amenity_id", 3405]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.797815"], ["updated_at", "2017-04-07 19:31:27.797815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.798861"], ["id", 3406]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5976], ["g5_updatable_hub_amenity_id", 3406]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5976]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5976) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.803114"], ["id", 5976]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.808012"], ["updated_at", "2017-04-07 19:31:27.808012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2017-04-07 19:31:27.809520"], ["updated_at", "2017-04-07 19:31:27.809520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5977], ["g5_updatable_hub_amenity_id", 3407]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5977) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.812811"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5977]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5977]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.820244"], ["updated_at", "2017-04-07 19:31:27.820244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.821255"], ["id", 3408]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5977], ["g5_updatable_hub_amenity_id", 3408]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.823976"], ["updated_at", "2017-04-07 19:31:27.823976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.825201"], ["id", 3409]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5977], ["g5_updatable_hub_amenity_id", 3409]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5977]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5977) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.829589"], ["id", 5977]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.835346"], ["updated_at", "2017-04-07 19:31:27.835346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2017-04-07 19:31:27.837068"], ["updated_at", "2017-04-07 19:31:27.837068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5978], ["g5_updatable_hub_amenity_id", 3410]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5978) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.839922"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5978]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5978]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.847254"], ["updated_at", "2017-04-07 19:31:27.847254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.848321"], ["id", 3411]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5978], ["g5_updatable_hub_amenity_id", 3411]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.851054"], ["updated_at", "2017-04-07 19:31:27.851054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.852461"], ["id", 3412]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5978], ["g5_updatable_hub_amenity_id", 3412]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5978]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5978) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.856801"], ["id", 5978]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.867698"], ["updated_at", "2017-04-07 19:31:27.867698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2017-04-07 19:31:27.869351"], ["updated_at", "2017-04-07 19:31:27.869351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5979], ["g5_updatable_hub_amenity_id", 3413]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5979) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.872269"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5979]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5979]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.879649"], ["updated_at", "2017-04-07 19:31:27.879649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.880900"], ["id", 3414]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5979], ["g5_updatable_hub_amenity_id", 3414]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.883419"], ["updated_at", "2017-04-07 19:31:27.883419"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.884535"], ["id", 3415]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5979], ["g5_updatable_hub_amenity_id", 3415]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5979]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5979) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.888334"], ["id", 5979]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-07 19:31:27.892076"], ["updated_at", "2017-04-07 19:31:27.892076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:27.893973"], ["updated_at", "2017-04-07 19:31:27.893973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2316]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5980]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.897990"], ["updated_at", "2017-04-07 19:31:27.897990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-21"], ["external_id", 21], ["icon", "icon"], ["created_at", "2017-04-07 19:31:27.899789"], ["updated_at", "2017-04-07 19:31:27.899789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5981], ["g5_updatable_hub_amenity_id", 3416]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5981) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.902852"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5981]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5981]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.910087"], ["updated_at", "2017-04-07 19:31:27.910087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.911378"], ["id", 3417]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5981], ["g5_updatable_hub_amenity_id", 3417]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.914543"], ["updated_at", "2017-04-07 19:31:27.914543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.915561"], ["id", 3418]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5981], ["g5_updatable_hub_amenity_id", 3418]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5981]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5981) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.919427"], ["id", 5981]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-07 19:31:27.922642"], ["updated_at", "2017-04-07 19:31:27.922642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:27.924774"], ["updated_at", "2017-04-07 19:31:27.924774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2317]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5982]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.928752"], ["updated_at", "2017-04-07 19:31:27.928752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-22"], ["external_id", 22], ["icon", "icon"], ["created_at", "2017-04-07 19:31:27.930562"], ["updated_at", "2017-04-07 19:31:27.930562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5983], ["g5_updatable_hub_amenity_id", 3419]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5983) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.933377"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5983]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5983]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.940688"], ["updated_at", "2017-04-07 19:31:27.940688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.941672"], ["id", 3420]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5983], ["g5_updatable_hub_amenity_id", 3420]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.943914"], ["updated_at", "2017-04-07 19:31:27.943914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.945334"], ["id", 3421]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5983], ["g5_updatable_hub_amenity_id", 3421]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5983]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5983) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.949482"], ["id", 5983]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.955742"], ["updated_at", "2017-04-07 19:31:27.955742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-23"], ["external_id", 23], ["icon", "icon"], ["created_at", "2017-04-07 19:31:27.957535"], ["updated_at", "2017-04-07 19:31:27.957535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5984], ["g5_updatable_hub_amenity_id", 3422]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5984) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.960220"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5984]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5984]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.967644"], ["updated_at", "2017-04-07 19:31:27.967644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.968678"], ["id", 3423]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5984], ["g5_updatable_hub_amenity_id", 3423]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.971070"], ["updated_at", "2017-04-07 19:31:27.971070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.972268"], ["id", 3424]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5984], ["g5_updatable_hub_amenity_id", 3424]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5984]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5984) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.976176"], ["id", 5984]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:27.981434"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:27.983869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5985]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:27.987634"], ["updated_at", "2017-04-07 19:31:27.987634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:27.988618"], ["id", 3425]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5985], ["g5_updatable_hub_amenity_id", 3425]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:27.991136"], ["updated_at", "2017-04-07 19:31:27.991136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:27.992456"], ["id", 3426]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5985], ["g5_updatable_hub_amenity_id", 3426]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5985]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5985) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:27.996906"], ["id", 5985]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.001021"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.003589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5986]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.007956"], ["updated_at", "2017-04-07 19:31:28.007956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.009016"], ["id", 3427]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5986], ["g5_updatable_hub_amenity_id", 3427]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.011423"], ["updated_at", "2017-04-07 19:31:28.011423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.012645"], ["id", 3428]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5986], ["g5_updatable_hub_amenity_id", 3428]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5986]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5986) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.016894"], ["id", 5986]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5986]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5986]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.023301"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.025645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5987]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.030530"], ["updated_at", "2017-04-07 19:31:28.030530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.031709"], ["id", 3429]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5987], ["g5_updatable_hub_amenity_id", 3429]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.034369"], ["updated_at", "2017-04-07 19:31:28.034369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.035728"], ["id", 3430]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5987], ["g5_updatable_hub_amenity_id", 3430]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5987]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5987) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.039581"], ["id", 5987]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.044225"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.047202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5988]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.052283"], ["updated_at", "2017-04-07 19:31:28.052283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.053549"], ["id", 3431]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5988], ["g5_updatable_hub_amenity_id", 3431]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.056192"], ["updated_at", "2017-04-07 19:31:28.056192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.057271"], ["id", 3432]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5988], ["g5_updatable_hub_amenity_id", 3432]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5988]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5988) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.061309"], ["id", 5988]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.067926"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.070512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5989]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.074946"], ["updated_at", "2017-04-07 19:31:28.074946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.075982"], ["id", 3433]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5989], ["g5_updatable_hub_amenity_id", 3433]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.079324"], ["updated_at", "2017-04-07 19:31:28.079324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.080665"], ["id", 3434]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5989], ["g5_updatable_hub_amenity_id", 3434]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5989]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5989) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.089779"], ["id", 5989]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.095547"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.097877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5990]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.102452"], ["updated_at", "2017-04-07 19:31:28.102452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.103759"], ["id", 3435]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5990], ["g5_updatable_hub_amenity_id", 3435]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.106588"], ["updated_at", "2017-04-07 19:31:28.106588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.107567"], ["id", 3436]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5990], ["g5_updatable_hub_amenity_id", 3436]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5990]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5990) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.111913"], ["id", 5990]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-07 19:31:28.116098"], ["updated_at", "2017-04-07 19:31:28.116098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:28.118061"], ["updated_at", "2017-04-07 19:31:28.118061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2318]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 5991]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.121425"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.123827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5992]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.128344"], ["updated_at", "2017-04-07 19:31:28.128344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.129610"], ["id", 3437]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5992], ["g5_updatable_hub_amenity_id", 3437]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.132188"], ["updated_at", "2017-04-07 19:31:28.132188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.133356"], ["id", 3438]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5992], ["g5_updatable_hub_amenity_id", 3438]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5992]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5992) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.137912"], ["id", 5992]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.143159"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.145671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5993]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.150302"], ["updated_at", "2017-04-07 19:31:28.150302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.151676"], ["id", 3439]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5993], ["g5_updatable_hub_amenity_id", 3439]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.154270"], ["updated_at", "2017-04-07 19:31:28.154270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.155212"], ["id", 3440]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5993], ["g5_updatable_hub_amenity_id", 3440]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5993]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5993) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.159181"], ["id", 5993]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.164920"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.167145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5994]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.171551"], ["updated_at", "2017-04-07 19:31:28.171551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.172923"], ["id", 3441]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5994], ["g5_updatable_hub_amenity_id", 3441]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.175247"], ["updated_at", "2017-04-07 19:31:28.175247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.176157"], ["id", 3442]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5994], ["g5_updatable_hub_amenity_id", 3442]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5994]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5994) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.180460"], ["id", 5994]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.185363"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.187599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5995]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.191857"], ["updated_at", "2017-04-07 19:31:28.191857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.193144"], ["id", 3443]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5995], ["g5_updatable_hub_amenity_id", 3443]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.196170"], ["updated_at", "2017-04-07 19:31:28.196170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.197201"], ["id", 3444]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5995], ["g5_updatable_hub_amenity_id", 3444]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5995]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5995) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.201212"], ["id", 5995]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.206104"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.208455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5996]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.213041"], ["updated_at", "2017-04-07 19:31:28.213041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.214498"], ["id", 3445]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5996], ["g5_updatable_hub_amenity_id", 3445]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.217002"], ["updated_at", "2017-04-07 19:31:28.217002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.217944"], ["id", 3446]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5996], ["g5_updatable_hub_amenity_id", 3446]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5996]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5996) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.221756"], ["id", 5996]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.226896"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.229707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5997]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.233970"], ["updated_at", "2017-04-07 19:31:28.233970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.235280"], ["id", 3447]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5997], ["g5_updatable_hub_amenity_id", 3447]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.237774"], ["updated_at", "2017-04-07 19:31:28.237774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.238706"], ["id", 3448]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5997], ["g5_updatable_hub_amenity_id", 3448]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5997]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5997) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.242614"], ["id", 5997]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:28.248077"], ["updated_at", "2017-04-07 19:31:28.248077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5998) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.250120"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5998]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5998]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.257874"], ["updated_at", "2017-04-07 19:31:28.257874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.258967"], ["id", 3449]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5998], ["g5_updatable_hub_amenity_id", 3449]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.261420"], ["updated_at", "2017-04-07 19:31:28.261420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.262729"], ["id", 3450]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5998], ["g5_updatable_hub_amenity_id", 3450]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5998]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5998) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.266910"], ["id", 5998]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:28.271215"], ["updated_at", "2017-04-07 19:31:28.271215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5999) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.273170"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 5999]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5999]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.280710"], ["updated_at", "2017-04-07 19:31:28.280710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.281900"], ["id", 3451]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5999], ["g5_updatable_hub_amenity_id", 3451]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.284270"], ["updated_at", "2017-04-07 19:31:28.284270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.285201"], ["id", 3452]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 5999], ["g5_updatable_hub_amenity_id", 3452]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 5999]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 5999) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.288954"], ["id", 5999]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:28.299015"], ["updated_at", "2017-04-07 19:31:28.299015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6000) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.301764"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6000]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6000]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6000]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6000) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-07 19:31:28.312468"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.315171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6001]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6001]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 6001) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-07 19:31:28.322147"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.324522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6002]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.329274"], ["updated_at", "2017-04-07 19:31:28.329274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.330467"], ["id", 3453]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6002], ["g5_updatable_hub_amenity_id", 3453]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.333437"], ["updated_at", "2017-04-07 19:31:28.333437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.334941"], ["id", 3454]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6002], ["g5_updatable_hub_amenity_id", 3454]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6002]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 6002) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.339222"], ["id", 6002]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-07 19:31:28.341924"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.344075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6003]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6003], ["g5_updatable_hub_amenity_id", 3453]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6003], ["g5_updatable_hub_amenity_id", 3454]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6003]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 6003) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.353485"], ["id", 6003]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-07 19:31:28.355994"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-07 19:31:28.358442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6004]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6004]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 6004) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2017-04-07 18:31:28.366643"], ["client_urn", "client_uid"], ["created_at", "2017-04-07 19:31:28.369343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6005) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.376489"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6005]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6005]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.383923"], ["updated_at", "2017-04-07 19:31:28.383923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.384963"], ["id", 3455]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6005], ["g5_updatable_hub_amenity_id", 3455]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.387351"], ["updated_at", "2017-04-07 19:31:28.387351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.388389"], ["id", 3456]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6005], ["g5_updatable_hub_amenity_id", 3456]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6005]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6005) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.392778"], ["id", 6005]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6005]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2017-04-07 18:31:28.397130"], ["client_urn", "client_uid"], ["created_at", "2017-04-07 19:31:28.400257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6006) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-07 19:31:28.407542"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6006]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6006]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-07 19:31:28.415143"], ["updated_at", "2017-04-07 19:31:28.415143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-07 19:31:28.416300"], ["id", 3457]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6006], ["g5_updatable_hub_amenity_id", 3457]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-07 19:31:28.418822"], ["updated_at", "2017-04-07 19:31:28.418822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-07 19:31:28.419771"], ["id", 3458]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6006], ["g5_updatable_hub_amenity_id", 3458]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6006]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6006) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-07 19:31:28.423761"], ["id", 6006]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-07 19:31:28.427391"], ["updated_at", "2017-04-07 19:31:28.427391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:28.429427"], ["updated_at", "2017-04-07 19:31:28.429427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2319]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6007]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2017-04-07 19:31:28.433855"], ["updated_at", "2017-04-07 19:31:28.433855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:28.436077"], ["updated_at", "2017-04-07 19:31:28.436077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:28.437997"], ["updated_at", "2017-04-07 19:31:28.437997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:28.439852"], ["updated_at", "2017-04-07 19:31:28.439852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-07 19:31:28.449924"], ["updated_at", "2017-04-07 19:31:28.449924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:28.452424"], ["updated_at", "2017-04-07 19:31:28.452424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:28.454824"], ["updated_at", "2017-04-07 19:31:28.454824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-07 19:31:28.457072"], ["updated_at", "2017-04-07 19:31:28.457072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (27.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (7.8ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (27.9ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (27.1ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:24.585865"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.597923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (24.9ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6014]] G5Updatable::HubAmenity Load (14.4ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:24.706935"], ["updated_at", "2017-04-19 17:55:24.706935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:24.712245"], ["id", 3459]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (18.4ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6014], ["g5_updatable_hub_amenity_id", 3459]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:24.738672"], ["updated_at", "2017-04-19 17:55:24.738672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:24.739794"], ["id", 3460]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6014], ["g5_updatable_hub_amenity_id", 3460]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6014]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6014) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:24.747052"], ["id", 6014]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (23.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (1.4ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-19 17:55:24.783582"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-19 17:55:24.786806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:24.791008"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.793244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6015]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6015]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6015) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-19 17:55:24.800391"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.802592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6016]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6016]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 6016) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-19 17:55:24.809798"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.811925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6017]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:24.825028"], ["updated_at", "2017-04-19 17:55:24.825028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:24.826163"], ["id", 3461]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6017], ["g5_updatable_hub_amenity_id", 3461]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:24.828741"], ["updated_at", "2017-04-19 17:55:24.828741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:24.829804"], ["id", 3462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6017], ["g5_updatable_hub_amenity_id", 3462]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6017]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 6017) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:24.834191"], ["id", 6017]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-19 17:55:24.837186"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.839634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6018]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6018], ["g5_updatable_hub_amenity_id", 3461]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6018], ["g5_updatable_hub_amenity_id", 3462]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6018]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 6018) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:24.849074"], ["id", 6018]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-19 17:55:24.852181"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.854688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6019]] G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6019]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 6019) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-19 17:55:24.873903"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-19 17:55:24.876011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:24.878998"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.881701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6020]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6020]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6020) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-19 17:55:24.889488"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.891923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6021]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6021]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 6021) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-19 17:55:24.899896"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.902288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6022]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:24.906631"], ["updated_at", "2017-04-19 17:55:24.906631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:24.907721"], ["id", 3463]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6022], ["g5_updatable_hub_amenity_id", 3463]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:24.910190"], ["updated_at", "2017-04-19 17:55:24.910190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:24.911149"], ["id", 3464]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6022], ["g5_updatable_hub_amenity_id", 3464]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6022]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 6022) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:24.915255"], ["id", 6022]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-19 17:55:24.919374"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.922225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6023]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6023], ["g5_updatable_hub_amenity_id", 3463]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6023], ["g5_updatable_hub_amenity_id", 3464]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6023]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 6023) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:24.933362"], ["id", 6023]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-19 17:55:24.937432"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.940352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6024]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6024]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 6024) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6022]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-19 17:55:24.956564"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-19 17:55:24.958758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:24.961812"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.964536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6025]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6025]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6025) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-19 17:55:24.973656"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.976285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6026]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6026]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 6026) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-19 17:55:24.985743"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:24.989302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6027]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:24.994336"], ["updated_at", "2017-04-19 17:55:24.994336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:24.995663"], ["id", 3465]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6027], ["g5_updatable_hub_amenity_id", 3465]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:24.998036"], ["updated_at", "2017-04-19 17:55:24.998036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:24.999106"], ["id", 3466]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6027], ["g5_updatable_hub_amenity_id", 3466]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6027]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 6027) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.003284"], ["id", 6027]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-19 17:55:25.006320"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.008913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6028]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6028], ["g5_updatable_hub_amenity_id", 3465]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6028], ["g5_updatable_hub_amenity_id", 3466]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6028]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 6028) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.030904"], ["id", 6028]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-19 17:55:25.033351"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.035428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6029]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6029]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 6029) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-19 17:55:25.046157"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-19 17:55:25.047862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.050047"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.052070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6030]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6030]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6030) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-19 17:55:25.058426"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.060388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6031]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6031]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 6031) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-19 17:55:25.066552"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.068752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6032]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.072832"], ["updated_at", "2017-04-19 17:55:25.072832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.073996"], ["id", 3467]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6032], ["g5_updatable_hub_amenity_id", 3467]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.076413"], ["updated_at", "2017-04-19 17:55:25.076413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.077608"], ["id", 3468]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6032], ["g5_updatable_hub_amenity_id", 3468]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6032]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 6032) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.081803"], ["id", 6032]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-19 17:55:25.084555"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.086679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6033]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6033], ["g5_updatable_hub_amenity_id", 3467]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6033], ["g5_updatable_hub_amenity_id", 3468]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6033]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 6033) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.094926"], ["id", 6033]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-19 17:55:25.097383"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.099397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6034]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6034]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 6034) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2325) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2325) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2017-04-19 17:55:25.109480"], ["id", 2325]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6034]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 6034]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6033]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3888]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3889]] SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 6033]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6032]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3886]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3887]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 6032]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6031]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 6031]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6030]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 6030]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-19 17:55:25.125742"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-19 17:55:25.127727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.130013"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.132088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6035]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6035]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6035) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-19 17:55:25.138672"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.140753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6036]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6036]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 6036) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-19 17:55:25.147488"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.149627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6037]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.153438"], ["updated_at", "2017-04-19 17:55:25.153438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.154387"], ["id", 3469]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6037], ["g5_updatable_hub_amenity_id", 3469]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.157078"], ["updated_at", "2017-04-19 17:55:25.157078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.158107"], ["id", 3470]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6037], ["g5_updatable_hub_amenity_id", 3470]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6037]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 6037) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.162064"], ["id", 6037]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-19 17:55:25.164374"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.166391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6038]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6038], ["g5_updatable_hub_amenity_id", 3469]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6038], ["g5_updatable_hub_amenity_id", 3470]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6038]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 6038) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.174366"], ["id", 6038]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-19 17:55:25.177062"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.179288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6039]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6039]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 6039) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2326) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' AND "g5_updatable_clients"."id" != 2326) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2017-04-19 17:55:25.194094"], ["id", 2326]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6035) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2017-04-19 17:55:25.199746"], ["id", 6035]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6035]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6035]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6035) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6039]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 6039]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6038]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3892]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3893]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 6038]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6037]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3890]] SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."id" = $1 [["id", 3891]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 6037]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6036]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 6036]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN undefined method `work' for nil:NilClass undefined method `work' for nil:NilClass  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.4ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2017-04-19 17:55:25.250671"], ["updated_at", "2017-04-19 17:55:25.250671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:25.255101"], ["updated_at", "2017-04-19 17:55:25.255101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2017-04-19 17:55:25.261807"], ["updated_at", "2017-04-19 17:55:25.261807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1 G5Updatable::Client Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" IS NULL LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-19 17:55:25.285262"], ["updated_at", "2017-04-19 17:55:25.285262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2329]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dead_urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.289752"], ["updated_at", "2017-04-19 17:55:25.289752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.291308"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.293305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6042]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.297049"], ["updated_at", "2017-04-19 17:55:25.297049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.297976"], ["id", 3471]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6042], ["g5_updatable_hub_amenity_id", 3471]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.300126"], ["updated_at", "2017-04-19 17:55:25.300126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.301040"], ["id", 3472]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6042], ["g5_updatable_hub_amenity_id", 3472]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6042]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6042) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.304742"], ["id", 6042]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6041]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 6041]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_urn" = $2 [["urn", "dead_urn"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.310674"], ["updated_at", "2017-04-19 17:55:25.310674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-1"], ["external_id", 1], ["icon", "icon"], ["created_at", "2017-04-19 17:55:25.312207"], ["updated_at", "2017-04-19 17:55:25.312207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6043], ["g5_updatable_hub_amenity_id", 3473]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6043) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.314687"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6043]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6043]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.321161"], ["id", 3473]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6043], ["g5_updatable_hub_amenity_id", 3473]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.323418"], ["updated_at", "2017-04-19 17:55:25.323418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.324400"], ["id", 3474]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6043], ["g5_updatable_hub_amenity_id", 3474]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6043]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6043) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.328144"], ["id", 6043]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.332500"], ["updated_at", "2017-04-19 17:55:25.332500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-2"], ["external_id", 2], ["icon", "icon"], ["created_at", "2017-04-19 17:55:25.333999"], ["updated_at", "2017-04-19 17:55:25.333999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6044], ["g5_updatable_hub_amenity_id", 3475]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6044) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.336516"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6044]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6044]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.343347"], ["updated_at", "2017-04-19 17:55:25.343347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.344313"], ["id", 3476]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6044], ["g5_updatable_hub_amenity_id", 3476]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.346494"], ["updated_at", "2017-04-19 17:55:25.346494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.347388"], ["id", 3477]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6044], ["g5_updatable_hub_amenity_id", 3477]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6044]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6044) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.350899"], ["id", 6044]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.355848"], ["updated_at", "2017-04-19 17:55:25.355848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-3"], ["external_id", 3], ["icon", "icon"], ["created_at", "2017-04-19 17:55:25.357420"], ["updated_at", "2017-04-19 17:55:25.357420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6045], ["g5_updatable_hub_amenity_id", 3478]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6045) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.360188"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6045]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6045]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.366670"], ["updated_at", "2017-04-19 17:55:25.366670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.367623"], ["id", 3479]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6045], ["g5_updatable_hub_amenity_id", 3479]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.369746"], ["updated_at", "2017-04-19 17:55:25.369746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.370626"], ["id", 3480]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6045], ["g5_updatable_hub_amenity_id", 3480]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6045]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6045) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.374082"], ["id", 6045]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6045]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.379786"], ["updated_at", "2017-04-19 17:55:25.379786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-4"], ["external_id", 4], ["icon", "icon"], ["created_at", "2017-04-19 17:55:25.381461"], ["updated_at", "2017-04-19 17:55:25.381461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6046], ["g5_updatable_hub_amenity_id", 3481]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6046) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.384374"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6046]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6046]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.391385"], ["updated_at", "2017-04-19 17:55:25.391385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.392344"], ["id", 3482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6046], ["g5_updatable_hub_amenity_id", 3482]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.394501"], ["updated_at", "2017-04-19 17:55:25.394501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.395588"], ["id", 3483]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6046], ["g5_updatable_hub_amenity_id", 3483]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6046]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6046) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.399276"], ["id", 6046]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.404390"], ["updated_at", "2017-04-19 17:55:25.404390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-5"], ["external_id", 5], ["icon", "icon"], ["created_at", "2017-04-19 17:55:25.405937"], ["updated_at", "2017-04-19 17:55:25.405937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6047], ["g5_updatable_hub_amenity_id", 3484]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.3ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6047) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.408655"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6047]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6047]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.419624"], ["updated_at", "2017-04-19 17:55:25.419624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.420534"], ["id", 3485]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6047], ["g5_updatable_hub_amenity_id", 3485]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.422641"], ["updated_at", "2017-04-19 17:55:25.422641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.423552"], ["id", 3486]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6047], ["g5_updatable_hub_amenity_id", 3486]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6047]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6047) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.427117"], ["id", 6047]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.432413"], ["updated_at", "2017-04-19 17:55:25.432413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-6"], ["external_id", 6], ["icon", "icon"], ["created_at", "2017-04-19 17:55:25.433866"], ["updated_at", "2017-04-19 17:55:25.433866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6048], ["g5_updatable_hub_amenity_id", 3487]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6048) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.436291"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6048]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6048]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.442675"], ["updated_at", "2017-04-19 17:55:25.442675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.443592"], ["id", 3488]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6048], ["g5_updatable_hub_amenity_id", 3488]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.445787"], ["updated_at", "2017-04-19 17:55:25.445787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.446698"], ["id", 3489]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6048], ["g5_updatable_hub_amenity_id", 3489]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6048]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6048) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.450251"], ["id", 6048]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.457777"], ["updated_at", "2017-04-19 17:55:25.457777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-7"], ["external_id", 7], ["icon", "icon"], ["created_at", "2017-04-19 17:55:25.459269"], ["updated_at", "2017-04-19 17:55:25.459269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6049], ["g5_updatable_hub_amenity_id", 3490]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6049) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.461863"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6049]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6049]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.468426"], ["updated_at", "2017-04-19 17:55:25.468426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.469351"], ["id", 3491]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6049], ["g5_updatable_hub_amenity_id", 3491]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.471671"], ["id", 3490]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6049], ["g5_updatable_hub_amenity_id", 3490]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6049]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6049) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.475498"], ["id", 6049]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.481097"], ["updated_at", "2017-04-19 17:55:25.481097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-8"], ["external_id", 8], ["icon", "icon"], ["created_at", "2017-04-19 17:55:25.482661"], ["updated_at", "2017-04-19 17:55:25.482661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6050], ["g5_updatable_hub_amenity_id", 3492]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6050) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.485226"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6050]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6050]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.491835"], ["updated_at", "2017-04-19 17:55:25.491835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.492781"], ["id", 3493]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6050], ["g5_updatable_hub_amenity_id", 3493]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.494881"], ["updated_at", "2017-04-19 17:55:25.494881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.495962"], ["id", 3494]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6050], ["g5_updatable_hub_amenity_id", 3494]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6050]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6050) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.499571"], ["id", 6050]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-19 17:55:25.502605"], ["updated_at", "2017-04-19 17:55:25.502605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:25.504252"], ["updated_at", "2017-04-19 17:55:25.504252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2330]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6051]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.507885"], ["updated_at", "2017-04-19 17:55:25.507885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-9"], ["external_id", 9], ["icon", "icon"], ["created_at", "2017-04-19 17:55:25.509323"], ["updated_at", "2017-04-19 17:55:25.509323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6052], ["g5_updatable_hub_amenity_id", 3495]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6052) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.511839"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6052]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6052]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.518136"], ["updated_at", "2017-04-19 17:55:25.518136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.519081"], ["id", 3496]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6052], ["g5_updatable_hub_amenity_id", 3496]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.521235"], ["updated_at", "2017-04-19 17:55:25.521235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.522148"], ["id", 3497]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6052], ["g5_updatable_hub_amenity_id", 3497]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6052]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6052) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.525577"], ["id", 6052]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "g5-c-1soj8m6e-g5-multifamily"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.530934"], ["updated_at", "2017-04-19 17:55:25.530934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-10"], ["external_id", 10], ["icon", "icon"], ["created_at", "2017-04-19 17:55:25.532554"], ["updated_at", "2017-04-19 17:55:25.532554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6053], ["g5_updatable_hub_amenity_id", 3498]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6053) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.534958"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6053]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6053]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.541551"], ["updated_at", "2017-04-19 17:55:25.541551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.542521"], ["id", 3499]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6053], ["g5_updatable_hub_amenity_id", 3499]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.544620"], ["updated_at", "2017-04-19 17:55:25.544620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.545707"], ["id", 3500]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6053], ["g5_updatable_hub_amenity_id", 3500]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6053]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6053) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.549256"], ["id", 6053]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-19 17:55:25.552326"], ["updated_at", "2017-04-19 17:55:25.552326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:25.554036"], ["updated_at", "2017-04-19 17:55:25.554036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2331]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6054]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'another_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.559273"], ["updated_at", "2017-04-19 17:55:25.559273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'some_urn' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "another_client_uid"], ["created_at", "2017-04-19 17:55:25.564557"], ["updated_at", "2017-04-19 17:55:25.564557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.567905"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.570120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6057]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.574045"], ["updated_at", "2017-04-19 17:55:25.574045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.574980"], ["id", 3501]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6057], ["g5_updatable_hub_amenity_id", 3501]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.577467"], ["updated_at", "2017-04-19 17:55:25.577467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.578510"], ["id", 3502]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6057], ["g5_updatable_hub_amenity_id", 3502]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6057]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6057) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.582272"], ["id", 6057]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'g5-cl-1soj9pe2-541-apartments') AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6055]] SQL (0.1ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 6055]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:25.589839"], ["updated_at", "2017-04-19 17:55:25.589839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6058) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.591588"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6058]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6058]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.602217"], ["updated_at", "2017-04-19 17:55:25.602217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.603291"], ["id", 3503]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6058], ["g5_updatable_hub_amenity_id", 3503]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.605417"], ["updated_at", "2017-04-19 17:55:25.605417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.606438"], ["id", 3504]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6058], ["g5_updatable_hub_amenity_id", 3504]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6058]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6058) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.610267"], ["id", 6058]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:25.622881"], ["updated_at", "2017-04-19 17:55:25.622881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6059) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.625324"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6059]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6059]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6059]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6059) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-19 17:55:25.634817"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.636896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6060]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6060]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 6060) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-19 17:55:25.643489"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.645702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6061]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.649370"], ["updated_at", "2017-04-19 17:55:25.649370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.650306"], ["id", 3505]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6061], ["g5_updatable_hub_amenity_id", 3505]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.652499"], ["updated_at", "2017-04-19 17:55:25.652499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.653398"], ["id", 3506]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6061], ["g5_updatable_hub_amenity_id", 3506]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6061]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 6061) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.657172"], ["id", 6061]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-19 17:55:25.659495"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.661592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6062]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6062], ["g5_updatable_hub_amenity_id", 3505]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6062], ["g5_updatable_hub_amenity_id", 3506]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6062]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 6062) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.669487"], ["id", 6062]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-19 17:55:25.671802"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.673778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6063]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6063]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 6063) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "old"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:25.681711"], ["updated_at", "2017-04-19 17:55:25.681711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6064) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "uid" = $1, "name" = $2, "client_uid" = $3, "latitude" = $4, "longitude" = $5, "updated_at" = $6, "properties" = $7 WHERE "g5_updatable_locations"."id" = $8 [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.683401"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6064]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6064]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.689477"], ["updated_at", "2017-04-19 17:55:25.689477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.690393"], ["id", 3507]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6064], ["g5_updatable_hub_amenity_id", 3507]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.692524"], ["updated_at", "2017-04-19 17:55:25.692524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.693452"], ["id", 3508]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6064], ["g5_updatable_hub_amenity_id", 3508]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6064]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6064) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.697240"], ["id", 6064]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2017-04-19 16:55:25.699810"], ["client_urn", "client_uid"], ["created_at", "2017-04-19 17:55:25.702531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6065) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.708923"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6065]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6065]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.715262"], ["updated_at", "2017-04-19 17:55:25.715262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.716209"], ["id", 3509]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6065], ["g5_updatable_hub_amenity_id", 3509]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.718433"], ["updated_at", "2017-04-19 17:55:25.718433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.719400"], ["id", 3510]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6065], ["g5_updatable_hub_amenity_id", 3510]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6065]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6065) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.723003"], ["id", 6065]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6065]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "updated_at", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["urn", "g5-cl-1soj9pe2-541-apartments"], ["client_uid", "client_uid"], ["name", "541 Apartments"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"amenities\":[{\"id\":1,\"name\":\"WIFI\",\"icon\":\"fa-wifi\",\"created_at\":\"2016-12-07T15:06:47.500-08:00\",\"updated_at\":\"2016-12-07T15:06:47.500-08:00\"},{\"id\":7,\"name\":\"Power\",\"icon\":\"fa-electric-outlet\",\"created_at\":\"2016-12-07T15:09:33.391-08:00\",\"updated_at\":\"2016-12-07T15:09:33.391-08:00\"}],\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["updated_at", "2017-04-19 16:55:25.727060"], ["client_urn", "client_uid"], ["created_at", "2017-04-19 17:55:25.729990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6066) LIMIT 1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "latitude" = $2, "longitude" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.736567"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["id", 6066]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6066]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.743556"], ["updated_at", "2017-04-19 17:55:25.743556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.744519"], ["id", 3511]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6066], ["g5_updatable_hub_amenity_id", 3511]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.746897"], ["updated_at", "2017-04-19 17:55:25.746897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.747952"], ["id", 3512]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6066], ["g5_updatable_hub_amenity_id", 3512]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6066]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6066) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.751633"], ["id", 6066]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-19 17:55:25.754967"], ["updated_at", "2017-04-19 17:55:25.754967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:25.756800"], ["updated_at", "2017-04-19 17:55:25.756800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2332]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6067]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.760331"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.762716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6068]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.771160"], ["updated_at", "2017-04-19 17:55:25.771160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.772117"], ["id", 3513]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6068], ["g5_updatable_hub_amenity_id", 3513]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.774260"], ["updated_at", "2017-04-19 17:55:25.774260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.775156"], ["id", 3514]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6068], ["g5_updatable_hub_amenity_id", 3514]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6068]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6068) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.779137"], ["id", 6068]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6068]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6068]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.785774"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.787946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6069]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.791919"], ["updated_at", "2017-04-19 17:55:25.791919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.792872"], ["id", 3515]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6069], ["g5_updatable_hub_amenity_id", 3515]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.795157"], ["updated_at", "2017-04-19 17:55:25.795157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.796103"], ["id", 3516]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6069], ["g5_updatable_hub_amenity_id", 3516]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6069]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6069) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.799723"], ["id", 6069]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.803296"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.805324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6070]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.809132"], ["updated_at", "2017-04-19 17:55:25.809132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.810197"], ["id", 3517]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6070], ["g5_updatable_hub_amenity_id", 3517]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.812624"], ["updated_at", "2017-04-19 17:55:25.812624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.813532"], ["id", 3518]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6070], ["g5_updatable_hub_amenity_id", 3518]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6070]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6070) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.817106"], ["id", 6070]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.821554"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.823667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6071]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.827543"], ["updated_at", "2017-04-19 17:55:25.827543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.828591"], ["id", 3519]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6071], ["g5_updatable_hub_amenity_id", 3519]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.830825"], ["updated_at", "2017-04-19 17:55:25.830825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.831874"], ["id", 3520]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6071], ["g5_updatable_hub_amenity_id", 3520]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6071]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6071) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.835708"], ["id", 6071]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "541 Apartments"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.841857"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.843959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6072]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.847692"], ["updated_at", "2017-04-19 17:55:25.847692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.848639"], ["id", 3521]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6072], ["g5_updatable_hub_amenity_id", 3521]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.850783"], ["updated_at", "2017-04-19 17:55:25.850783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.851714"], ["id", 3522]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6072], ["g5_updatable_hub_amenity_id", 3522]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6072]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6072) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.855711"], ["id", 6072]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.860190"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.862218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6073]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.865955"], ["updated_at", "2017-04-19 17:55:25.865955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.866883"], ["id", 3523]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6073], ["g5_updatable_hub_amenity_id", 3523]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.869058"], ["updated_at", "2017-04-19 17:55:25.869058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.870119"], ["id", 3524]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6073], ["g5_updatable_hub_amenity_id", 3524]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6073]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6073) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.873847"], ["id", 6073]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-19 17:55:25.876977"], ["updated_at", "2017-04-19 17:55:25.876977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:25.878793"], ["updated_at", "2017-04-19 17:55:25.878793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2333]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6074]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.881778"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.883906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6075]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.888062"], ["updated_at", "2017-04-19 17:55:25.888062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.889265"], ["id", 3525]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6075], ["g5_updatable_hub_amenity_id", 3525]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.891413"], ["updated_at", "2017-04-19 17:55:25.891413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.892333"], ["id", 3526]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6075], ["g5_updatable_hub_amenity_id", 3526]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6075]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6075) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.895968"], ["id", 6075]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.900349"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.902489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6076]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.906281"], ["updated_at", "2017-04-19 17:55:25.906281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.907281"], ["id", 3527]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6076], ["g5_updatable_hub_amenity_id", 3527]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.909550"], ["updated_at", "2017-04-19 17:55:25.909550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.910457"], ["id", 3528]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6076], ["g5_updatable_hub_amenity_id", 3528]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6076]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6076) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.914166"], ["id", 6076]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.918654"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.921149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6077]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.924972"], ["updated_at", "2017-04-19 17:55:25.924972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.925894"], ["id", 3529]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6077], ["g5_updatable_hub_amenity_id", 3529]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.928401"], ["updated_at", "2017-04-19 17:55:25.928401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.929359"], ["id", 3530]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6077], ["g5_updatable_hub_amenity_id", 3530]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6077]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6077) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.933047"], ["id", 6077]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (22.4ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.937692"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.940171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6078]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.967140"], ["updated_at", "2017-04-19 17:55:25.967140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.968183"], ["id", 3531]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6078], ["g5_updatable_hub_amenity_id", 3531]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.970470"], ["updated_at", "2017-04-19 17:55:25.970470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.975702"], ["id", 3532]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6078], ["g5_updatable_hub_amenity_id", 3532]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.2ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6078]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6078) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.980082"], ["id", 6078]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:25.985083"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:25.987254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6079]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:25.991409"], ["updated_at", "2017-04-19 17:55:25.991409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:25.992353"], ["id", 3533]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6079], ["g5_updatable_hub_amenity_id", 3533]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:25.994482"], ["updated_at", "2017-04-19 17:55:25.994482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:25.995506"], ["id", 3534]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6079], ["g5_updatable_hub_amenity_id", 3534]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6079]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6079) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:25.998915"], ["id", 6079]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:26.003336"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:26.005320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6080]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:26.009258"], ["updated_at", "2017-04-19 17:55:26.009258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:26.010427"], ["id", 3535]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6080], ["g5_updatable_hub_amenity_id", 3535]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:26.012856"], ["updated_at", "2017-04-19 17:55:26.012856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:26.013750"], ["id", 3536]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6080], ["g5_updatable_hub_amenity_id", 3536]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6080]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6080) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:26.017289"], ["id", 6080]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:26.021874"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:26.024167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6081]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:26.028407"], ["updated_at", "2017-04-19 17:55:26.028407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:26.029493"], ["id", 3537]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6081], ["g5_updatable_hub_amenity_id", 3537]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:26.031832"], ["updated_at", "2017-04-19 17:55:26.031832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:26.032788"], ["id", 3538]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6081], ["g5_updatable_hub_amenity_id", 3538]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6081]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6081) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:26.036380"], ["id", 6081]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:26.052360"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"client_urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:26.054612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6082]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:26.058729"], ["updated_at", "2017-04-19 17:55:26.058729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:26.059695"], ["id", 3539]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6082], ["g5_updatable_hub_amenity_id", 3539]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:26.061854"], ["updated_at", "2017-04-19 17:55:26.061854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:26.062866"], ["id", 3540]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6082], ["g5_updatable_hub_amenity_id", 3540]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6082]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6082) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:26.066385"], ["id", 6082]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by G5Updatable::FeedController#update as HTML Parameters: {"foo"=>"bar"} [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.084016"], ["updated_at", "2017-04-19 17:55:26.084016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6083]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("urn", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["urn", "a"], ["created_at", "2017-04-19 17:55:26.112709"], ["updated_at", "2017-04-19 17:55:26.112709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-19 17:55:26.119768"], ["updated_at", "2017-04-19 17:55:26.119768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.121515"], ["updated_at", "2017-04-19 17:55:26.121515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 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", "2017-04-19 17:55:26.125592"], ["updated_at", "2017-04-19 17:55:26.125592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.127579"], ["updated_at", "2017-04-19 17:55:26.127579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.134355"], ["updated_at", "2017-04-19 17:55:26.134355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.138045"], ["updated_at", "2017-04-19 17:55:26.138045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.139863"], ["updated_at", "2017-04-19 17:55:26.139863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (1.9ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'postal_code' = '96779')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.145216"], ["updated_at", "2017-04-19 17:55:26.145216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.148140"], ["updated_at", "2017-04-19 17:55:26.148140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.149743"], ["updated_at", "2017-04-19 17:55:26.149743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'state' = 'HI')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.153070"], ["updated_at", "2017-04-19 17:55:26.153070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.155695"], ["updated_at", "2017-04-19 17:55:26.155695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.157428"], ["updated_at", "2017-04-19 17:55:26.157428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Red Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Red Light') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'neighborhood' = 'Green Light' OR g5_updatable_locations.properties ->> 'neighborhood_2' = 'Green Light')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.161413"], ["updated_at", "2017-04-19 17:55:26.161413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.164140"], ["updated_at", "2017-04-19 17:55:26.164140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.165688"], ["updated_at", "2017-04-19 17:55:26.165688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'sumpn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://sumpn"], ["urn", "sumpn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"neighborhood\":\"\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-04-19 17:55:26.168070"], ["updated_at", "2017-04-19 17:55:26.168070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.170439"], ["updated_at", "2017-04-19 17:55:26.170439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.173211"], ["updated_at", "2017-04-19 17:55:26.173211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.174811"], ["updated_at", "2017-04-19 17:55:26.174811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.177706"], ["updated_at", "2017-04-19 17:55:26.177706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.180557"], ["updated_at", "2017-04-19 17:55:26.180557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.182349"], ["updated_at", "2017-04-19 17:55:26.182349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.185426"], ["updated_at", "2017-04-19 17:55:26.185426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.188248"], ["updated_at", "2017-04-19 17:55:26.188248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.190177"], ["updated_at", "2017-04-19 17:55:26.190177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.197064"], ["updated_at", "2017-04-19 17:55:26.197064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.200236"], ["updated_at", "2017-04-19 17:55:26.200236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.201985"], ["updated_at", "2017-04-19 17:55:26.201985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "a client urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.205592"], ["updated_at", "2017-04-19 17:55:26.205592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.208770"], ["updated_at", "2017-04-19 17:55:26.208770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.210459"], ["updated_at", "2017-04-19 17:55:26.210459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'paia')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.213910"], ["updated_at", "2017-04-19 17:55:26.213910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.221653"], ["updated_at", "2017-04-19 17:55:26.221653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.223355"], ["updated_at", "2017-04-19 17:55:26.223355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.226714"], ["updated_at", "2017-04-19 17:55:26.226714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.229881"], ["updated_at", "2017-04-19 17:55:26.229881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.231537"], ["updated_at", "2017-04-19 17:55:26.231537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.234905"], ["updated_at", "2017-04-19 17:55:26.234905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.237667"], ["updated_at", "2017-04-19 17:55:26.237667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.239481"], ["updated_at", "2017-04-19 17:55:26.239481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'status' IN ('Live','madeup'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "a client uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "a client urn"], ["created_at", "2017-04-19 17:55:26.242785"], ["updated_at", "2017-04-19 17:55:26.242785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.245496"], ["updated_at", "2017-04-19 17:55:26.245496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"street_address_1\":\"71 Baldwin Ave\",\"city\":\"paia\",\"state\":\"HI\",\"state_name\":\"Hawaii\",\"postal_code\":\"96779\",\"country\":\"US\",\"phone_number\":\"8884443332\",\"email\":\"email@example.com\",\"home_page_url\":\"homey.com\",\"internal_branded_name\":\"zss1\",\"status\":\"Live\",\"corporate\":\"false\",\"neighborhood\":\"Red Light\",\"neighborhood_2\":\"Green Light\",\"domain\":\"adomain\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["latitude", 20.915166], ["longitude", -156.379291], ["created_at", "2017-04-19 17:55:26.247109"], ["updated_at", "2017-04-19 17:55:26.247109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "a client uid"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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", "{\"internal_branded_name\":\"a brand\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.254639"], ["updated_at", "2017-04-19 17:55:26.254639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.257119"], ["updated_at", "2017-04-19 17:55:26.257119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "client_urn", "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"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.259662"], ["updated_at", "2017-04-19 17:55:26.259662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.262266"], ["updated_at", "2017-04-19 17:55:26.262266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.264119"], ["updated_at", "2017-04-19 17:55:26.264119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%')  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.268411"], ["updated_at", "2017-04-19 17:55:26.268411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.270234"], ["updated_at", "2017-04-19 17:55:26.270234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|y|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.273075"], ["updated_at", "2017-04-19 17:55:26.273075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.274866"], ["updated_at", "2017-04-19 17:55:26.274866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.properties ->> 'city' = 'mycity') AND (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.properties ->> 'state' = 'AK') AND (g5_updatable_locations.properties ->> 'status' IN ('Pending'))  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.278327"], ["updated_at", "2017-04-19 17:55:26.278327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.280167"], ["updated_at", "2017-04-19 17:55:26.280167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) 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", "{\"city\":\"mycity\",\"state\":\"AK\",\"status\":\"Pending\"}"], ["flat_amenity_names", "|a|b|c|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.284337"], ["updated_at", "2017-04-19 17:55:26.284337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'adiffurn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "flat_amenity_names", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["uid", "adiffuid"], ["urn", "adiffurn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["flat_amenity_names", "|b|c|d|z|"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.286078"], ["updated_at", "2017-04-19 17:55:26.286078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|a|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|c|%') G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|d|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%') G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE (g5_updatable_locations.flat_amenity_names LIKE '%|z|%') AND (g5_updatable_locations.flat_amenity_names LIKE '%|b|%')  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.292098"], ["updated_at", "2017-04-19 17:55:26.292098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-11"], ["external_id", 11], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.293341"], ["updated_at", "2017-04-19 17:55:26.293341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-12"], ["external_id", 12], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.294257"], ["updated_at", "2017-04-19 17:55:26.294257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6127], ["g5_updatable_hub_amenity_id", 3541]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6127], ["g5_updatable_hub_amenity_id", 3542]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6127]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 6127) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-11|amenity-12|"], ["updated_at", "2017-04-19 17:55:26.298798"], ["id", 6127]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6127]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6127]] G5Updatable::HubAmenitiesLocation Load (0.1ms) SELECT "g5_updatable_hub_amenities_locations".* FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6127]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6127]] G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6127]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.303699"], ["updated_at", "2017-04-19 17:55:26.303699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-13"], ["external_id", 13], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.304916"], ["updated_at", "2017-04-19 17:55:26.304916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-14"], ["external_id", 14], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.305829"], ["updated_at", "2017-04-19 17:55:26.305829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6128], ["g5_updatable_hub_amenity_id", 3543]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6128], ["g5_updatable_hub_amenity_id", 3544]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6128]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1234-location' AND "g5_updatable_locations"."id" != 6128) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|amenity-13|amenity-14|"], ["updated_at", "2017-04-19 17:55:26.310214"], ["id", 6128]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 6128]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6128]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-19 17:55:26.362093"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-19 17:55:26.363304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-19 17:55:26.366699"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-19 17:55:26.367689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-19 17:55:26.370196"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-19 17:55:26.371181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-19 17:55:26.373388"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-19 17:55:26.374439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-19 17:55:26.377109"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-19 17:55:26.378274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-19 17:55:26.381198"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-19 17:55:26.382358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "urn"], ["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-19 17:55:26.385367"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2017-04-19 17:55:26.386400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) 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", "2017-04-19 17:55:26.390451"], ["updated_at", "2017-04-19 17:55:26.390451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2356) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2356) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "updated_at" = $1 WHERE "g5_updatable_clients"."id" = $2 [["updated_at", "2017-04-19 17:55:26.392191"], ["id", 2356]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 2356]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8m6e-g5-multifamily' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("urn", "uid", "name", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["urn", "g5-c-1soj8m6e-g5-multifamily"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["name", "G5 Multifamily"], ["updated_at", "2017-04-19 17:55:26.397311"], ["properties", "{\"id\":22,\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"name\":\"G5 Multifamily\",\"branded_name\":\"G5 Multifamily\",\"urn\":\"g5-c-1soj8m6e-g5-multifamily\",\"vertical\":\"Apartments\",\"street_address_1\":\"455 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97702\",\"fax\":\"\",\"email\":\"\",\"tel\":\"\",\"domain_type\":\"MultiDomainClient\",\"domain\":\"http://www.g5mockup-corp.com\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"secure_domain\":false,\"go_squared_client_id\":\"\",\"go_squared_tags\":\"\",\"vendor_integration\":false,\"created_at\":\"2014-08-13T17:22:04.237-07:00\",\"updated_at\":\"2016-12-07T15:18:18.637-08:00\",\"organization\":\"g5-test-apps\",\"g5_internal\":true,\"fb_pixel_id\":\"\",\"adwords_id\":\"\",\"adwords_conversion_label\":\"\",\"status\":\"Active\"}"], ["created_at", "2017-04-19 17:55:26.398933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soj9pe2-541-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soj9pe2-541-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments"], ["name", "541 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 39.205226], ["longitude", -84.500929], ["updated_at", "2017-04-19 17:55:26.401141"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:30:32.413-07:00\",\"updated_at\":\"2016-10-05T21:14:50.523-07:00\",\"client_id\":22,\"name\":\"541 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"541-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soj9pe2-541-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo3.com\",\"street_address_1\":\"541 NW Bond St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OH\",\"state_name\":\"Ohio\",\"postal_code\":\"12345\",\"website_page_prefix\":\"http://www.g5salesdemo3.com/apartments/oh/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5413\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"Studio \\u0026 2\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Deschutes Brewery\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Lake\",\"landmark_1_name\":\"Crater Lake\",\"landmark_2_type\":\"Military Base\",\"landmark_2_name\":\"G5 Special Ops\",\"property_feature_1\":\"Luxury\",\"property_feature_2\":\"Furnished\",\"property_feature_3\":\"Affordable\",\"apartment_amenity_1\":\"Central Air \\u0026 Heating\",\"apartment_amenity_2\":\"Free WiFi\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Roller Coaster\",\"timezone\":\"America/New_York\",\"latitude\":39.205226,\"longitude\":-84.500929,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:26.403243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6129]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6129]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soj9pe2-541-apartments' AND "g5_updatable_locations"."id" != 6129) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1soja3fn-99-apartments"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' LIMIT 1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-1soja3fn-99-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments"], ["name", "99 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 42.1945758], ["longitude", -122.7094767], ["updated_at", "2017-04-19 17:55:26.410469"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-08-13T17:33:34.276-07:00\",\"updated_at\":\"2016-10-05T21:14:50.855-07:00\",\"client_id\":22,\"name\":\"99 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"99-apartments\",\"corporate\":false,\"urn\":\"g5-cl-1soja3fn-99-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5salesdemo4.com\",\"street_address_1\":\"99 Problems St\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Ashland\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97520\",\"website_page_prefix\":\"http://www.g5salesdemo4.com/apartments/or/ashland\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5salesdemo4.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5414\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"1, 2 \\u0026 3\",\"nearby_schools\":\"COCC\",\"nearby_employers\":\"Bend Medical Center\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"Employer\",\"landmark_1_name\":\"G5\",\"landmark_2_type\":\"Recreation Area\",\"landmark_2_name\":\"Mt Bachelor\",\"property_feature_1\":\"Affordable\",\"property_feature_2\":\"Luxury\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"Sauna\",\"apartment_amenity_2\":\"Live-in Maid\",\"community_amenity_1\":\"Swimming Pool\",\"community_amenity_2\":\"Free Parking\",\"timezone\":\"America/Los_Angeles\",\"latitude\":42.1945758,\"longitude\":-122.7094767,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:26.412704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6130]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6130]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-1soja3fn-99-apartments' AND "g5_updatable_locations"."id" != 6130) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-560belmk8-denali"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-560belmk8-denali"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali"], ["name", "Denali"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0575212], ["longitude", -121.3133453], ["updated_at", "2017-04-19 17:55:26.419456"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2016-03-10T12:40:17.561-08:00\",\"updated_at\":\"2016-12-07T15:10:04.634-08:00\",\"client_id\":22,\"name\":\"Denali\",\"internal_branded_name\":\"Tier 1 Multifamily Denali\",\"custom_slug\":\"18\",\"corporate\":false,\"urn\":\"g5-cl-560belmk8-denali\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"street_address_1\":\"550 NW Franklin Ave #200\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97703\",\"website_page_prefix\":\"http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"GetG5\",\"yelp_username\":\"g5-bend\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"getg5\",\"vimeo_username\":\"\",\"youtube_username\":\"G5SMarketing\",\"domain\":\"http://www.g5-multifamily-concierge-demo-denali.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5415\",\"local_phone_number\":\"\",\"neighborhood\":\"Downtown\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0575212,\"longitude\":-121.3133453,\"go_squared_site_token\":\"GSN-028918-I\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"+Getg5\",\"neighborhood_2\":\"Ritzy\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Broadway/tier_1\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:26.421718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6131]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 1], ["created_at", "2017-04-19 17:55:26.425795"], ["updated_at", "2017-04-19 17:55:26.425795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "WIFI"], ["icon", "fa-wifi"], ["external_updated_at", "2016-12-07 23:06:47.500000"], ["external_created_at", "2016-12-07 23:06:47.500000"], ["updated_at", "2017-04-19 17:55:26.426982"], ["id", 3545]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6131], ["g5_updatable_hub_amenity_id", 3545]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("external_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["external_id", 7], ["created_at", "2017-04-19 17:55:26.429549"], ["updated_at", "2017-04-19 17:55:26.429549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "g5_updatable_hub_amenities" SET "name" = $1, "icon" = $2, "external_updated_at" = $3, "external_created_at" = $4, "updated_at" = $5 WHERE "g5_updatable_hub_amenities"."id" = $6 [["name", "Power"], ["icon", "fa-electric-outlet"], ["external_updated_at", "2016-12-07 23:09:33.391000"], ["external_created_at", "2016-12-07 23:09:33.391000"], ["updated_at", "2017-04-19 17:55:26.430461"], ["id", 3546]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6131], ["g5_updatable_hub_amenity_id", 3546]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6131]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-560belmk8-denali' AND "g5_updatable_locations"."id" != 6131) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:26.434359"], ["id", 6131]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2xqm52t-mockup-design-3"]]  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2xqm52t-mockup-design-3"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3"], ["name", "Mockup Design 3"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0581728], ["longitude", -121.3153096], ["updated_at", "2017-04-19 17:55:26.436894"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-25T12:50:05.280-08:00\",\"updated_at\":\"2016-12-07T15:18:18.607-08:00\",\"client_id\":22,\"name\":\"Mockup Design 3\",\"internal_branded_name\":\"\",\"custom_slug\":\"mockup-design-3\",\"corporate\":false,\"urn\":\"g5-cl-i2xqm52t-mockup-design-3\",\"status\":\"Live\",\"home_page_url\":\"http://www.g5mockup-3.com\",\"street_address_1\":\"1 Street Address\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5mockup-3.com/apartments/or/bend\",\"service_1\":\"\",\"service_2\":\"\",\"service_3\":\"\",\"service_4\":\"\",\"service_5\":\"\",\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":\"\",\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":\"\",\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5mockup-3.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":\"\",\"neighborhood\":\"was red light\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0581728,\"longitude\":-121.3153096,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":\"\",\"neighborhood_2\":\"green light\",\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":\"Wellborne Traditions/defaults\",\"spinup_strategy\":\"\",\"core_store_id\":null,\"custom_vertical\":\"\",\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:26.439603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6132]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6132], ["g5_updatable_hub_amenity_id", 3545]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" WHERE "g5_updatable_hub_amenities"."external_id" = $1 ORDER BY "g5_updatable_hub_amenities"."id" ASC LIMIT 1 [["external_id", 7]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6132], ["g5_updatable_hub_amenity_id", 3546]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6132]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2xqm52t-mockup-design-3' AND "g5_updatable_locations"."id" != 6132) LIMIT 1 SQL (0.2ms) UPDATE "g5_updatable_locations" SET "flat_amenity_names" = $1, "updated_at" = $2 WHERE "g5_updatable_locations"."id" = $3 [["flat_amenity_names", "|Power|WIFI|"], ["updated_at", "2017-04-19 17:55:26.447919"], ["id", 6132]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-i2gg3rv8-g5-apartments"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' LIMIT 1 SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("urn", "uid", "name", "client_uid", "latitude", "longitude", "updated_at", "properties", "client_urn", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["urn", "g5-cl-i2gg3rv8-g5-apartments"], ["uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments"], ["name", "G5 Apartments"], ["client_uid", "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily"], ["latitude", 44.0574889], ["longitude", -121.313313], ["updated_at", "2017-04-19 17:55:26.450612"], ["properties", "{\"uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments\",\"client_uid\":\"http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily\",\"created_at\":\"2014-11-13T10:23:47.411-08:00\",\"updated_at\":\"2016-10-05T21:14:50.585-07:00\",\"client_id\":22,\"name\":\"G5 Apartments\",\"internal_branded_name\":null,\"custom_slug\":\"g5-apartments\",\"corporate\":false,\"urn\":\"g5-cl-i2gg3rv8-g5-apartments\",\"status\":\"Pending\",\"home_page_url\":\"http://www.g5apartmenthomes.com\",\"street_address_1\":\"550 NW Franklin Ave\",\"street_address_2\":\"\",\"country\":\"US\",\"country_code\":\"1\",\"city\":\"Bend\",\"state\":\"OR\",\"state_name\":\"Oregon\",\"postal_code\":\"97701\",\"website_page_prefix\":\"http://www.g5apartmenthomes.com/apartments/or/bend\",\"service_1\":null,\"service_2\":null,\"service_3\":null,\"service_4\":null,\"service_5\":null,\"fax\":\"\",\"email\":\"\",\"office_hours\":\"M-F 9-5\",\"access_hours\":null,\"twitter_username\":\"\",\"facebook_username\":\"\",\"yelp_username\":\"\",\"pinterest_username\":\"\",\"foursquare_username\":\"\",\"linkedin_username\":null,\"linkedin_account_type\":null,\"tumblr_username\":\"\",\"instagram_username\":\"\",\"vimeo_username\":\"\",\"youtube_username\":\"\",\"domain\":\"http://www.g5apartmenthomes.com\",\"secure_domain\":false,\"phone_number\":\"541-541-5411\",\"local_phone_number\":null,\"neighborhood\":\"\",\"floor_plans\":\"\",\"nearby_schools\":\"\",\"nearby_employers\":\"\",\"ga_tracking_id\":\"\",\"ga_profile_id\":\"\",\"landmark_1_type\":\"\",\"landmark_1_name\":\"\",\"landmark_2_type\":\"\",\"landmark_2_name\":\"\",\"property_feature_1\":\"\",\"property_feature_2\":\"\",\"property_feature_3\":\"\",\"apartment_amenity_1\":\"\",\"apartment_amenity_2\":\"\",\"community_amenity_1\":\"\",\"community_amenity_2\":\"\",\"timezone\":\"America/Los_Angeles\",\"latitude\":44.0574889,\"longitude\":-121.313313,\"go_squared_site_token\":\"\",\"thumbnail_url_300px\":\"/images/original/missing.png\",\"google_plus_id\":null,\"neighborhood_2\":null,\"verified_address\":\"unverified\",\"gtm_codes\":\"GTM-KTND\",\"spinup_web_theme\":null,\"spinup_strategy\":null,\"core_store_id\":null,\"custom_vertical\":null,\"off_platform\":false,\"thumbnail_url\":\"/images/thumb/missing.png\"}"], ["client_urn", "g5-c-1soj8m6e-g5-multifamily"], ["created_at", "2017-04-19 17:55:26.452669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "g5_updatable_hub_amenities_locations" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6133]] G5Updatable::HubAmenity Load (0.1ms) SELECT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" WHERE "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" = $1 [["g5_updatable_location_id", 6133]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" = 'g5-cl-i2gg3rv8-g5-apartments' AND "g5_updatable_locations"."id" != 6133) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" NOT IN ('g5-cl-1soj9pe2-541-apartments', 'g5-cl-1soja3fn-99-apartments', 'g5-cl-560belmk8-denali', 'g5-cl-i2xqm52t-mockup-design-3', 'g5-cl-i2gg3rv8-g5-apartments')) AND "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" DESC LIMIT 1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1soj8m6e-g5-multifamily"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.471846"], ["updated_at", "2017-04-19 17:55:26.471846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2358) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2358) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-19 17:55:26.473145"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2358]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.477617"], ["updated_at", "2017-04-19 17:55:26.477617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2359) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2359) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-19 17:55:26.478953"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2359]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]]  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.483630"], ["updated_at", "2017-04-19 17:55:26.483630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2360) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2360) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-19 17:55:26.484814"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2360]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'old' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "old"], ["urn", "urn"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.489832"], ["updated_at", "2017-04-19 17:55:26.489832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "urn"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."uid" = 'http://example.com/uid' AND "g5_updatable_clients"."id" != 2361) LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE ("g5_updatable_clients"."urn" = 'urn' AND "g5_updatable_clients"."id" != 2361) LIMIT 1 SQL (0.1ms) UPDATE "g5_updatable_clients" SET "uid" = $1, "name" = $2, "updated_at" = $3, "properties" = $4 WHERE "g5_updatable_clients"."id" = $5 [["uid", "http://example.com/uid"], ["name", "Client Name"], ["updated_at", "2017-04-19 17:55:26.491062"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["id", 2361]]  (0.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "urn"]] G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.499220"], ["updated_at", "2017-04-19 17:55:26.499220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-04-19 17:55:26.500767"], ["updated_at", "2017-04-19 17:55:26.500767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-15"], ["external_id", 15], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.501912"], ["updated_at", "2017-04-19 17:55:26.501912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-16"], ["external_id", 16], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.502817"], ["updated_at", "2017-04-19 17:55:26.502817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-17"], ["external_id", 17], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.503804"], ["updated_at", "2017-04-19 17:55:26.503804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6134], ["g5_updatable_hub_amenity_id", 3547]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6134], ["g5_updatable_hub_amenity_id", 3548]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (40.5ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn = 'g5-c-1soj8z7v-g5-mf')  (0.1ms) ROLLBACK  (0.1ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.560567"], ["updated_at", "2017-04-19 17:55:26.560567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-04-19 17:55:26.562159"], ["updated_at", "2017-04-19 17:55:26.562159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-18"], ["external_id", 18], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.563325"], ["updated_at", "2017-04-19 17:55:26.563325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-19"], ["external_id", 19], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.564202"], ["updated_at", "2017-04-19 17:55:26.564202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-20"], ["external_id", 20], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.565127"], ["updated_at", "2017-04-19 17:55:26.565127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6135], ["g5_updatable_hub_amenity_id", 3550]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6135], ["g5_updatable_hub_amenity_id", 3551]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.4ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" WHERE (g5_updatable_locations.client_uid = 'http://example.com/clients/g5-c-1234-client')  (0.1ms) ROLLBACK  (0.0ms) BEGIN G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1soj8z7v-g5-mf"]]  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1soj8z7v-g5-mf' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-mf"], ["urn", "g5-c-1soj8z7v-g5-mf"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2017-04-19 17:55:26.571520"], ["updated_at", "2017-04-19 17:55:26.571520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-loc' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "https://g5-hub.herokuapp.com/clients/g5-c-1soj8z7v-g5-selfstorage/locations/g5-cl-loc"], ["urn", "g5-cl-loc"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "g5 multi family"], ["properties", "{\"status\":\"Live\"}"], ["client_urn", "g5-c-1soj8z7v-g5-mf"], ["created_at", "2017-04-19 17:55:26.573035"], ["updated_at", "2017-04-19 17:55:26.573035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-21"], ["external_id", 21], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.574465"], ["updated_at", "2017-04-19 17:55:26.574465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-22"], ["external_id", 22], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.575380"], ["updated_at", "2017-04-19 17:55:26.575380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities" ("name", "external_id", "icon", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "amenity-23"], ["external_id", 23], ["icon", "icon"], ["created_at", "2017-04-19 17:55:26.576410"], ["updated_at", "2017-04-19 17:55:26.576410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6136], ["g5_updatable_hub_amenity_id", 3553]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "g5_updatable_hub_amenities_locations" ("g5_updatable_location_id", "g5_updatable_hub_amenity_id") VALUES ($1, $2) RETURNING "id" [["g5_updatable_location_id", 6136], ["g5_updatable_hub_amenity_id", 3554]]  (0.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::HubAmenity Load (0.5ms) SELECT DISTINCT "g5_updatable_hub_amenities".* FROM "g5_updatable_hub_amenities" INNER JOIN "g5_updatable_hub_amenities_locations" ON "g5_updatable_hub_amenities_locations"."g5_updatable_hub_amenity_id" = "g5_updatable_hub_amenities"."id" INNER JOIN "g5_updatable_locations" ON "g5_updatable_locations"."id" = "g5_updatable_hub_amenities_locations"."g5_updatable_location_id" INNER JOIN "g5_updatable_clients" ON "g5_updatable_clients"."urn" = "g5_updatable_locations"."client_urn" WHERE (g5_updatable_clients.urn IN ('g5-c-1soj8z7v-g5-mf'))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.583267"], ["updated_at", "2017-04-19 17:55:26.583267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.35ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.590987"], ["updated_at", "2017-04-19 17:55:26.590987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.28ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.2ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-19 17:55:26.597827"], ["updated_at", "2017-04-19 17:55:26.597827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.599699"], ["updated_at", "2017-04-19 17:55:26.599699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.601466"], ["updated_at", "2017-04-19 17:55:26.601466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.603150"], ["updated_at", "2017-04-19 17:55:26.603150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.2ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_urn" = $1 [["client_urn", "g5-c-1234-client"]] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.04ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/clients/g5-c-1234-client' LIMIT 1 G5Updatable::Client Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = 'g5-c-1234-client' LIMIT 1 SQL (0.1ms) 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", "2017-04-19 17:55:26.611015"], ["updated_at", "2017-04-19 17:55:26.611015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) 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\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.612901"], ["updated_at", "2017-04-19 17:55:26.612901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn"], ["urn", "dif-urn"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.614634"], ["updated_at", "2017-04-19 17:55:26.614634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 G5Updatable::Location Exists (0.1ms) SELECT 1 AS one FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'dif-urn2' LIMIT 1 SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "client_urn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["uid", "http://hub.com/clients/dd/locations/dif-urn2"], ["urn", "dif-urn2"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["client_urn", "g5-c-1234-client"], ["created_at", "2017-04-19 17:55:26.616359"], ["updated_at", "2017-04-19 17:55:26.616359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK